|
[Sponsors] |
September 12, 2014, 00:04 |
Vaporization pressure UDF property problem?
|
#1 |
Member
le hoang anh
Join Date: Oct 2012
Posts: 96
Rep Power: 14 |
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. |
|
September 13, 2014, 11:59 |
|
#2 |
Member
le hoang anh
Join Date: Oct 2012
Posts: 96
Rep Power: 14 |
Please help!!!
|
|
|
|
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 |