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

difference in domain and thread loops

Register Blogs Community New Posts Updated Threads Search

Like Tree4Likes
  • 4 Post By `e`

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   February 9, 2016, 20:51
Default difference in domain and thread loops
  #1
Senior Member
 
Join Date: Mar 2014
Posts: 375
Rep Power: 13
hwet is on a distinguished road
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...
hwet is offline   Reply With Quote

Old   February 9, 2016, 23:00
Default
  #2
`e`
Senior Member
 
Join Date: Mar 2015
Posts: 892
Rep Power: 18
`e` is on a distinguished road
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".
wc34071209, hwet, Jehosh and 1 others like this.
`e` is offline   Reply With Quote

Old   August 1, 2022, 14:20
Default
  #3
Member
 
sina
Join Date: Nov 2021
Posts: 41
Rep Power: 4
sina_sls is on a distinguished road
Quote:
Originally Posted by `e` View Post
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".
Hello,

How could i select that boundary?

Best regards,
sina_sls is offline   Reply With Quote

Reply


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
Divergence detected in AMG solver: k when udf loaded google9002 Fluent UDF and Scheme Programming 3 November 7, 2019 23:34
udf problem jane Fluent UDF and Scheme Programming 37 February 20, 2018 04:17
UDF Scalar Code: HT 1 Greg Perkins FLUENT 8 October 20, 2000 12:40
UDFs for Scalar Eqn - Fluid/Solid HT Greg Perkins FLUENT 0 October 13, 2000 23:03
UDFs for Scalar Eqn - Fluid/Solid HT Greg Perkins FLUENT 0 October 11, 2000 03:43


All times are GMT -4. The time now is 12:23.