CFD Online Logo CFD Online URL
Home > Forums > Software User Forums > ANSYS > FLUENT

Usage of define macro

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

LinkBack Thread Tools Search this Thread Display Modes
Old   July 8, 2010, 10:18
Post define macro for setting porosity settings
New Member
Join Date: Jul 2010
Posts: 4
Rep Power: 13
bearli is on a distinguished road
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,

//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


macro, porous, udf

Thread Tools Search this Thread
Search this Thread:

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

Similar Threads
Thread Thread Starter Forum Replies Last Post
HELP----Surface Reaction UDF Ashi Fluent UDF and Scheme Programming 1 May 19, 2020 21:13
Installing OF 1.6 on Mac OS X gschaider OpenFOAM Installation 129 June 19, 2010 09:23
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 15:40.