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

Parallel UDF for viscous resistance for porous media

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   March 9, 2013, 14:31
Default Parallel UDF for viscous resistance for porous media
  #1
New Member
 
Join Date: Mar 2013
Posts: 6
Rep Power: 13
CfdMirco is on a distinguished road
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
}
CfdMirco is offline   Reply With Quote

Old   March 15, 2013, 08:49
Default
  #2
Senior Member
 
Paritosh Vasava
Join Date: Oct 2012
Location: Lappeenranta, Finland
Posts: 732
Rep Power: 22
vasava will become famous soon enough
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.
vasava is offline   Reply With Quote

Reply

Tags
parallel, porous media, udf, viscous resistance


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
viscous resistance coefficients in Porous media choyong FLUENT 9 December 15, 2014 20:01
Problem in using UDF in parallel computing Yogini Fluent UDF and Scheme Programming 0 January 22, 2013 08:23
UDF Error with Parallel affter several step trantoan2008 Fluent UDF and Scheme Programming 0 January 7, 2013 07:33
UDF for viscous resistance for porous media with time variable benson621 Fluent UDF and Scheme Programming 2 November 24, 2011 11:59
UDF in parallel analysis? Ricky FLUENT 0 May 5, 2003 04:44


All times are GMT -4. The time now is 01:40.