|
[Sponsors] |
![]() |
![]() |
#1 |
Senior Member
Join Date: Mar 2014
Posts: 375
Rep Power: 13 ![]() |
Could someone explain the difference in looping over all domains and looping over all threads? Asking this since I am confused about what sort of information do domains carry -->Do the domains contain information only about the threads and not the information stored in the threads? It is not very clear from the UDF manual.
If that is the case why do I need to loop over threads when I already have the domain data structure. But well if they do not carry all this info then it makes sense to me... |
|
![]() |
![]() |
![]() |
![]() |
#2 |
Senior Member
Join Date: Mar 2015
Posts: 892
Rep Power: 18 ![]() |
Threads are a structure data type for groups of cells (cell zones) or faces (boundaries). To cover all cells, you need to loop over cells within a thread and also loop through all threads (as an outer loop). If you only want to cover one boundary (for example an inlet) then you could loop over the cells within a specific thread using its ID.
Domains contain data for the node, face and cell threads in a mesh. Only one domain exists for single phase flows which is most common (and generally most UDFs that use domains simply call with Get_Domain(1);). Multiphase flows have multiple domains for the various phases and are explained in the UDF manual under "Multiphase-specific Data Types". |
|
![]() |
![]() |
![]() |
![]() |
#3 | |
Member
sina
Join Date: Nov 2021
Posts: 41
Rep Power: 5 ![]() |
Quote:
How could i select that boundary? Best regards, |
||
![]() |
![]() |
![]() |
|
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Divergence detected in AMG solver: k when udf loaded | google9002 | Fluent UDF and Scheme Programming | 3 | November 8, 2019 00:34 |
udf problem | jane | Fluent UDF and Scheme Programming | 37 | February 20, 2018 05:17 |
UDF Scalar Code: HT 1 | Greg Perkins | FLUENT | 8 | October 20, 2000 13:40 |
UDFs for Scalar Eqn - Fluid/Solid HT | Greg Perkins | FLUENT | 0 | October 14, 2000 00:03 |
UDFs for Scalar Eqn - Fluid/Solid HT | Greg Perkins | FLUENT | 0 | October 11, 2000 04:43 |