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

difference in domain and thread loops

Register Blogs Members List Search Today's Posts Mark Forums Read

Like Tree2Likes
  • 2 Post By `e`

Reply
 
LinkBack Thread Tools Display Modes
Old   February 9, 2016, 21:51
Default difference in domain and thread loops
  #1
Senior Member
 
Join Date: Mar 2014
Posts: 375
Rep Power: 5
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 10, 2016, 00:00
Default
  #2
`e`
Senior Member
 
Join Date: Mar 2015
Posts: 800
Rep Power: 10
`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".
hwet and Jehosh like this.
`e` is offline   Reply With Quote

Reply

Thread Tools
Display Modes

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 On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
udf problem jane Fluent UDF and Scheme Programming 15 October 12, 2016 14:44
Divergence detected in AMG solver: k when udf loaded google9002 Fluent UDF and Scheme Programming 1 April 20, 2015 22:27
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 23:06.