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

Area calculation of each color for a contour

Register Blogs Community New Posts Updated Threads Search

Like Tree1Likes
  • 1 Post By ghorrocks

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   July 18, 2023, 14:29
Default Area calculation of each color for a contour
  #1
New Member
 
QC
Join Date: Mar 2019
Posts: 8
Rep Power: 7
Mohsen_mtl is on a distinguished road
Dear All,
I have a contour in Ansys CFX and I want to calculate the are related to each color. For example, I added a link to an image.
https://postimg.cc/QVCQMDTC

How can I calculate the area for each color?
Can I export the contour to other software and do it?
or I must develop a code to calculate it? But I don't know how to find the boundary of each color!
Mohsen_mtl is offline   Reply With Quote

Old   July 18, 2023, 15:13
Default
  #2
Senior Member
 
karachun's Avatar
 
Join Date: Nov 2015
Posts: 244
Rep Power: 11
karachun is on a distinguished road
I do not remember exact commands but you can create custom surface based on existing surface and result values. You can specify upper and lower values and CFD-post create surface within those bounds. Than you can measure area using expression.
Check "Locations" tab in CFD-Post.
karachun is offline   Reply With Quote

Old   July 18, 2023, 19:44
Default
  #3
New Member
 
QC
Join Date: Mar 2019
Posts: 8
Rep Power: 7
Mohsen_mtl is on a distinguished road
Dear karachun,
Thank you for your reply.
I look at all the variables in the CFX, but I can not find which one can calculate the area of each boundary in a contour. Could you please explain more? Is there any specific variable for this calculation?

Also, for the location tab, I didn't find anything related to this calculation.

Thank you for your time.

Best regards,
Mohsen_mtl is offline   Reply With Quote

Old   July 18, 2023, 21:15
Default
  #4
Super Moderator
 
Glenn Horrocks
Join Date: Mar 2009
Location: Sydney, Australia
Posts: 17,723
Rep Power: 143
ghorrocks is just really niceghorrocks is just really niceghorrocks is just really niceghorrocks is just really nice
1) Generate a contour object which has the contours at your desired levels
2) Generate a User Surface, which uses the contour object. Select the contour level you want the user surface to use
3) Use the area()@User Surface 1 CEL function to give you the area.

Done.
Opaque likes this.
__________________
Note: I do not answer CFD questions by PM. CFD questions should be posted on the forum.
ghorrocks is offline   Reply With Quote

Old   July 19, 2023, 11:17
Default
  #5
New Member
 
QC
Join Date: Mar 2019
Posts: 8
Rep Power: 7
Mohsen_mtl is on a distinguished road
Dear ghorrocks and karachun,
Thank you for your help. Now I know how to calculate it.

Thanks again,
Mohsen_mtl 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
[OpenFOAM] Surface area calculation of droplet in Paraview mhaghq ParaView 1 January 20, 2022 10:48
Cell volume and face area calculation richard_vega OpenFOAM Programming & Development 6 April 7, 2021 06:08
Cell area calculation and cell proximity to other patch ianjikar OpenFOAM Programming & Development 0 January 4, 2019 02:33
Warning 097- AB Siemens 6 November 15, 2004 04:41
area volume calculation fundamentals Ankur Kulkanri Main CFD Forum 0 September 10, 2003 12:00


All times are GMT -4. The time now is 09:17.