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

UDF parallel velocity inlet profile

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

Reply
 
LinkBack Thread Tools Display Modes
Old   August 3, 2009, 12:18
Default UDF parallel velocity inlet profile
  #1
New Member
 
Jordi Armengol Masferrer
Join Date: May 2009
Posts: 1
Rep Power: 0
Armengol is on a distinguished road
Hi there,

I've got a problem programming a udf to define a logarithmic velocity profile for a BC. Down here you'll find my udf which works on single mode but i got the following error when trying to interpret my vinlet.c file in fluent.

home/apps/Fluent.Inc/fluent6.3.26/src" -I"/home/apps/Fluent.Inc/fluent6.3.26/cortex/src" -I"/home/apps/Fluent.Inc/fluent6.3.26/client/src" -I"/home/apps/Fluent.Inc/fluent6.3.26/multiport/src" -I. -DUDFCONFIG_H="<udfconfig-host.h>" "/home/jarmengol/vent/vinlet.c"
Error: /home/jarmengol/vent/vinlet.c: line 2: syntax error.)

#include "udf.h"
DEFINE_PROFILE(vinlet, thread, index)
{
real x[ND_ND];
real z;
face_t f;
begin_f_loop(f, thread)
{
F_CENTROID(x,f,thread);
z = x[2];
F_PROFILE(f, thread, index) = log( z / 0.1 ) * .58 / .41;
}
end_f_loop(f, thread)
}


I have also tried with #if RP_NODE loop as in a previous threat but is not working... i got the same error.

Thanks in advance!

Armengol
Armengol is offline   Reply With Quote

Old   August 12, 2009, 10:35
Default
  #2
New Member
 
Join Date: Aug 2009
Posts: 5
Rep Power: 7
Tom38 is on a distinguished road
Hi,

It works for me.

Tom
Tom38 is offline   Reply With Quote

Old   September 30, 2009, 07:20
Default have you found the answer for your question ?
  #3
New Member
 
Michał Szymański
Join Date: Sep 2009
Posts: 2
Rep Power: 0
szyman is on a distinguished road
I have exacly same problem with my udf . Can't interpret it on parallel mode.
szyman is offline   Reply With Quote

Old   September 30, 2009, 15:08
Default
  #4
Member
 
Ivan
Join Date: May 2009
Posts: 85
Rep Power: 8
ivanbuz is on a distinguished road
Do you interpret the UDF in single mode, save the case file, and then open the case file in parallel mode?
ivanbuz is offline   Reply With Quote

Reply

Tags
inlet profile, parallel, udf, velocity profile

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
velocity profile inlet boundary condition question Lcw FLUENT 3 August 3, 2012 05:53
UDF Unsteady velocity parabolic profile Rashad FLUENT 2 February 29, 2008 03:36
Multi step transient UDF velocity profile problem William177 FLUENT 1 February 3, 2008 07:47
Fluent UDF load and apply inlet velocity b.c. Knut Lehmann Main CFD Forum 2 June 29, 2007 04:53
Variables Definition in CFX Solver 5.6 R P CFX 2 October 26, 2004 02:13


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