solve fatal error in ansys fluent
given below is the udf im using
#include "udf.h" #define PI 3.141592654 DEFINE_PROFILE(inlet_velocity,th,i) { face_t f; begin_f_loop(f,th) double t = (CURRENT_TIME*2-floor(CURRENT_TIME*2))/2; { if(t <= 0.218) F_PROFILE(f,th,i) = 0.5*sin(4*PI*(t+0.0160236)); else F_PROFILE(f,th,i) = 0.3; } end_f_loop(f,th); } DEFINE_PROFILE(pressure_profile,t,io) { face_t f; F_PROFILE(f,t,io) = 400 - (24467*F_FLUX(f,t)); } im getting segmentation error while solving it. can anyone tell me whats wrong with it? |
Did you forget to setup the UDM x2 for the velocity and pressure profiles?
|
Quote:
|
All times are GMT -4. The time now is 09:46. |