CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   FLUENT (https://www.cfd-online.com/Forums/fluent/)
-   -   solve fatal error in ansys fluent (https://www.cfd-online.com/Forums/fluent/199565-solve-fatal-error-ansys-fluent.html)

mohit68 March 9, 2018 00:08

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?

LuckyTran March 9, 2018 18:35

Did you forget to setup the UDM x2 for the velocity and pressure profiles?

mohit68 March 14, 2018 14:05

Quote:

Originally Posted by LuckyTran (Post 684582)
Did you forget to setup the UDM x2 for the velocity and pressure profiles?

What's that??


All times are GMT -4. The time now is 09:46.