|
[Sponsors] |
Parallel UDF for viscous resistance for porous media |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
March 9, 2013, 15:31 |
Parallel UDF for viscous resistance for porous media
|
#1 |
New Member
Join Date: Mar 2013
Posts: 6
Rep Power: 13 |
Hello,
I'm having problem with a parallel udf for viscous resistance for porous media. During the compiling process, when i load the udf, fluent give me this error: Error: The UDF library you are trying to load (libudf) is not compiled for parallel use on the current platform (win64). I do not understand what I'm doing wrong, someone can help me? Thank you!! Here is the code: #include "udf.h" #include "mem.h" #include "unsteady.h" #include "metric.h" DEFINE_PROFILE(vres_pro10,thread,nv) { cell_t c; #if !RP_HOST real time=RP_Get_Real("flow-time"); begin_c_loop(c,thread) { C_PROFILE(c,thread,nv)=-(0.6632*exp(-1*((time+4-4.216)/0.3303)*((time+4-4.216)/0.3303))+2.384*exp(-1*((time+4-3.812)/0.6343)*((time+4-3.812)/0.6343))+0.02211*exp(-1*((time+4-7.055)/0.3902)*((time+4-7.055)/0.3902))+1.062*exp(-1*((time+4-6.428)/1.673)*((time+4-6.428)/1.673))+(-4.059)*exp(-1*((time+4-440)/2032)*((time+4-440)/2032))+(-0.02729)*exp(-1*((time+4-8.068)/0.01501)*((time+4-8.068)/0.01501))+0.5449*exp(-1*((time+4-8.327)/2.103)*((time+4-8.327)/2.103))+3.839*exp(-1*((time+4-12.16)/7.86)*((time+4-12.16)/7.86)))*(((3.14*(6.25*(10e-6)))/4)/(7.12*10e-5)); } end_c_loop(f,thread) #endif } |
|
March 15, 2013, 09:49 |
|
#2 |
Senior Member
Paritosh Vasava
Join Date: Oct 2012
Location: Lappeenranta, Finland
Posts: 732
Rep Power: 23 |
Can you compile your UDF for serial process?
If yes: Your UDF need modification in order to make it 'compilable' for parallel process. If No: Your compiler is not set right. |
|
Tags |
parallel, porous media, udf, viscous resistance |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
viscous resistance coefficients in Porous media | choyong | FLUENT | 9 | December 15, 2014 21:01 |
Problem in using UDF in parallel computing | Yogini | Fluent UDF and Scheme Programming | 0 | January 22, 2013 09:23 |
UDF Error with Parallel affter several step | trantoan2008 | Fluent UDF and Scheme Programming | 0 | January 7, 2013 08:33 |
UDF for viscous resistance for porous media with time variable | benson621 | Fluent UDF and Scheme Programming | 2 | November 24, 2011 12:59 |
UDF in parallel analysis? | Ricky | FLUENT | 0 | May 5, 2003 05:44 |