CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > OpenFOAM Running, Solving & CFD

Implementation of Van Driest Damping Function

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

Reply
 
LinkBack Thread Tools Display Modes
Old   May 25, 2014, 20:46
Default Implementation of Van Driest Damping Function
  #1
Member
 
Manan
Join Date: Oct 2013
Location: Göteborg
Posts: 37
Rep Power: 3
MaLa is on a distinguished road
Hello,

I am trying to put in the Van Driest damping function for a turbulence model.

One of the statements that go in it, is:

Code:
volScalarField Re_t = sqrt(k_)*(y_/nu());
This generates an error. That is because of the usage of 'y_', which is basically the position of the cell center in the mesh.

Is there an inbuilt function to access the y position of the cell centers as a volScalarField for this pupose? Can anyone recommend an alternative strategy to implement the above?

Thanks!
MaLa is offline   Reply With Quote

Old   May 25, 2014, 21:15
Default
  #2
Member
 
Manan
Join Date: Oct 2013
Location: Göteborg
Posts: 37
Rep Power: 3
MaLa is on a distinguished road
I found some information on this post:

http://www.cfd-online.com/Forums/ope...-walldist.html

#include "wallDist.H"
...
...
volScalarField y = wallDist(mesh_).y();

This seems to do get the wall distance!

Last edited by MaLa; June 6, 2014 at 14:31.
MaLa is offline   Reply With Quote

Reply

Thread Tools
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 On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
How to define to right point for locationInMesh Mirage12 OpenFOAM Native Meshers: snappyHexMesh and Others 4 April 10, 2014 10:12
Droplet Evaporation Christian Main CFD Forum 2 February 27, 2007 07:27
viscous damping function maria Main CFD Forum 0 August 21, 2006 01:30
Implementation of wall function with SA model Bala Main CFD Forum 0 October 7, 2004 23:54
damping function for EARSM model Vincent Main CFD Forum 0 January 17, 2001 11:41


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