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

Unsteady Velocity - UDF in parallel

Register Blogs Members List Search Today's Posts Mark Forums Read

Reply
 
LinkBack Thread Tools Display Modes
Old   October 25, 2001, 16:16
Default Unsteady Velocity - UDF in parallel
  #1
Prateep Chatterjee
Guest
 
Posts: n/a
I've failed to make my UDF, which computes a time dependent inlet boundary velocity, to work on an Origin 2000 multi processor machine. here is the C code:

#include "udf.h"

DEFINE_PROFILE(unsteady_velocity, thread, position)

{ face_t f;

/* #if !RP_HOST */

begin_f_loop(f, thread)

{

real t = RP_Get_Real("flow-time");

F_PROFILE(f, thread, position) = 0.01789 + 0.001789*sin(20.*t);

} end_f_loop(f, thread)

/* #endif */

}

can anybody point out what changes should I make to the code to make it work in parallel ? the error comes out as:

"chip-exec: unsteady_velocity not found"

I've tried to make changes after looking at files from Fluent. I have some info. related to UDFs in parallel @ http://fbox.vt.edu/users/pchatter. wasn't able to solve the problem though.

  Reply With Quote

Old   November 6, 2001, 04:35
Default Re: Unsteady Velocity - UDF in parallel
  #2
hampton
Guest
 
Posts: n/a
Hi,

Your UDF is perfect. However, Did you select the "unsteady_velocity" in the boundary conditions panel ?

Thanks,
  Reply With Quote

Old   November 6, 2001, 09:44
Default Re: Unsteady Velocity - UDF in parallel
  #3
Prateep Chatterjee
Guest
 
Posts: n/a
yes, I did select the function in the BC panel. I've found out the error:

the "cpp" being used for compiling the UDF was not in the path of NQS batch scheduler! so, all my efforts in trying to find errors in the UDF/Fluent was a complete waste of time. so, in reality, the UDF wasn't getting compiled at all.
  Reply With Quote

Old   November 7, 2001, 03:23
Default Re: Unsteady Velocity - UDF in parallel
  #4
hampton
Guest
 
Posts: n/a
Hi,

Are you using "interpreted UDF" ,aren't you?. In case of this kind of problem, there are possibilities that your system couldn't find the "cpp" during the iterations as you mentioned. So, I recommend changing into "complied UDF". Then, the problem will be solved.

About "complied UDF",please refer to Chapter 24 in FLUENT User's Guide .

Thanks.
  Reply With Quote

Old   November 23, 2001, 04:40
Default Re: Unsteady Velocity - UDF in parallel
  #5
Volker Pawlik
Guest
 
Posts: n/a
It is necessary that all cpus or machines find the udf. Hence the path has to be same for all yor machines in the cluster. If not you will get such a message.

Volker
  Reply With Quote

Reply

Thread Tools
Display Modes

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 On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
UDF for a Unsteady velocity change Paul FLUENT 8 August 29, 2011 02:19
UDF Unsteady velocity parabolic profile Rashad FLUENT 2 February 29, 2008 02:36
UDF Unsteady velocity profile Rashad FLUENT 0 February 27, 2008 14:57
Prob with UDF on parallel computing mainamunna FLUENT 0 February 12, 2008 08:26
unsteady inlet velocity udf jill FLUENT 3 December 4, 2004 08:56


All times are GMT -4. The time now is 20:08.