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

Implementation of Van Driest Damping Function

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   May 25, 2014, 21:46
Default Implementation of Van Driest Damping Function
  #1
Member
 
Manan
Join Date: Oct 2013
Location: Göteborg
Posts: 37
Rep Power: 13
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, 22:15
Default
  #2
Member
 
Manan
Join Date: Oct 2013
Location: Göteborg
Posts: 37
Rep Power: 13
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 15:31.
MaLa 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
[snappyHexMesh] How to define to right point for locationInMesh Mirage12 OpenFOAM Meshing & Mesh Conversion 7 March 13, 2016 15:07
Droplet Evaporation Christian Main CFD Forum 2 February 27, 2007 07:27
viscous damping function maria Main CFD Forum 0 August 21, 2006 02:30
Implementation of wall function with SA model Bala Main CFD Forum 0 October 8, 2004 00: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 22:52.