December 4, 2018 at 7:22 pmLukeMSubscriber
I have found very little information about subthreads in the user manual, so I am looking for clarity on the topic. From my understanding, threads are computer-defined groupings of cells; subthreads split each thread into regions where each phase resides. Is that correct?
The complication arises at the interface between two phases. Assuming VOF is the multiphase model in the simulation, a cell at the interface could have a "Phase1" volume fraction of 0.5. Does the cell belong to the subthreads of both phases? Does it belong to neither?
Additionally, in a UDF DEFINE macro based on a single cell (like DEFINE_SOURCE), is the thread argument passed to the UDF the thread or the subthread? If it is a subthread, as some of my experimenting seems to suggest, how can I know which phase it represents?
Lastly, if I want to call a cell flow variable macro such as C_R(c,t) for a cell potentially at the interface, which thread should I pass to the macro? The parent/super thread? One of the subthreads?
Thanks in advance.
December 4, 2018 at 9:01 pmDrAmineAnsys Employee
1/The threads are duplicated in multiphase flows: you will have mixture, phase and interaction threads. The latter almost never used. All these information are in the manual. For your cell at the interface, you can access based on the thread different information based on the model used. Saying every cell will belong to all threads: the bulk and the phase ones.
2/It depends on where it is hooked
3/It depends on what you want to get: If t correspond to the primary phase thread then C_R is the density of that phase. Again everything is steered by the thread you are working on /looping through.
December 5, 2018 at 2:00 amLukeMSubscriber
1) If I'm understanding you correctly, the subthreads have less to do with dividing the cells in the thread and more to do with the phases. Is that correct? Also, if you could provide the article(s) in the manual that discusses the mixture, phase and interaction threads you alluded to, I would greatly appreciate it. I have scoured the manual trying to find information on the topic, but I could not find a thorough description.
2) It seems like you're suggesting that, if the UDF is hooked at the phase-level, the thread argument will be the subthread (phase-level thread). But if the UDF is hooked to the bulk region, then the UDF argument will be the "super thread". Is that correct?
3) To continue in the example of C_R before, if I pass in the bulk, "super" thread, it will provide the overall, bulk density for that cell. But if I pass in the subthread, C_R will provide the local density of that phase. Again, is that correct?
Thanks for the help.
December 5, 2018 at 5:59 amDrAmineAnsys EmployeeThere are some exceptions as some variables are only accessible on phase thread and only model dependent. The post processing in Fluent will give you an idea which variables are available for bulk and for phase level.
In the help look after multiphase specific data types.
- You must be logged in to reply to this topic.
Simulation World 2022
Check out more than 70 different sessions now available on demand. Get inspired as you hear from visionary companies, leading researchers and educators from around the globe on a variety of topics from life-saving improvements in healthcare, to bold new realities of space travel. Take a leap of certainty and check out a session today here.
Earth Rescue – An Ansys Online Series
The climate crisis is here. But so is the human ingenuity to fight it. Earth Rescue reveals what visionary companies are doing today to engineer radical new ideas in the fight against climate change. Click here to watch the first episode.
Subscribe to the Ansys Blog to get great new content about the power of simulation delivered right to your email on a weekly basis. With content from Ansys experts, partners and customers you will learn about product development advances, thought leadership and trends and tips to better use Ansys tools. Sign up here.
- Suppress Fluent to open with GUI while performing in journal file
- Heat transfer coefficient
- What are the differences between CFX and Fluent?
- Floating point exception in Fluent
- Time Step Size and Courant Number
- Difference between K-epsilon and K-omega Turbulence Model
- Floating point exception
- The solver failed with a non-zero exit code of : 2
- How to model free convection warming of liquid in a plastic bag