CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   Fluent UDF and Scheme Programming (https://www.cfd-online.com/Forums/fluent-udf/)
-   -   Error with the calculation of boundary cell face area magnitude in axisymmetric solve (https://www.cfd-online.com/Forums/fluent-udf/233345-error-calculation-boundary-cell-face-area-magnitude-axisymmetric-solve.html)

Danny_cfd January 22, 2021 06:50

Error with the calculation of boundary cell face area magnitude in axisymmetric solve
 
1 Attachment(s)
Dear colleagues and seniors, Good Day. It is my first post about a very simple error, which i recently encountered during my udf modelling.

I am currently solving a 2D axisymmetric model with hemispherical (quater Circle) boundary at which i want to calculate the magnitude of face area by using the following Macros:

F_AREA(A,f,t);
Area=NV_MAG(A);

However, the area magnitude does not agree to the grid, which i have manually designed using fixed divisions at boundary. However, when i changed my solver setting from axisymmetric space to 2D Planer, the problem is solved and i can get the required area magnitude corresponding to my grid design. So problem is with the axisymmetric consideration.

I further dig out the UDF manual and found the following solution:
"For axisymmetric models in ANSYS FLUENT are made on a 1 radian
basis. Therefore, when you are utilizing certain data access macros (e.g., F AREA or F FLUX) for axisymmetric flows, your UDF will need to multiply the result by 2*PI (utilizing the macro M PI) to get the desired value."

You can also find in the picture from CFD post, for axisymmetric solver, there is a non uniform thickness slice considered.
I modify it as:
Area = NV_MAG(A)*2.0*M_PI;

However, following this does not make any change to my results and only solution seems to solve the problem in Planer space, which i do not want.

Please give me some handy solution to solve this problem, while using axisymmetric solver setting. I am indebted to you for reviewing my error.

Danny

Saman95 April 15, 2021 07:37

hello Danny


I Have a same problem. I couldn't calculate the area of a boundary in my axisymmetric model. when i changed the model to planar, fluent accurately calculate the area.


can I ask you to help me for this problem?

pakk April 15, 2021 10:01

Quote:

this does not make any change to my results
I don't follow this part... How does multiplying by 2Pi not change your result?

ustbdynamic May 11, 2021 03:10

Your modification for the axisymmetric problems are right. It's likely that you are using this area to calculate the mass flow through certain face. The problem may be in programming it.


Quote:

Originally Posted by Danny_cfd (Post 794126)
Dear colleagues and seniors, Good Day. It is my first post about a very simple error, which i recently encountered during my udf modelling.

I am currently solving a 2D axisymmetric model with hemispherical (quater Circle) boundary at which i want to calculate the magnitude of face area by using the following Macros:

F_AREA(A,f,t);
Area=NV_MAG(A);

However, the area magnitude does not agree to the grid, which i have manually designed using fixed divisions at boundary. However, when i changed my solver setting from axisymmetric space to 2D Planer, the problem is solved and i can get the required area magnitude corresponding to my grid design. So problem is with the axisymmetric consideration.

I further dig out the UDF manual and found the following solution:
"For axisymmetric models in ANSYS FLUENT are made on a 1 radian
basis. Therefore, when you are utilizing certain data access macros (e.g., F AREA or F FLUX) for axisymmetric flows, your UDF will need to multiply the result by 2*PI (utilizing the macro M PI) to get the desired value."

You can also find in the picture from CFD post, for axisymmetric solver, there is a non uniform thickness slice considered.
I modify it as:
Area = NV_MAG(A)*2.0*M_PI;

However, following this does not make any change to my results and only solution seems to solve the problem in Planer space, which i do not want.

Please give me some handy solution to solve this problem, while using axisymmetric solver setting. I am indebted to you for reviewing my error.

Danny



All times are GMT -4. The time now is 12:21.