-
-
September 27, 2017 at 11:19 amadminAnsys Employee
The Face Area Vector is FAREA(A, f, t) by UDF. Each component (A[0], A[1] and A[2]) represents the projected area on each axis. The function NVMAG(A) allows to calculate the total area of a boundary zone. Here is an example to calculate the total area of the boundary condition with the ID equal to 16 #include "udf.h" DEFINEONDEMAND(Areacalculation) { Domain *d=GetDomain(1); int ID=16; Thread *t=LookupThread(d, ID); facet f; real A[NDND]; real area = 0.; beginfloop(f,t) { FAREA(A,f,t); area += NVMAG(A); } endf_loop(f,t) Message0("Area of face with ID=%d: %f n", ID, area); }
-
September 27, 2017 at 11:19 amadminAnsys Employee
How to calculate the area of a boundary zone by UDF?
-
Viewing 1 reply thread
- The topic ‘Calculate the area of a boundary zone by UDF’ is closed to new replies.
Ansys Innovation Space
Trending discussions
- How do I get my hands on Ansys Rocky DEM
- Non-Intersected faces found for matching interface periodic-walls
- Unburnt Hydrocarbons contour in ANSYS FORTE for sector mesh
- Help: About the expression of turbulent viscosity in Realizable k-e model
- Script Error
- Mass Conservation Issue in Methane Pyrolysis Shock Tube Simulation
- Facing trouble regarding setting up boundary conditions for SOEC Modeling
- convergence issue for transonic flow
- Running ANSYS Fluent on a HPC Cluster
- Point exception in erosion calculation
Top Contributors
-
1882
-
802
-
599
-
591
-
366
Top Rated Tags
© 2025 Copyright ANSYS, Inc. All rights reserved.
Ansys does not support the usage of unauthorized Ansys software. Please visit www.ansys.com to obtain an official distribution.