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

wall boundary condition help!!!

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   November 11, 2013, 11:28
Default wall boundary condition help!!!
  #1
C.C
Member
 
CC
Join Date: Jun 2011
Posts: 73
Rep Power: 15
C.C is on a distinguished road
Hi all,

I want implement a new turbulence model (CHC model) and the wall boundary condition for epsilon is: 2*kinematic viscosity*k/(wall distance)^2
in which kinematic viscosity, k and wall distance have the values corresponding to the 1st node off wall. Anyone knows how can I implement this.
I tried:

/* Wall boundary condition epsilon */
DEFINE_PROFILE(wall_epsilon,t,i)
{
cell_t c;
real xw[ND_ND];
real rw;
real EpsWall;
begin_c_loop(c,t)
{
C_CENTROID(xw,c,t);
rw=xw[1];
EpsWall=2.*C_UDSI(c,t,TKE)*0.001003/998.2/SQR(0.0381-rw);
F_PROFILE(c,t,i)=EpsWall;
}
end_c_loop(c,t)
}


The value obtained is always zero, but epsilon is different from zero.
Please, anyone can help me?
C.C is offline   Reply With Quote

Old   November 11, 2013, 12:36
Default
  #2
C.C
Member
 
CC
Join Date: Jun 2011
Posts: 73
Rep Power: 15
C.C is on a distinguished road
As at wall I imposed epsilon=C_UDSI(c,t,TKE)=0, it seems that the wall boundary consition for epsilon is correctly interpreted by fluent. My main doubt is how can I impose C_UDSI(c,t,TKE) in the expression of EpsWall equal to the value of k in the 1st node off wall?
C.C is offline   Reply With Quote

Old   November 12, 2013, 07:34
Default
  #3
C.C
Member
 
CC
Join Date: Jun 2011
Posts: 73
Rep Power: 15
C.C is on a distinguished road
Please, anyone can see if the following part makes sense? Thank you.

/* Wall boundary condition epsilon */
DEFINE_PROFILE(wall_epsilon,t,i)
{
cell_t c;
real xw[ND_ND];
real rw;
real EpsWall;
face_t f;
Thread *t0;
cell_t c0;
c0 = F_C0(f,t);
t0 = THREAD_T0(t);
begin_c_loop(c,t)
{
C_CENTROID(xw,c0,t0);
rw = 0.0381-xw[1];
EpsWall=2.*C_UDSI(c0,t0,TKE)*C_MU_L(c0,t0)/C_R(c0,t0)/SQR(rw);
F_PROFILE(c,t,i)=EpsWall;
}
end_c_loop(c,t)
}
C.C 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
Natural convection in a closed domain STILL NEEDING help! Yr0gErG FLUENT 4 December 2, 2019 01:04
Applying Rotational Boundary Condition on Surface with Radial Wall tango711 CFX 16 October 9, 2018 08:01
Domain Imbalance HMR CFX 5 October 10, 2016 06:57
isothermal wall boundary condition Neil Main CFD Forum 3 November 9, 2015 03:34
Dirichlet boundary condition for additional variable on the wall ftab CFX 13 January 27, 2013 13:24


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