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

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

Register Blogs Community New Posts Updated Threads Search

Like Tree2Likes
  • 1 Post By NAD
  • 1 Post By pakk

Reply
 
LinkBack Thread Tools Search this Thread 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: 15
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, 34 views)
raj kumar saini likes this.
NAD is offline   Reply With Quote

Old   December 9, 2013, 06:00
Default
  #2
Senior Member
 
Join Date: Nov 2013
Posts: 1,965
Rep Power: 27
pakk will become famous soon enough
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
 }
raj kumar saini likes this.
pakk is offline   Reply With Quote

Old   December 9, 2013, 22:25
Default
  #3
NAD
Member
 
Join Date: Oct 2011
Posts: 37
Rep Power: 15
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


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
udf for multi domain problems hzsme Fluent UDF and Scheme Programming 3 June 11, 2019 07:18
phase fraction part of domain RBJ OpenFOAM Post-Processing 0 July 6, 2010 10:33
UDF: how to know domain number in the model? mssound FLUENT 0 May 17, 2010 16:00
Fluent UDF load and apply inlet velocity b.c. Knut Lehmann Main CFD Forum 2 June 29, 2007 05: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 16:13.