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

Vaporization pressure UDF property problem?

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

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   September 11, 2014, 23:04
Question Vaporization pressure UDF property problem?
  #1
Member
 
le hoang anh
Join Date: Oct 2012
Posts: 96
Rep Power: 13
lehoanganh07 is on a distinguished road
Hi, I write a simple UDF code as in fluent manual by DEFINE_PROPERTY(pres, c,t). The simple code is as below
#include "udf.h"
#include "math.h"

#define A 8.07131
#define B 1730.63
#define C 233.426

DEFINE_PROPERTY(Vapor_pre,c,t)
{
real T;
real P;
T=C_T(c,t)-273;
P=pow(10,A-B/(C+T))*13595.1*9.80665;
return P;
}

The code is complied and loaded successful without any errors, but when I chose the user-define option in the cavitation vaporization pressure tap, in that the name of UDF file is Vapor_pre. After close the option tap, I opened it again - the name of UDF file was not visible in the UDF tap.
I dont know why I got this problem. Could your help me solve this problem?
Thank in advance!

Last edited by lehoanganh07; September 13, 2014 at 11:01.
lehoanganh07 is offline   Reply With Quote

Old   September 13, 2014, 10:59
Default
  #2
Member
 
le hoang anh
Join Date: Oct 2012
Posts: 96
Rep Power: 13
lehoanganh07 is on a distinguished road
Please help!!!
lehoanganh07 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
UDF for specific heat as function of pressure ghobold Fluent UDF and Scheme Programming 20 August 22, 2019 08:19
UDF Compilation Error - Loading Library - COMMON Problem! Help! robtheslob Fluent UDF and Scheme Programming 8 July 24, 2015 00:53
problem of udf with material property france Fluent UDF and Scheme Programming 2 May 27, 2014 08:08
Setting up the pressure variation due to tornado in a duct(UDF)+animation guillaume1990 FLUENT 0 March 3, 2014 11:59
Gas pressure question Dan Moskal Main CFD Forum 0 October 24, 2002 22:02


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