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

velocity profile with trailing vortices

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   January 31, 2019, 02:05
Default velocity profile with trailing vortices
  #1
New Member
 
bangkok
Join Date: Jan 2019
Posts: 2
Rep Power: 0
pondchailang is on a distinguished road
hi everyone,
I'm newbie for udf coding. I had tried to simulate trailing vortices from aircraft in 3D domain by using 2 ideal vortex from lamb-oseen eq. The eq. of vortex is cylindrical coordinate form. I don't know concept how to coding velocity profile of 2 vortex. Could someone explain?




Thanks.
pondchailang is offline   Reply With Quote

Old   February 1, 2019, 23:06
Default
  #2
New Member
 
bangkok
Join Date: Jan 2019
Posts: 2
Rep Power: 0
pondchailang is on a distinguished road
This is my code that I try to generate 1 vortex. It can run but the result is incorrect.



#include "udf.h"

#define V0 0.043
#define taouzero 0.052
#define r0 0.009
#define pi 3.14159265358979323846
#define b0 0.153
#define h0 0.0765

DEFINE_INIT(vortex,d)
{
cell_t c ;
Thread *ct ;
real x[ND_ND] ;
real y ;
real z ;
real r ;
real Vzetra ;

thread_loop_c(ct,d)
{
begin_c_loop(c,ct)
{

y = x[1] ;
z = x[2] ;
r = sqrt(pow(y,2) + pow(z,2)) ;
if(sqrt(pow(x[2],2) + pow(x[1],2)) <= 0.009)
{
Vzetra = taouzero/(2*pi*r)*(1-exp(-pow(r,2)/pow(r0,2)));
C_U(c,ct) = V0 ;
C_V(c,ct) = -Vzetra*(z/r) ;
C_W(c,ct) = Vzetra*(y/r) ;
}
else
{
C_U(c,ct) = 0 ;
C_V(c,ct) = 0 ;
C_W(c,ct) = 0 ;
}
}
end_c_loop(c,ct) ;
}
}
pondchailang 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
Plot velocity profile along longitudinal axis of pipe jorgelmilan EnSight 8 July 7, 2018 14:30
Velocity profile reading in Fluent mkpm FLUENT 0 July 28, 2016 02:12
InterFoam - Validation for velocity profile in simple channel me.ouda OpenFOAM Running, Solving & CFD 0 October 19, 2015 06:42
3d velocity profile at velocity inlet swethaprakash FLUENT 3 September 1, 2015 02:10
[boundary condition] logarithmic velocity profile cfdworker FLUENT 2 April 17, 2009 23:36


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