CFD Online Logo CFD Online URL
Home > Forums > OpenFOAM Programming & Development

Term for total Stresses

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

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

in the k-epsilon turbulence model the total stress term is calculated as volSymmTensorField
tmp<volSymmTensorField> kEps::devRhoReff() const
    return tmp<volSymmTensorField>
        new volSymmTensorField
and the source term for the momentum equation as fvVectorMatrix
tmp<fvVectorMatrix> kEps::divDevRhoReff(volVectorField& U) const
      - 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:
fvVectorMatrix divDevRhoReff = fvc::div(devRhoReff);
However the following error occurs:
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.t 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
momentum source term zwdi FLUENT 14 June 27, 2017 15:40
Problem of SOURCE term gradient in UDS wind Fluent UDF and Scheme Programming 5 June 21, 2013 05:39
Large source term in species equation MACFD FLUENT 4 January 4, 2011 15: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 08:11.