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

Usage of define macro

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

Reply
 
LinkBack Thread Tools Display Modes
Old   July 8, 2010, 10:18
Post define macro for setting porosity settings
  #1
New Member
 
Join Date: Jul 2010
Posts: 4
Rep Power: 6
bearli is on a distinguished road
Hi,
In a porous zone I'm trying to define the "viscous resistance" (c1) and the "inertial resistance" (c2) using a UDF macro.
However, the define_property() macro does not work. And I'm not sure if the use of a define_adjust() macro will succeed since nothing is returned. What is the common way to define such properties (c1,c2 or for instance a massflow rate at the inlet boundary) with udf?

Thanks in advance,
bearli



//edit: Of course I've read the "Example 6 - Viscous Resistance Profile in a Porous Zone" tutorial. But is this really necessary? I mean it should be possible to pass just a value without the need to loop over the whole domain.
Is there an easy way to check which value has been set to the cells?

Last edited by bearli; July 8, 2010 at 11:18.
bearli is offline   Reply With Quote

Reply

Tags
macro, porous, udf

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
Installing OF 1.6 on Mac OS X gschaider OpenFOAM Installation 140 June 19, 2010 09:23
HELP----Surface Reaction UDF Ashi Fluent UDF and Scheme Programming 0 May 25, 2009 09:39
Missing math.h header Travis FLUENT 4 January 15, 2009 11:48
Free surface boudary conditions with SOLA-VOF Fan Main CFD Forum 10 September 9, 2006 12:24
UDF FOR UNSTEADY TIME STEP mayur FLUENT 3 August 9, 2006 10:19


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