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

Not getting paraboloid velocity profile at inlet

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   August 29, 2019, 06:54
Default Not getting paraboloid velocity profile at inlet
  #1
New Member
 
Join Date: Apr 2019
Posts: 6
Rep Power: 7
swapnil13 is on a distinguished road
We are using udf for paraboloid velocity profile at inlet as attached . We have calculated the velocity profile using the centroid data and same formula used in udf in excel and got the desired profile in excel.
But we are not getting the profile in fluent after solving.
udf and plot from fluent is attached.

please help....
Attached Images
File Type: jpg Capture1.JPG (90.2 KB, 2 views)
Attached Files
File Type: c paraboloid1.c (684 Bytes, 5 views)
swapnil13 is offline   Reply With Quote

Old   August 29, 2019, 07:51
Default
  #2
Senior Member
 
Alexander
Join Date: Apr 2013
Posts: 2,363
Rep Power: 34
AlexanderZ will become famous soon enoughAlexanderZ will become famous soon enough
Code:
/***********************************************************************
vprofile.c
UDF for specifying steady-state velocity profile boundary condition
************************************************************************/

#include "udf.h"
#include "math.h"

DEFINE_PROFILE(inlet_x_velocity, thread, position)
{
  real x[ND_ND]; /* this will hold the position vector */
  real  R,v_max,a,y,z;
  face_t f;
  R = 0.02; /* inlet radius in m */
  v_max=0.1;

  begin_f_loop(f,thread)
  {
    F_CENTROID(x, f, thread);
	y=x[1];
	z=x[2];
    a=-v_max/pow(R,2);
    F_PROFILE(f, thread, position) = a*(z*z + y*y) + v_max;
  }
  end_f_loop(f, thread)
}
best regards
AlexanderZ is offline   Reply With Quote

Old   August 29, 2019, 08:30
Default
  #3
New Member
 
Join Date: Apr 2019
Posts: 6
Rep Power: 7
swapnil13 is on a distinguished road
thank you very much....it is now working as desired.
swapnil13 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
Inlet boundary condition with existed velocity profile wanjia SU2 9 May 10, 2017 06:33
UDF inlet velocity profile mismatch with Fluent ChristineL Fluent UDF and Scheme Programming 15 November 25, 2016 07:45
Multiphase flow - incorrect velocity on inlet Mike_Tom CFX 6 September 29, 2016 02:27
How to apply an outlet velocity profile to another inlet? siw FLUENT 4 April 10, 2013 12:19
ask for help about velocity inlet profile yuhehuan FLUENT 5 November 19, 2012 13:59


All times are GMT -4. The time now is 16:19.