CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > ANSYS > FLUENT > Fluent UDF and Scheme Programming

Error with the calculation of boundary cell face area magnitude in axisymmetric solve

Register Blogs Members List Search Today's Posts Mark Forums Read

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   January 22, 2021, 06:50
Default Error with the calculation of boundary cell face area magnitude in axisymmetric solve
  #1
New Member
 
Join Date: Jan 2021
Posts: 14
Rep Power: 5
Danny_cfd is on a distinguished road
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
Attached Images
File Type: jpg axisymetric.JPG (36.5 KB, 9 views)

Last edited by Danny_cfd; January 22, 2021 at 07:29. Reason: Adding pic
Danny_cfd is offline   Reply With Quote

Old   April 15, 2021, 07:37
Default
  #2
Member
 
Join Date: Nov 2017
Posts: 54
Rep Power: 8
Saman95 is on a distinguished road
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?
Saman95 is offline   Reply With Quote

Old   April 15, 2021, 10:01
Default
  #3
Senior Member
 
Join Date: Nov 2013
Posts: 1,965
Rep Power: 26
pakk will become famous soon enough
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?
__________________
"The UDF library you are trying to load (libudf) is not compiled for parallel use on the current platform" is NOT the error after compiling. It is the error after loading. To see compiler errors, look at your screen after you click "build".
pakk is offline   Reply With Quote

Old   May 11, 2021, 03:10
Default
  #4
Member
 
xingangzheng
Join Date: Jul 2009
Posts: 37
Rep Power: 16
ustbdynamic is on a distinguished road
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 View Post
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
ustbdynamic is offline   Reply With Quote

Reply

Tags
face area magnitude

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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
[snappyHexMesh] Invalid Normals for source face to target face while making AMI? Sorabh OpenFOAM Meshing & Mesh Conversion 1 August 3, 2021 06:35
Wind turbine simulation Saturn CFX 58 July 3, 2020 01:13
An error has occurred in cfx5solve: volo87 CFX 5 June 14, 2013 17:44
Error finding variable "THERMX" sunilpatil CFX 8 April 26, 2013 07:00
RPM in Wind Turbine Pankaj CFX 9 November 23, 2009 04:05


All times are GMT -4. The time now is 14:06.