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

Parallel UDF DEFINE_PROPERTY problem

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   September 18, 2014, 00:42
Default Parallel UDF DEFINE_PROPERTY problem
  #1
Member
 
le hoang anh
Join Date: Oct 2012
Posts: 96
Rep Power: 13
lehoanganh07 is on a distinguished road
Hi, Fluent user,
I make a UDF file which modify vapor pressure as the function of temperature. The UDF complie successful in single calculation. But when using parallel calculation, it have problem: The value Vapor_pre must be return

Single calculation:
#include "udf.h"
#include "math.h"

#define aa1 8.07131
#define aa2 1730.63
#define aa3 233.426

DEFINE_PROPERTY(Vapor_pre,c,t)
{
real T;
real P;
real temp;
T=C_T(c,t);
temp=aa1-aa2/(aa3+T-273.0);
P=pow(10,temp)*133.322368;
return P;
}

Parallel calculation


#include "udf.h"
#include "math.h"

#define aa1 8.07131
#define aa2 1730.63
#define aa3 233.426

DEFINE_PROPERTY(Vapor_pre,c,t)
{
#if !RP_HOST
real T;
real P;
real temp;
T=C_T(c,t);
temp=aa1-aa2/(aa3+T-273.0);
P=pow(10,temp)*133.322368;
return P;
#endif
}

please help me how to fix this. Thank in advance
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
problem loading UDF library in parallel cluster Veera Gutti FLUENT 8 July 26, 2016 07:24
Parallel UDF problem Lindsay FLUENT 4 June 20, 2016 09:37
Parallel interDyMFoam cellLevel problem tgvosk OpenFOAM Running, Solving & CFD 5 February 19, 2014 02:24
Serial UDF is working for parallel computation also Tanjina Fluent UDF and Scheme Programming 0 December 26, 2013 18:24
parallel mode - small problem? co2 FLUENT 2 June 1, 2004 23:47


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