CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > ANSYS > FLUENT

solve fatal error in ansys fluent

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   March 9, 2018, 01:08
Exclamation solve fatal error in ansys fluent
  #1
New Member
 
mohit dhoriya
Join Date: Mar 2018
Posts: 9
Rep Power: 8
mohit68 is on a distinguished road
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?
mohit68 is offline   Reply With Quote

Old   March 9, 2018, 19:35
Default
  #2
Senior Member
 
Lucky
Join Date: Apr 2011
Location: Orlando, FL USA
Posts: 5,754
Rep Power: 66
LuckyTran has a spectacular aura aboutLuckyTran has a spectacular aura aboutLuckyTran has a spectacular aura about
Did you forget to setup the UDM x2 for the velocity and pressure profiles?
LuckyTran is offline   Reply With Quote

Old   March 14, 2018, 15:05
Default
  #3
New Member
 
mohit dhoriya
Join Date: Mar 2018
Posts: 9
Rep Power: 8
mohit68 is on a distinguished road
Quote:
Originally Posted by LuckyTran View Post
Did you forget to setup the UDM x2 for the velocity and pressure profiles?
What's that??
mohit68 is offline   Reply With Quote

Reply

Tags
fluent - udf, segmentaion fault, transient 3d, udf code


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are On


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


All times are GMT -4. The time now is 21:59.