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

Properties UDF error

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   July 2, 2015, 19:16
Default Properties UDF error
  #1
New Member
 
Join Date: Mar 2015
Posts: 25
Rep Power: 11
Arslan Arshad is on a distinguished road
Below is my code
"#include "udf.h"
DEFINE_PROPERTY(water_density,cell,thread)
{
double rho,temp1;
temp1 = C_T(cell, thread);
rho = 1000*0.3471*pow(0.2741,(-1+(temp1/647.13)*0.28571));
return rho;

}
DEFINE_PROPERTY(water_thermalconductivity,cell,thr ead)
{
double k,temp1;
temp1 = C_T(cell, thread);
k = (-0.2758)+(0.004612*temp1)-(0.000005539*pow(temp1,2));
return k;
}

DEFINE_PROPERTY(water_viscosity,cell,thread)
{
double mu,temp1;
temp1 = C_T(cell, thread);
mu=(1+(-0.02550*(temp1))+(0.0006*pow(temp1,2))+(-0.000009*pow(temp1,3)))*0.0009;
return mu;
}

DEFINE_PROPERTY(oil_density,cell,thread)
{
double rho,temp1;
temp1 = C_T(cell, thread);
rho = (-0.4307*temp1) + 880.79 ;
return rho;
}

DEFINE_PROPERTY(oil_thermalconductivity,cell,threa d)
{
double k,temp1;
temp1 = C_T(cell, thread);
k = (7E-05*temp1) + 0.1344;
return k;
}

DEFINE_PROPERTY(oil_viscosity,cell,thread)
{
double mu,temp1;
temp1 = C_T(cell, thread);
mu = 0.0238*exp(-0.0344*(temp1-298));
return mu;
}

DEFINE_PROPERTY(surface_tension,cell,thread)
{
double sigma,temp1;
temp1 = C_T(cell, thread);
sigma=0.00365*exp(-0.0144(temp1-298));
return sigma;
}
"



but when i interpret my code i received error
"received a fatal signal (segmentation fault)"

Thanks in advance
Arslan Arshad is offline   Reply With Quote

Reply


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
[OpenFOAM.org] compile error in dynamicMesh and thermophysicalModels libraries NickG OpenFOAM Installation 3 December 30, 2019 00:21
Undeclared Identifier Errof UDF SteveGoat Fluent UDF and Scheme Programming 7 October 15, 2014 07:11
ParaView for OF-1.6-ext Chrisi1984 OpenFOAM Installation 0 December 31, 2010 06:42
Installation OF1.5-dev ttdtud OpenFOAM Installation 46 May 5, 2009 02:32
Problem with compile the setParabolicInlet ivanyao OpenFOAM Running, Solving & CFD 6 September 5, 2008 20:50


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