11 February 2015 10 3K Report

Hi,

I am trying to add extra mass source through UDF but getting this ERROR MESSAGE:

Node 0: PROCESS 15088: Received signal SIGSEGV.

Node 1: Process 16164: Received signal SIGSEGV.

MPI Application rank 0 exited before MPI_Finalize() with status 2

The fl process could not be started.

The UDF code is as below:

DEFINE_SOURCE(mass_source, c, t, dS, eqn)

{

real source = 0.0;

real mass_source = 0.0;

real area_vec[ND_ND];

real area = 0.0;

int n;

real v=0.0;

real rho=0.0;

c_face_loop (c, t, n)

{

Thread *tf = C_FACE_THREAD (c, t, n);

real SURFACE_ID = 6;

if(SURFACE_ID == THREAD_ID(tf))

{

face_t f = C_FACE (c, t, n);

F_AREA(area_vec, f, tf);

area = NV_MAG(area_vec);

rho=C_R(c,t);

v=C_VOLUME(c,t);

mass_source = (-(C_YI_RG(c,t,0)[1]*C_DIFF_EFF(c,t,0))* ((1/C_YI(c,t,0) )-1))*rho*area/v;

source += mass_source;

}

}

C_UDMI(c, t, 0) = source;

dS[eqn] = 0.0;

return source;

}

Can anyone suggest on this error?

More Hasibul Alam's questions See All
Similar questions and discussions