CFD Online Discussion Forums

CFD Online Discussion Forums (
-   FLUENT (
-   -   FLUENT received fatal signal (ACCESS_VIOLATION) (

jwt September 3, 2002 13:23

FLUENT received fatal signal (ACCESS_VIOLATION)
Hi,everyone. I met a error when I want to initialize, as follows:

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: ()

Why? I think maybe the error is aroused due to my UDF,because all will ok if I canceled my UDF. Below is my UDF. Where is wrong? Please someone tell me.

#include "udf.h" #include "sg.h"

#define D 5e-8 #define K 3.98e-6

DEFINE_PROFILE(wall_C, fthread ,position) {

face_t f;

real r[ND_ND];

real A[ND_ND];

real ds;

real es[ND_ND];

real A_by_es;

real dr0[ND_ND];

real dcdr;

Thread *tc0;

cell_t c0;



c0=F_C0(f,fthread); /* returns ID for c0*/

tc0=THREAD_T0(fthread);/*returns the cell thread for c0 */

NV_V(r, =, C_T_G(c0,tc0));





end_f_loop(f,fthread) }

Francisco October 14, 2002 22:04

Re: FLUENT received fatal signal (ACCESS_VIOLATION
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.

wangguobin14 July 1, 2010 08:35

slip velocity
#include "udf.h"
#define b 5.0e-5
cell_t c;
double du_dy;
Thread *tc;
face_t f;
c=F_C0(f,thread);/*获得边界处相邻网格C0的cell index*/
tc=THREAD_T0(thread);/*获得C0的cell thread*/
/* C_U_G(c,cell_thread)[1]*/
come out with the same question !SOS

All times are GMT -4. The time now is 08:56.