|
[Sponsors] |
September 18, 2014, 01:42 |
Parallel UDF DEFINE_PROPERTY problem
|
#1 |
Member
le hoang anh
Join Date: Oct 2012
Posts: 96
Rep Power: 14 |
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 |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
problem loading UDF library in parallel cluster | Veera Gutti | FLUENT | 8 | July 26, 2016 08:24 |
Parallel UDF problem | Lindsay | FLUENT | 4 | June 20, 2016 10:37 |
Parallel interDyMFoam cellLevel problem | tgvosk | OpenFOAM Running, Solving & CFD | 5 | February 19, 2014 03:24 |
Serial UDF is working for parallel computation also | Tanjina | Fluent UDF and Scheme Programming | 0 | December 26, 2013 19:24 |
parallel mode - small problem? | co2 | FLUENT | 2 | June 2, 2004 00:47 |