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

velocity profile fluent

Register Blogs Members List Search Today's Posts Mark Forums Read

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   June 6, 2013, 09:37
Default velocity profile fluent
  #1
Member
 
Join Date: Sep 2010
Posts: 60
Rep Power: 16
stage81 is on a distinguished road
Hi everyone,

I want to impose a profile of velocity in the "inlet" of my geometry, so I want to create an UDF, since this is the first time I use it I ask your help

I want to impose this profile : Ux = 250*y^2,

I write this (but I don't now if I impose this profile in the all inlet or not and if this is right or not) :

Code:
#include "udf.h"
    
DEFINE_PROFILE(x_velocity,t,i)
  {
  real x[ND_ND];

real y;  

  face_t f;

begin_f_loop(f,t)  
 {
  F_CENTROID(x,f,t);
  y = x[1];
  

  F_PROFILE(f,t,i) = 250*pow(y,2);

}
  end_f_loop(f,t)
Thanks for help
stage81 is offline   Reply With Quote

Old   June 6, 2013, 11:25
Default
  #2
Senior Member
 
OJ
Join Date: Apr 2012
Location: United Kindom
Posts: 473
Rep Power: 21
oj.bulmer will become famous soon enough
Maybe post it in UDF forum?

OJ
oj.bulmer is offline   Reply With Quote

Old   June 7, 2013, 03:34
Default
  #3
Member
 
Join Date: Sep 2010
Posts: 60
Rep Power: 16
stage81 is on a distinguished road
Quote:
Originally Posted by oj.bulmer View Post
Maybe post it in UDF forum?

OJ
I'll post it in UDF forum, thanks
stage81 is offline   Reply With Quote

Old   June 8, 2013, 00:21
Default
  #4
New Member
 
sina
Join Date: Sep 2011
Posts: 28
Rep Power: 15
sina.sh is on a distinguished road
Dear Stage81
its right and should be work.

Good luck
sina.sh is offline   Reply With Quote

Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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
Fluent does not recognize my UDF for velocity profile salihovic Fluent UDF and Scheme Programming 1 September 10, 2012 06:27
Simulation with UDF for species mass fraction and velocity profile virgy Fluent UDF and Scheme Programming 8 February 7, 2012 04:30
Using Line/Rakes as a Velocity Profile in Fluent JLRC87 Main CFD Forum 0 March 16, 2010 12:21
setting a velocity profile like in Fluent gerado OpenFOAM 2 June 4, 2009 08:53
particle velocity and velocity profile HGG FLUENT 2 June 10, 2001 16:32


All times are GMT -4. The time now is 00:14.