CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > ANSYS

CFD-Post evaluation

Register Blogs Community New Posts Updated Threads Search

Like Tree1Likes
  • 1 Post By farbflash_

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   November 3, 2021, 08:38
Default CFD-Post evaluation
  #1
New Member
 
Lukas
Join Date: Sep 2021
Posts: 10
Rep Power: 4
farbflash_ is on a distinguished road
Hello,


I want to quantify the zone under the iso-surface shown in the picture. Therefore I calculate volume and length. Is there a way of doing it in CFD-Post?
For now, I'm exporting the surface and calculate the result in MATLAB. But as I want to automate the process, the sweetest option would be to do it in CFD-Post.

Thanks in advance,
Lukas
Attached Images
File Type: png IsosurfaceOVPNG.PNG (49.4 KB, 12 views)
farbflash_ is offline   Reply With Quote

Old   November 13, 2021, 06:09
Default
  #2
Senior Member
 
Gert-Jan
Join Date: Oct 2012
Location: Europe
Posts: 1,827
Rep Power: 27
Gert-Jan will become famous soon enough
You can create a volume from an isosurface. Then the elements below, at or above can be included. This volume can be quantified using an expression.

Remember that the isosurface is an interpolation in space. The volume method includes whole elements which will not align with the isosurface. So, the method will deviate from what you probably will determine in MATLAB. This should not be a problem as long as you know what you are doing. What also helps is to reduce local mesh size.
Gert-Jan is offline   Reply With Quote

Old   November 13, 2021, 06:55
Default
  #3
New Member
 
Lukas
Join Date: Sep 2021
Posts: 10
Rep Power: 4
farbflash_ is on a distinguished road
Quote:
Originally Posted by Gert-Jan View Post
You can create a volume from an isosurface. Then the elements below, at or above can be included. This volume can be quantified using an expression.

Remember that the isosurface is an interpolation in space. The volume method includes whole elements which will not align with the isosurface. So, the method will deviate from what you probably will determine in MATLAB. This should not be a problem as long as you know what you are doing. What also helps is to reduce local mesh size.

First of all thanks for your reply.
What kind of expression do I need? What should it look like?
farbflash_ is offline   Reply With Quote

Old   November 13, 2021, 07:43
Default
  #4
Senior Member
 
Gert-Jan
Join Date: Oct 2012
Location: Europe
Posts: 1,827
Rep Power: 27
Gert-Jan will become famous soon enough
You can use the function calculator. Look for the function volume and the location i.e. the volume as covered by your isosurface.
By pressing apply, you will find the volume.
If you tick on "Show equivalant expression", the calculator will show you the expression that is used. You can copy this equation to a table in Post which will give you the same number. (Remove the additional spaces that come when copying from the function calculator.)
This table can be part of the Report that can be saved for further processing outside Post..

An additional option is to add Text to a figure. In the text definition, you can add the expression as well. Then you have a figure with the volume as a number.
Gert-Jan is offline   Reply With Quote

Old   November 14, 2021, 04:03
Default
  #5
New Member
 
Lukas
Join Date: Sep 2021
Posts: 10
Rep Power: 4
farbflash_ is on a distinguished road
Quote:
Originally Posted by Gert-Jan View Post
You can use the function calculator. Look for the function volume and the location i.e. the volume as covered by your isosurface.
By pressing apply, you will find the volume.
If you tick on "Show equivalant expression", the calculator will show you the expression that is used. You can copy this equation to a table in Post which will give you the same number. (Remove the additional spaces that come when copying from the function calculator.)
This table can be part of the Report that can be saved for further processing outside Post..

An additional option is to add Text to a figure. In the text definition, you can add the expression as well. Then you have a figure with the volume as a number.
Ah perfect, it’s working. There is only one problem left, the region in the picture is a iso-clip from a isosurface. There are several regions which are matching my condition from the isosurface, so i had to clip them. But the calc function does not seem to calculate volume from a clip, right?
Is there a work around? I've been trying to get around it for several hours but couldn’t find a way yet.
As always: thanks in advance, Gert-Jan.
farbflash_ is offline   Reply With Quote

Old   November 14, 2021, 04:56
Default
  #6
Senior Member
 
Gert-Jan
Join Date: Oct 2012
Location: Europe
Posts: 1,827
Rep Power: 27
Gert-Jan will become famous soon enough
You can create an expression with step-functions with geometrical limits for clipping.
Say your isosurface is the air volume fraction 0.99 and only want to see it above z=1, above y=0 and above x=0. Then you can create an expression something like;

airvfxyzlimit = Air.Volume Fraciton*step(z/1[m]-1)*step(y/1[m])*step(x/1[m])

Then go to the tab Variables, create a new variable like AirVFxyzlimit and let it refer to your expression airvfxyzlimit

Then go to your isosurface, and use the geometrically limited variable on the value 0.99. If your x, y and z limits have the right values, then you only see the small isosurface that you want.

Now to determine the volume within this isosurface, use the geometrically limited variable in the expression.

___________
P.S. In principle, you don't need the new variable, since you can determine the volume right away from the geometrically limited expression. But a visual confirmation of what you are doing is correct, will help a lot in the beginning.
Gert-Jan is offline   Reply With Quote

Old   November 14, 2021, 06:08
Default
  #7
New Member
 
Lukas
Join Date: Sep 2021
Posts: 10
Rep Power: 4
farbflash_ is on a distinguished road
Quote:
Originally Posted by Gert-Jan View Post
You can create an expression with step-functions with geometrical limits for clipping.
Say your isosurface is the air volume fraction 0.99 and only want to see it above z=1, above y=0 and above x=0. Then you can create an expression something like;

airvfxyzlimit = Air.Volume Fraciton*step(z/1[m]-1)*step(y/1[m])*step(x/1[m])

Then go to the tab Variables, create a new variable like AirVFxyzlimit and let it refer to your expression airvfxyzlimit

Then go to your isosurface, and use the geometrically limited variable on the value 0.99. If your x, y and z limits have the right values, then you only see the small isosurface that you want.

Now to determine the volume within this isosurface, use the geometrically limited variable in the expression.

___________
P.S. In principle, you don't need the new variable, since you can determine the volume right away from the geometrically limited expression. But a visual confirmation of what you are doing is correct, will help a lot in the beginning.

Its working like a charm!
Thanks a lot, Gert-Jan!
arnie333 likes this.
farbflash_ 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
Using CFD Post for OpenFoam results Karpfen OpenFOAM Post-Processing 3 January 19, 2018 08:48
On the CFD market and trends sbaffini Main CFD Forum 14 June 13, 2017 11:48
Post-processing star ccm+ results in Ansys CFD Post sidharath STAR-CCM+ 4 April 10, 2017 11:49
Post processing in CFD Post or Fluent. Blobs OpenFOAM Post-Processing 2 June 26, 2016 07:23
CFD Online Celebrates 20 Years Online jola Site News & Announcements 22 January 31, 2015 00:30


All times are GMT -4. The time now is 19:49.