-
-
July 17, 2019 at 5:01 pm
rkoomul
SubscriberI am simulating diffusion of a UDS in a domain and I am looking for a way to mark all cell-faces on a boundary which has a UDS concentration above a specified threshold. Also, I need to calculate the total area of all these marked faces. The goal of this modeling is to find an optimum UDS source location to get the maximum boundary cell-face coverage. Since it is an optimization problem, I have to calculate the area covered multiple times. So, I am looking for an automatic way to do this. What is best way to do this?
Thank you in advance.
-
July 18, 2019 at 5:08 am
DrAmine
Ansys EmployeeYou Can use cell register feature to mark the regions where UDS is in certain range, below or above some threshold value. -
July 18, 2019 at 1:29 pm
rkoomul
SubscriberThank Amine for the reply. Could you please elaborate a little more how to do it? Do you have any examples for any similar problem?
Thank you,
-
July 18, 2019 at 2:05 pm
DrAmine
Ansys EmployeeSomething old but might be helpful:
even if for initialization purpose.
In new versions better to use Cell Registers and then select UDS as Field variable.
-
July 23, 2019 at 9:50 pm
rkoomul
SubscriberThank you Amine. I tried cell-registers using field variables. But, there is no option in it to select boundary surfaces to specify the range for the field variable. Please see the image in the attached file. Also, I checked the cell registers based on boundaries. But, there is no option in it to specify the range for field variables. Any suggestions?
-
July 24, 2019 at 9:59 am
DrAmine
Ansys EmployeeWhat do you want to do? You want to mark only cell near surfaces where UDS is above certain value?
-
July 24, 2019 at 1:34 pm
rkoomul
SubscriberWe are trying to find an ideal location of a medicine injection to an anisotropic medium. This is an optimization problem, and the cost function is the maximum surface area coverage by the medicine and the independent variable is the location of the medicine injection. So, during each optimization run, we need to mark all boundary cell-faces which has a medicine concentration above a threshold value and we need to calculate the total area of these marked cells.
-
July 24, 2019 at 4:23 pm
DrAmine
Ansys EmployeeSo you need to get the faces if the boundary which depict certain value. Okay...
Does looking into contour plots and showing the uds value atvthe surfaces and clip to range a good start? -
July 24, 2019 at 4:31 pm
rkoomul
SubscriberThat will give a qualitative description, for visualization. But, it will not give the quantitative data data that I need for optimization. For optimization I need to define cost function, which is the area of coverage that I described earlier.
-
July 24, 2019 at 4:39 pm
DrAmine
Ansys EmployeeBut you can clip the surfaces based on the yes value range. You can then get the area of the clip.
I am only providing this simple suggestions before you need to use UDF. -
July 24, 2019 at 6:56 pm
rkoomul
SubscriberThank you Amine. As you suggested, I was able to clip the boundary surface using "Setting Up Domain -> Surface -> Create -> Iso-clip". Then, I created a new "Report Definitions -> New -> Surface Report -> Area" and selected the clipped-scalar to watch the area coverage as the simulation progresses. I was able to see the change in area coverage using a report monitor.
Is there any similar option available for volume clipping? I tried "Setting Up Domain -> Adapt -> Mark/Adapt Cells", and marked the iso-value region. I could visualize the selected region using "Manage Registers -> Display". But, this marked region is available when I create a report to calculate the volume of the selected region.
Thank you.
-
July 25, 2019 at 5:00 am
DrAmine
Ansys EmployeeActually quick ansewer is no. Let me think about that and update later. -
July 25, 2019 at 6:32 am
DrAmine
Ansys EmployeeAfter thinking about it: No. You need an UDF. One can try to mark the cells and use that to separate the zones but not ideal. In the next versions there will be a workaround via Expressions.
Best workaround is to use CFD-Post for that and create a Volume Clip. Afterwards you can measure the volume of that clip.
-
- You must be logged in to reply to this topic.

Boost Ansys Fluent Simulations with AWS
Computational Fluid Dynamics (CFD) helps engineers design products in which the flow of fluid components is a significant challenge. These different use cases often require large complex models to solve on a traditional workstation. Click here to join this event to learn how to leverage Ansys Fluids on the cloud, thanks to Ansys Gateway powered by AWS.

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.

Ansys Blog
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
- Floating point exception in Fluent
- What are the differences between CFX and Fluent?
- Heat transfer coefficient
- Getting graph and tabular data from result in workbench mechanical
- The solver failed with a non-zero exit code of : 2
- Difference between K-epsilon and K-omega Turbulence Model
- Time Step Size and Courant Number
- Mesh Interfaces in ANSYS FLUENT
- error in cfd post
-
3744
-
2573
-
1821
-
1236
-
594
© 2023 Copyright ANSYS, Inc. All rights reserved.