|
[Sponsors] |
![]() |
![]() |
#1 |
Member
Join Date: Sep 2010
Posts: 60
Rep Power: 16 ![]() |
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) |
|
![]() |
![]() |
![]() |
![]() |
#2 |
Senior Member
OJ
Join Date: Apr 2012
Location: United Kindom
Posts: 473
Rep Power: 21 ![]() |
Maybe post it in UDF forum?
OJ |
|
![]() |
![]() |
![]() |
![]() |
#3 |
Member
Join Date: Sep 2010
Posts: 60
Rep Power: 16 ![]() |
||
![]() |
![]() |
![]() |
![]() |
#4 |
New Member
sina
Join Date: Sep 2011
Posts: 28
Rep Power: 15 ![]() |
Dear Stage81
its right and should be work. Good luck |
|
![]() |
![]() |
![]() |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
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 |