How can i get properties using UDF
Hello I am using the Fluent V19 to analysis the propeller.
The propeller is analyzed in unsteady, and at each time step, a udf is created and used to obtain the coordinates of the various faces of the propeller surface, normal vector (x,y,z), force (x,y,z), static pressure, and area there is. But there are some problems. Does anyone know how to achieve the above using udf? can someone help me? Code:
..\..\src\udf.c(9): error C2040: 'x': 'real' domain = Get_Domain(3); where 3 is the boundary condition ID of the propeller. Code:
#include "udf.h" |
Quote:
domain is 1 for single phase flow Code:
t=Lookup_Thread(domain, 3); Code:
thread_loop_c(t, domain) |
Thank you!
thank you The code is modified and in use. But I have one question for you. I can output the cell coordinates of the WALL corresponding to ID 19. I want to know the cell's NORMAL VECTOR and FORCE X, Y, Z. FORCE = P * A is defined as It can be defined as FORCE X = P * A[0]. If defined here, the output will be 0. How should I define it? Code:
#include "udf.h" |
All times are GMT -4. The time now is 02:59. |