CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   FLUENT (https://www.cfd-online.com/Forums/fluent/)
-   -   Error in interpreted UDF (https://www.cfd-online.com/Forums/fluent/44618-error-interpreted-udf.html)

shephali shrimali May 7, 2007 00:57

Error in interpreted UDF
 
My UDF got interpreted and hooked. But when I try to initialize it gives error message: 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: ()

I dont know what does this ACCESS_VIOLATION error means.Help me out with this

saghir May 7, 2007 04:07

Re: Error in interpreted UDF
 
do not forget to give the number of your UDMI or UDSI in the fluent interface

shephali shrimali May 7, 2007 04:41

Re: Error in interpreted UDF
 
hey i couldnt get properly what you are saying. my UDF is this: DEFINE_PROFILE(contact_angle,thread,i) {

float vel;//[10];

float Ca ;

float THETA_D;

float time;

face_t f;

for (time = 0 ; time <= 10 ; time = time + 0.00001)

{

if (time == CURRENT_TIME)

{

begin_f_loop(f, thread)

{

if (F_VOF(f, thread)==0.5)

{

vel=F_U(f, thread);

Ca=(vel*VISCOSITY)/SUR_TEN;

F_PROFILE(f,thread,i)=pow((pow(THETA_E,3)+9*Ca*log (LAMDA)), 0.3333);

}

else F_PROFILE(f,thread,i)=120;

}

end_f_loop(f, thread)

}

} }

please have a look at this and let me know what i need to do


saghir May 7, 2007 05:06

Re: Error in interpreted UDF
 
in the graphic interface you but

/solve/set/expert

and for question about Keep temporary solver memory from being freed, you must but yes


shephali shrimali May 7, 2007 05:16

Re: Error in interpreted UDF
 
what have u written? sorry but its not making any sense

saghir May 7, 2007 05:26

Re: Error in interpreted UDF
 
sorry,in the graphic Fluent interface you write

/solve/set/expert

+ entry

and for question about Keep temporary solver memory from being freed, you must but yes


suvash May 9, 2007 22:54

Re: Error in interpreted UDF
 
Are you running this code in windows interface or Unix/linux. If you write the code in dos and run in linux then you should face some problem. you have to convert like dos2unix or something like this........

regards Suvash

shephali shrimali May 10, 2007 02:53

Re: Error in interpreted UDF
 
i got rid of this problem...thanx for your help


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