CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > ANSYS > FLUENT > Fluent UDF and Scheme Programming

received a fatal signal (segmention fault)

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

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   June 30, 2014, 03:20
Default received a fatal signal (segmention fault)
  #1
New Member
 
soroush
Join Date: Jun 2014
Posts: 1
Rep Power: 0
fs10224 is on a distinguished road
hi
i wrote thise code for temp depenent
#include "udf.h"

DEFINE_PROPERTY(cell_density,c,t)
{

real rho_lam;
real temp = C_T(c,t);

if(temp > 300.)
rho_lam = -0.0036*temp*temp+1.9159*temp+748.19;
else if (temp > 320.)

rho_lam = 988.1;
else
rho_lam = 997.1;


return rho_lam;

}

DEFINE_PROPERTY(cell_thermalconductivity,c,t)
{
real ktc_lam;
real temp = C_T(c,t);

if(temp > 300)
ktc_lam = ((-8.*pow(10,-6))*pow(temp,2.))+0.0062*temp-0.5388;
else if (temp > 320.)
ktc_lam = 0.63;
else
ktc_lam = 0.60;

return ktc_lam;
}

DEFINE_PROPERTY(cell_viscosity,c,t)
{
real mu_lam;
real temp = C_T(c,t);
if(temp > 300.)
mu_lam = 0.00002414*pow(10,247.8*pow(temp-140,-1.));
else if (temp > 320.)

mu_lam = 0.00548;
else
mu_lam = 0.000891;
return mu_lam;
}
DEFINE_PROPERTY(cell_specific_heat,c,t)
{
real cp_lam;
real temp =C_T(c,t);
if(temp > 300.)
cp_lam = -0.0001*pow(temp,3)+0.1155*pow(temp,2)-41.296*temp+9017.8;
else if (temp > 320 )

cp_lam = 4184.3;
else
cp_lam = 4181.8;
return cp_lam;
}

but fluent give me this error
received a fatal signal (segmention fault)

what is wrong with my code?
fs10224 is offline   Reply With Quote

Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Fluent15: received a fatal signal (Segmentation fault) lcg44 FLUENT 4 August 29, 2016 13:19
FLUENT received fatal signal (ACCESS_VIOLATION) CHAKER FLUENT 4 December 11, 2015 04:20
FLUENT received fatal signal (ACCESS_VIOLATION) Mike Wong FLUENT 7 October 17, 2014 14:17
FLUENT received fatal signal (ACCESS_VIOLATION) osamaghani FLUENT 2 March 31, 2012 17:15
error while compiling the USER Sub routine CFD user CFX 3 November 25, 2002 16:16


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