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 Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   September 12, 2014, 00:04
Question Vaporization pressure UDF property problem?
  #1
Member
 
le hoang anh
Join Date: Oct 2012
Posts: 96
Rep Power: 14
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 12:01.
lehoanganh07 is offline   Reply With Quote

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


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