|
[Sponsors] |
FLUENT received fatal signal (ACCESS_VIOLATION) |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
September 3, 2002, 14:23 |
FLUENT received fatal signal (ACCESS_VIOLATION)
|
#1 |
Guest
Posts: n/a
|
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; begin_f_loop(f,fthread) { 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)); F_AREA(A,f,fthread); dcdr=A[0]*r[0]+A[1]*r[1]+A[2]*r[2]; F_PROFILE(f,fthread,position)=-(D/K)*dcdr; } end_f_loop(f,fthread) } |
|
October 14, 2002, 23:04 |
Re: FLUENT received fatal signal (ACCESS_VIOLATION
|
#2 |
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, 09:35 |
slip velocity
|
#3 |
New Member
|
#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 |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Free Surface Ship Flow | timfranke | OpenFOAM Running, Solving & CFD | 322 | March 3, 2021 10:04 |
FLUENT received fatal signal (ACCESS_VIOLATION) | CHAKER | FLUENT | 4 | December 11, 2015 04:20 |
Problems in lauching FLUENT | Lourival | FLUENT | 3 | January 16, 2008 17:48 |
fatal signal (ACCESS_VIOLATION) | manu | FLUENT | 0 | December 10, 2007 07:10 |
FLUENT received fatal signal (ACCESS_VIOLATION) | samy | FLUENT | 0 | November 10, 2007 14:09 |