CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   FLUENT (https://www.cfd-online.com/Forums/fluent/)
-   -   how to apply UDF only for one part of the Domain? (https://www.cfd-online.com/Forums/fluent/127321-how-apply-udf-only-one-part-domain.html)

NAD December 9, 2013 03:38

how to apply UDF only for one part of the Domain?
 
1 Attachment(s)
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

pakk December 9, 2013 05:00

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
 }


NAD December 9, 2013 21:25

Hi pakk,

thanks so much for your quick reply and your help.

regards,
NAD


All times are GMT -4. The time now is 01:25.