July 3, 2020 at 9:31 amKeFonSubscriber
I am trying to export data to compute a local property.
I want to retrieve data on faces that are on two opposite sides of a same wall.
Because of the mesh construction, I expected the number of faces on both threads to be the same which I could confirm using the GUI:
Zone sizes on domain 1:
1089 quadrilateral wall faces, zone 4.
1089 quadrilateral wall faces, zone 7.
1089 quadrilateral wall faces, zone 5.
1089 quadrilateral wall faces, zone 18.
I am interested in faces in zone 4 and 5.
Using a UDF to write on two files the data from these two zones, I get a different number of data for each zone.
Here is a portion of the UDF to show how I defined the domain and threads and how I computed the number of elements :
size_water = THREAD_N_ELEMENTS_INT(wall_thread_water);
size_NH3 = THREAD_N_ELEMENTS_INT(wall_thread_NH3);
Which gives a total of 1725 faces for zone 5 and 1623 faces for zone 4.
Could someone explain where the differences are coming from?
July 3, 2020 at 3:50 pmRobAnsys Employee
If you try the UDF in serial what do you get?
July 10, 2020 at 4:17 amKeFonSubscriber
Thank you very much for your fast answer. We had an issue with the license server and I could not try it until today.
Using Fluent in serial mode, I get the same number of faces from the macro THREAD_N_ELEMENTS_INT and from the GUI for both sides (1089).
Seeing this result, I tried to include a loop on the faces to count them in parallel mode using if (PRINCIPAL_FACE_P(f,*corresponding thread*)) first. The sum of the counted cells gave 1089 for both sides.
I could use a first loop to get the number of faces and then a second one to get the properties but I would rather avoid that solution if possible.
- 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
- The solver failed with a non-zero exit code of : 2
- Getting graph and tabular data from result in workbench mechanical
- Difference between K-epsilon and K-omega Turbulence Model
- Time Step Size and Courant Number
- Mesh Interfaces in ANSYS FLUENT
- error in cfd post
© 2022 Copyright ANSYS, Inc. All rights reserved.