I am trying to solve the generic transport equation
for diffusion only. I made a UDF for the diffusion. This is a four-sided geometry.
DEFINE_DIFFUSIVITY(magfun, c, t, i)
diff = -1/(NV_MAG(C_UDSI_G(c,t,0))+0.000000001);
which I used in material properties of the fluid. I also have a source term which I used in cell zone conditions. When I run the simulation, not only do I get different answer each time I run the simulation, none of the results match what I should be getting.
When I save and close the file, and reopen it, I get this error
Can anyone help me out?