CFD Online Discussion Forums

CFD Online Discussion Forums (
-   FLUENT (
-   -   UDF problem~~~~ (

joby November 23, 2001 23:06

UDF problem~~~~
i want to combine the argument for DEFINE_SOURCE and DEFINE_ADJUST .but i have written a program C . Who can check my model , thanks

DEFINE_ADJUST(adj_func,domain) {

cell_t c;

Thread *t; thread_loop_c(t, domain) { if(THREAD_ID(t)==6 {

begin_c_loop(c,t) { Yo2=C_YI(c,t,1);


}end_c_loop(c,t) } } } DEFINE_SOURCE(cathode_oxygen,cell,thread,dS,eqn) {

cell_t c;

Thread *t;

real source1,q;



dS[eqn]=-F; return source1; }

Fluent's solver get me , Error: FLUENT received fatal signal (ACCESS_VIOLATION) 1. Note exact events leading to error. 2. Save case/data under new name. 3. Exit program and restart to continue. 4. Report error to your distributor. Error Object: ()

Ugur November 29, 2001 15:22

Re: UDF problem~~~~
Have you set your number of UDMI's in the Define>User Defined> Memory panel? This may have a problem with that...


All times are GMT -4. The time now is 05:48.