CFD Online Logo CFD Online URL
Home > Forums > FLUENT

A simple UDF question

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

LinkBack Thread Tools Display Modes
Old   October 31, 2007, 16:22
Default A simple UDF question
Pirooz Darabi
Posts: n/a
Sponsored Links
Hi Everyone,

I was reading one of Fluent's UDF examples in which the goal is to initialize the volume fraction of the secondary phase (UDF for initializing phase volume fraction). We all know that all the domains except the superdomain are not necessarily sequentially ordered; therefore, domain_id 3 does not necessarily mean the secondary phase. However, in this examples for finding the secondary phase the following is used

if (DOMAIN_ID(subdomain) == 3)

This does not make sense to me and I think the secondary phase should have been found with the aid of "phase_domain_index!"

Can somebody clarify the matter for me?

Cheers, Pirooz

  Reply With Quote
Sponsored Links


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
please help me. i have question about the UDF at the DPM motallebi FLUENT 0 July 6, 2009 11:27
question on UDF manual example ak6g08 FLUENT 0 June 25, 2009 11:58
UDF - Source Term Question Jacques FLUENT 0 December 8, 2008 14:40
question about writing an udf Denitiu Marian FLUENT 2 January 14, 2005 07:28
A question about the dynamic mesh UDF Tango FLUENT 1 November 27, 2003 03:56

Sponsored Links

All times are GMT -4. The time now is 09:21.