CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > OpenFOAM Programming & Development

Modifing Turbulence Production Term

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

Reply
 
LinkBack Thread Tools Display Modes
Old   July 31, 2012, 14:45
Post Modifing Turbulence Production Term
  #1
New Member
 
Join Date: Feb 2012
Posts: 6
Rep Power: 5
twray is on a distinguished road
I wish to add something along the lines of f1()*P() to the production term of the Spalart Allmaras turbulence model. Where P() is defined as follows with relations based on the Boussinesq approximation:



I thought I could accomplish this using R() as defined in SpallartAllmaras.C along with


Code:
const volScalarField P = fvm::Sp(fvc::grad(U_),R());

but this has not worked.

Am I using Sp correctly? Or does my error come from a tensor/scalar field mismatch?

SpalartAllmaras::R() is shown below for your reference.

Any insight is appreciated.

Code:
 tmp<volSymmTensorField> SpalartAllmaras::R() const
{
    return tmp<volSymmTensorField>
    (
        new volSymmTensorField
        (
            IOobject
            (
                "R",
                runTime_.timeName(),
                mesh_,
                IOobject::NO_READ,
                IOobject::NO_WRITE
            ),
            ((2.0/3.0)*I)*k() - nut()*twoSymm(fvc::grad(U_))
        )
    );
}

twray 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
momentum source term zwdi FLUENT 13 December 5, 2013 18:58
Turbulence postprocessing Mohsin FLUENT 0 September 19, 2011 21:05
ATTENTION! Reliability problems in CFX 5.7 Joseph CFX 14 April 20, 2010 15:45
bouyancy term in epsilon equation Michael Main CFD Forum 1 June 25, 1999 10:20
Turbulence in Turbomachinery Erich F. Main CFD Forum 15 June 22, 1999 23:37


All times are GMT -4. The time now is 20:31.