CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   FLUENT (https://www.cfd-online.com/Forums/fluent/)
-   -   PLEASE HELP ______ slip condition (https://www.cfd-online.com/Forums/fluent/40233-please-help-______-slip-condition.html)

Mech March 21, 2006 02:00

PLEASE HELP ______ slip condition
 
Hi I wrote a UDF for slip wall boundary condition but it is not working. Can anybody help me? Thanks

#include <udf.h> #include <mem.h>

#define PI 3.141592

DEFINE_PROFILE(top_wall_vel, t, i)

{

face_t f;

cell_t c0;

Thread *t0;

float lamda, Kn, H, b, tem, val, sigma_m, g_u;

sigma_m = 1.0;

H = 1.2e-6;

b=1.380662e-23;

tem=314.0;

begin_f_loop(f,t)

{

c0=F_C0(f,t);

t0=t->t0;

g_u = -C_U_G(c0,t0)[1];

lamda = b*tem/(sqrt(2.0)*PI*171460.8*pow(3.70e-10, 2.0));

Kn = lamda /(2.0*H);

val = ((2. - sigma_m)/sigma_m)*Kn*g_u;

F_PROFILE(f,t,i)=val;

}

end_f_loop(f,t) }


Ravi Duggirala March 21, 2006 08:45

Re: PLEASE HELP ______ slip condition
 
Hey,

I guess I can help you, but what do you mean by not working...? be specific with your problem

Thanks Ravi

Mech March 21, 2006 20:40

Re: PLEASE HELP ______ slip condition
 
hi I can hook the UDF succesfully. But when I want to execute inlet button from Compute From panel under Solution Initialization then fluent gives me the following 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: ()

Mech March 23, 2006 20:33

Re: PLEASE HELP ______ slip condition
 
Hi Mr. Ravi I expect your reply.


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