|
[Sponsors] |
how to apply UDF only for one part of the Domain? |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
December 9, 2013, 04:38 |
how to apply UDF only for one part of the Domain?
|
#1 |
Member
Join Date: Oct 2011
Posts: 37
Rep Power: 15 |
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 |
|
December 9, 2013, 06:00 |
|
#2 |
Senior Member
Join Date: Nov 2013
Posts: 1,965
Rep Power: 27 |
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 } |
|
December 9, 2013, 22:25 |
|
#3 |
Member
Join Date: Oct 2011
Posts: 37
Rep Power: 15 |
Hi pakk,
thanks so much for your quick reply and your help. regards, NAD |
|
Tags |
mixture, thread cell access, udf |
|
|
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 |