|
[Sponsors] |
how to apply UDF only for one part of the Domain? |
![]() |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
![]() |
![]() |
#1 |
Member
Join Date: Oct 2011
Posts: 37
Rep Power: 14 ![]() |
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 |
|
![]() |
![]() |
![]() |
![]() |
#2 |
Senior Member
Join Date: Nov 2013
Posts: 1,965
Rep Power: 26 ![]() |
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 } |
|
![]() |
![]() |
![]() |
![]() |
#3 |
Member
Join Date: Oct 2011
Posts: 37
Rep Power: 14 ![]() |
Hi pakk,
thanks so much for your quick reply and your help. regards, NAD |
|
![]() |
![]() |
![]() |
Tags |
mixture, thread cell access, udf |
|
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
udf for multi domain problems | hzsme | Fluent UDF and Scheme Programming | 3 | June 11, 2019 06:18 |
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 05:01 |