CFD Online Discussion Forums

CFD Online Discussion Forums (http://www.cfd-online.com/Forums/)
-   Fluent UDF and Scheme Programming (http://www.cfd-online.com/Forums/fluent-udf/)
-   -   UDF:error while initialisation problem (http://www.cfd-online.com/Forums/fluent-udf/108340-udf-error-while-initialisation-problem.html)

ravindra October 20, 2012 03:03

UDF:error while initialisation problem
 
hello everyone,
i have written udf for radial distribution for eulerian model .....after building nad loading when i initialize it gives the following error
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: #f
can anyone telll me why this error is coming ....i hope someone knows about it... :)

eng_s_sadeghi October 20, 2012 04:35

It means you have forgotten a special thing if defining parameters in both UDF and Fluent. May you please zip a sample case file and the UDF and email me to check?

ghost82 October 21, 2012 08:26

Quote:

Originally Posted by ravindra (Post 387613)
hello everyone,
i have written udf for radial distribution for eulerian model .....after building nad loading when i initialize it gives the following error
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: #f
can anyone telll me why this error is coming ....i hope someone knows about it... :)


When initializing don't "compute from"

Daniele

ravindra October 22, 2012 01:20

hey friends thank u for ur reply ...

daniele,
i tried to initialise without using "compute from" ....but the error was still there ..

ravindra October 22, 2012 01:23

when i use this udf there is problem while initialization..
#include "udf.h"

DEFINE_PROPERTY(cell_raddis,c,t)
{
real rad_dis;
real a_a,v_s;
Thread **pt = THREAD_SUB_THREADS(t);
v_s= C_VOF(c,pt[1]);
a_a=1-pow((v_s/0.63),(1/3));
rad_dis=(3/5)*pow(a_a,-1);

return rad_dis;
}
when i use this udf there is no problem while initialisation but iteration cannot even start even once....it reports divergence problem...
#include "udf.h"

DEFINE_PROPERTY(cell_radial,c,t)
{
real rad_dis;
real a_a;
real void_s;
real void_g;

void_g=C_VOF(c,t);
void_s=1-void_g;

a_a=pow((void_s/0.63),(1/3));
rad_dis=(3/5)*pow((1-a_a),-1);

return rad_dis;
}

kindly look into this....and tell me your opinion...


All times are GMT -4. The time now is 10:40.