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

Term for total Stresses

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

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   April 8, 2011, 14:16
Default Term for total Stresses
  #1
New Member
 
Join Date: Apr 2011
Posts: 4
Rep Power: 15
james.t is on a distinguished road
Hello,

in the k-epsilon turbulence model the total stress term is calculated as volSymmTensorField
Code:
tmp<volSymmTensorField> kEps::devRhoReff() const
{
    return tmp<volSymmTensorField>
    (
        new volSymmTensorField
        (
            IOobject
            (
                "devRhoReff",
                runTime_.timeName(),
                mesh_,
                IOobject::NO_READ,
                IOobject::AUTO_WRITE
            ),
           -muEff()*dev(twoSymm(fvc::grad(U_)))
        )
    );
}
and the source term for the momentum equation as fvVectorMatrix
Code:
tmp<fvVectorMatrix> kEps::divDevRhoReff(volVectorField& U) const
{
    return
    (
      - fvm::laplacian(muEff(), U)
      - fvc::div(muEff()*dev2(fvc::grad(U)().T()))
    );
}
Now I'd like to modify the total stress tensor devRhoReff and use it for the calculation of the source term of the momentum equation divDevRhoReff like this:
Code:
fvVectorMatrix divDevRhoReff = fvc::div(devRhoReff);
However the following error occurs:
Code:
error: conversion from ‘Foam::tmp<Foam::GeometricField<Foam::Vector<double>, Foam::fvPatchField, Foam::volMesh> >’ to non-scalar type ‘Foam::fvVectorMatrix’ requested
Is there another way to convert the total stress tensor devRhoReff to the source term divDevRhoReff?

Thanks alot!

James
james.t is offline   Reply With Quote

Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
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 Off
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Problem of SOURCE term gradient in UDS wind Fluent UDF and Scheme Programming 6 December 1, 2022 14:21
momentum source term zwdi FLUENT 14 June 27, 2017 15:40
Large source term in species equation MACFD FLUENT 4 January 4, 2011 14:16
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


All times are GMT -4. The time now is 03:41.