CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   CFX (https://www.cfd-online.com/Forums/cfx/)
-   -   Area calculation of each color for a contour (https://www.cfd-online.com/Forums/cfx/250945-area-calculation-each-color-contour.html)

Mohsen_mtl July 18, 2023 14:29

Area calculation of each color for a contour
 
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!

karachun July 18, 2023 15:13

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.

Mohsen_mtl July 18, 2023 19:44

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,

ghorrocks July 18, 2023 21:15

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.

Mohsen_mtl July 19, 2023 11:17

Dear ghorrocks and karachun,
Thank you for your help. Now I know how to calculate it.

Thanks again,


All times are GMT -4. The time now is 23:20.