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

Unable to obtain the actual velocity profile of a sinusoidal udf

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   March 4, 2017, 04:49
Default Unable to obtain the actual velocity profile of a sinusoidal udf
  #1
New Member
 
Gary
Join Date: Jan 2017
Posts: 6
Rep Power: 9
Gourabc is on a distinguished road
Hi,
I am working on a project on analyzing haemodynamic properties in bifurcating aneurysmic aortas and have prepared an udf for the inlet velocity:

#include "udf.h"//file that contains definitions for define functions and fluent operations
#define PI 3.141592654

DEFINE_PROFILE(inlet_velocity,th,i)
{
face_t f;
real t = CURRENT_TIME;
begin_f_loop(f,th)

{
F_PROFILE(f,th,i) = ((-0.086)*(sin(((2*PI/3)*t) + 0.609))) + 0.0075;

}
end_f_loop(f,th);
}
I had interpreted and activated the function in the function fluent setup. The solution ran pretty well converging at each time step, but when I plotted the inlet velocity in a transient plot in CFD post(in results, not in solution), the part of the sine curve that should be in the negative y- direction was inverted along the positive y direction, i.e the absolute value of the sinusoidal funtion was displayed. Can anyone suggest a way to get the actual profile?
Gourabc is offline   Reply With Quote

Reply


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
3D rectangular velocity profile UDF Chalke06 Fluent UDF and Scheme Programming 3 August 6, 2016 13:37
UDF of Inlet Velocity Profile help nabster Fluent UDF and Scheme Programming 0 September 7, 2014 04:01
unable to get parabolic velocity profile with pimplefoam houkensjtu OpenFOAM 4 October 8, 2012 04:41
obtain non-uniform velocity profile Atit Koonsrisuk CFX 6 July 9, 2007 06:04
UDF velocity profile problem Steve FLUENT 0 January 18, 2005 12:11


All times are GMT -4. The time now is 06:23.