|
[Sponsors] |
![]() |
![]() |
#1 |
New Member
mohit dhoriya
Join Date: Mar 2018
Posts: 9
Rep Power: 7 ![]() |
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? |
|
![]() |
![]() |
![]() |
![]() |
#2 |
Senior Member
Lucky
Join Date: Apr 2011
Location: Orlando, FL USA
Posts: 5,238
Rep Power: 63 ![]() ![]() ![]() |
Did you forget to setup the UDM x2 for the velocity and pressure profiles?
|
|
![]() |
![]() |
![]() |
![]() |
#3 |
New Member
mohit dhoriya
Join Date: Mar 2018
Posts: 9
Rep Power: 7 ![]() |
||
![]() |
![]() |
![]() |
Tags |
fluent - udf, segmentaion fault, transient 3d, udf code |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
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 02:48 |
Connecting three fluid zones in Ansys Fluent 12 | tobiasz | FLUENT | 0 | April 29, 2016 11:43 |
Can you help me with a problem in ansys static structural solver? | sourabh.porwal | Structural Mechanics | 0 | March 27, 2016 17:07 |
Problem in using parallel process in fluent 14 | Tleja | FLUENT | 3 | September 13, 2013 10:54 |
Results are different for Ansys Fluent 14.0 and Fluent 6.3 | syavash | Fluent UDF and Scheme Programming | 1 | February 17, 2013 01:09 |