|
[Sponsors] |
March 9, 2018, 01:08 |
solve fatal error in ansys fluent
|
#1 |
New Member
mohit dhoriya
Join Date: Mar 2018
Posts: 9
Rep Power: 8 |
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? |
|
March 9, 2018, 19:35 |
|
#2 |
Senior Member
Lucky
Join Date: Apr 2011
Location: Orlando, FL USA
Posts: 5,754
Rep Power: 66 |
Did you forget to setup the UDM x2 for the velocity and pressure profiles?
|
|
March 14, 2018, 15:05 |
|
#3 |
New Member
mohit dhoriya
Join Date: Mar 2018
Posts: 9
Rep Power: 8 |
||
Tags |
fluent - udf, segmentaion fault, transient 3d, udf code |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
How to solve UDF compilation problems in Fluent. | pakk | Fluent UDF and Scheme Programming | 16 | September 10, 2018 03:48 |
Connecting three fluid zones in Ansys Fluent 12 | tobiasz | FLUENT | 0 | April 29, 2016 12:43 |
Can you help me with a problem in ansys static structural solver? | sourabh.porwal | Structural Mechanics | 0 | March 27, 2016 18:07 |
Problem in using parallel process in fluent 14 | Tleja | FLUENT | 3 | September 13, 2013 11:54 |
Results are different for Ansys Fluent 14.0 and Fluent 6.3 | syavash | Fluent UDF and Scheme Programming | 1 | February 17, 2013 02:09 |