energy source problem
I am a beginner in UDF
I need to set a energy source in a solid (W/m3)
And the energy source is temperature dependent
I got this error message:
FLUENT received fatal signal (ACCESS_VIOLATION)
1. Note exact events leading to error.
2. Save cas/data under new name.
3. Exit programme and restart to continue.
4. Report error to your distributor.
My UDF is as follow
DEFINE_SOURCE(energy_source, c, t, dS, eqn)
temp = C_W(c,t);
if (temp<293 && temp>290)
source = 1000.;
source = 0.;
pls give me some direction and suggestion.
C_W(c,t) will return the z-velocity which does not make too much sense for a solid. Maybe C_T(c,t) is what you actually want to use.
Thank you, coglione
I will try it!!
|All times are GMT -4. The time now is 14:39.|