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

how to apply UDF only for one part of the Domain?

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

Reply
 
LinkBack Thread Tools Display Modes
Old   December 9, 2013, 04:38
Post how to apply UDF only for one part of the Domain?
  #1
NAD
Member
 
Join Date: Oct 2011
Posts: 37
Rep Power: 5
NAD is on a distinguished road
Hi,
In a mixture, axisymetric, transient simulation which is performed on Domain composed of two regions(region I,II ) , I want to use UDF(DEFINE_INIT) to initialize some parameters of the fluid in one region(similar to patch).

the probelm is that i don't know how to applied the udf just to one region of the domain? how to get only the cell threads of region I?

any one could help me on this?

thanks in advance

best regards,
NAD
Attached Images
File Type: png Domain.png (6.7 KB, 7 views)
NAD is offline   Reply With Quote

Old   December 9, 2013, 06:00
Default
  #2
Senior Member
 
Join Date: Nov 2013
Posts: 670
Rep Power: 9
pakk is on a distinguished road
Find out what the zone number is of the zone that you want (in Fluent, I think it is at the 'boundary conditions' tab, see which number is shown for the relevant 'interior'). Suppose that number is 8, then change your udf into
Code:
if (THREAD_ID==8) {
 \\here you put the code you had before
 }
pakk is offline   Reply With Quote

Old   December 9, 2013, 22:25
Default
  #3
NAD
Member
 
Join Date: Oct 2011
Posts: 37
Rep Power: 5
NAD is on a distinguished road
Hi pakk,

thanks so much for your quick reply and your help.

regards,
NAD
NAD is offline   Reply With Quote

Reply

Tags
mixture, thread cell access, 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
udf for multi domain problems hzsme Fluent UDF and Scheme Programming 2 September 23, 2012 02:02
phase fraction part of domain RBJ OpenFOAM Post-Processing 0 July 6, 2010 09:33
UDF: how to know domain number in the model? mssound FLUENT 0 May 17, 2010 15:00
Fluent UDF load and apply inlet velocity b.c. Knut Lehmann Main CFD Forum 2 June 29, 2007 04:53
UDF to apply source to a group of cells Hiranya Nath FLUENT 4 March 15, 2002 06:01


All times are GMT -4. The time now is 14:15.