# FLUENT received fatal signal (ACCESS_VIOLATION)

 Register Blogs Members List Search Today's Posts Mark Forums Read

 October 14, 2002, 22:04 Re: FLUENT received fatal signal (ACCESS_VIOLATION #2 Francisco Guest   Posts: n/a I got the same problem and I think that is coused by my UDF. I am modeling the water evaporation from a wet cylinder using FLUENT. To solve the problem, I constructed a UDF that calculate the heat of vaporization in the cylinder surface as a function of the water flux. The UDF compile correctly and It appears in the boundary conditions panel. It is called " heat_vaporization" and it is used to set the thermal condition on the wall " New_wall". I chose it on the wall ("New wall) panel and then, proceeded to initialize before starting the iteration. However, FLUENT reported an error and it was not possible to initialize. the UDF is : # include "udf.h" DEFINE_HEAT_FLUX(heat_vaporization, f, t, co, to, cid, cir) { int i = 0; real yf = F_YI(f, t, i); real yc = C_YI(co, to, i); real density_face = F_R(f, t); real density_cell = C_R(co, to); real Df = 0.0000258; real density; real mass_flux; real Cface[ND_ND]; real Ccell[ND_ND]; real Diff[ND_ND]; real ds; density = (density_face + density_cell) / 2; F_CENTROID(Cface, f, t); C_CENTROID(Ccell, co, to); NV_VV(Diff, =, Cface, -, Ccell); ds = NV_MAG(Diff); mass_flux = Df * (yf - yc) / ds * density; cid[0] = 314563 * mass_flux; cid[2] = -236 * mass_flux; } I will let you know if I can solve the problem.

 July 1, 2010, 08:35 slip velocity #3 New Member   王国斌 Join Date: Jun 2010 Location: beij,chongqing,Chengdu Posts: 22 Rep Power: 15 #include "udf.h" #define b 5.0e-5 DEFINE_PROFILE(slip_wall,thread,index) { cell_t c; double du_dy; Thread *tc; face_t f; begin_f_loop(f,thread) { c=F_C0(f,thread);/*获得边界处相邻网格C0的cell index*/ tc=THREAD_T0(thread);/*获得C0的cell thread*/ du_dy=C_DUDY(c,tc); /* C_U_G(c,cell_thread)[1]*/ F_PROFILE(c,thread,index)=b*du_dy; } end_f_loop(f,thread) } come out with the same question !SOS