CFD Online Logo CFD Online URL
Home > Forums > OpenFOAM

modifying cubeRootVolDelta.C

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

LinkBack Thread Tools Display Modes
Old   December 6, 2010, 11:54
Default modifying cubeRootVolDelta.C
Join Date: Oct 2010
Location: Stuttgart
Posts: 35
Rep Power: 9
grandgo is on a distinguished road

i would like to modify the equation of the filter width: "cubeRootVolDelta" to create a new but similar filter.

the equation of the cubeRootVolDelta (schumann's filter it is called in literature i think) is : delta = (delta_x1*delta_x2*delta_x3)^(1/3)

what i need is a filter with the equation: delta = [ (delta_x1^2 + delta_x2^2 + delta_x3^2) / 3 ]^(1/2)
it is called the bardina filter (bardina et al, 1980).

i looked into "cubeRootVolDelta.C" and found this (sorry, i'm new in openfoam AND c++ ...):
delta_.internalField() = deltaCoeff_*pow(mesh().V(), 1.0/3.0);

it should not be that difficult to modify, once i know what mesh().V() means.
but apart from this: what else do i have to vary when my new equation is set? what about the .dep and .H files?

i could use some help here.....

thanks a lot in advance

best regards
grandgo is offline   Reply With Quote


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
Modifying the laplacian operator mlawson OpenFOAM Running, Solving & CFD 18 May 21, 2017 08:15
Programmig own limiter function, modifying r function in limitedLinear.H idrama OpenFOAM 2 October 14, 2010 04:20
Compilation problem after modifying a solver. PetSul OpenFOAM Running, Solving & CFD 2 October 1, 2009 17:28
Modifying a mesh starting from case file Ale FLUENT 2 September 16, 2008 12:10
Modifying an arc in GAMBIT? Jake FLUENT 0 April 1, 2008 16:23

All times are GMT -4. The time now is 17:39.