|
[Sponsors] |
January 7, 2010, 12:19 |
energy source problem
|
#1 |
New Member
nickeet
Join Date: Jul 2009
Posts: 9
Rep Power: 17 |
Dear All
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. Error object My UDF is as follow #include "udf.h" DEFINE_SOURCE(energy_source, c, t, dS, eqn) { real temp; real source; temp = C_W(c,t); if (temp<293 && temp>290) source = 1000.; else source = 0.; return source; } pls give me some direction and suggestion. Thanks. |
|
January 8, 2010, 04:36 |
|
#2 |
Senior Member
Max
Join Date: Mar 2009
Posts: 133
Rep Power: 17 |
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.
cheers |
|
January 10, 2010, 09:56 |
|
#3 |
New Member
nickeet
Join Date: Jul 2009
Posts: 9
Rep Power: 17 |
Thank you, coglione
I will try it!! |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
UDF for energy source term | Muhammad Aamir Khan | FLUENT | 1 | July 25, 2007 03:08 |
energy source | Universtiy Paul | FLUENT | 3 | April 21, 2006 16:15 |
Energy Source Help! | Andrew Clark | FLUENT | 1 | October 24, 2005 15:39 |
UDFs for Scalar Eqn - Fluid/Solid HT | Greg Perkins | FLUENT | 0 | October 14, 2000 00:03 |
UDFs for Scalar Eqn - Fluid/Solid HT | Greg Perkins | FLUENT | 0 | October 11, 2000 04:43 |