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

Write existing volScalarField MijMij and invT with dynLagrangian LES

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   November 15, 2014, 08:00
Default Write existing volScalarField MijMij and invT with dynLagrangian LES
  #1
New Member
 
Join Date: Nov 2014
Posts: 9
Rep Power: 12
Selvinus is on a distinguished road
Hi there!

I'm currently developing my own LES Dynamic Smagorinsky solver applying Finite Elements. For verifying my own implementation I apply OpenFOAM and compare different values obtained from different fields.

When applying this dynamic smagorinsky method the scalar fields LijMij and MijMij are computed and used in the lagrangian averaging PDEs together with a time scale variable invT. I would like to write these fields together with the standard fields U, p, nuSgs and so on. Any help on how to do this?

I have tried adding

Code:
    MM
    (
        IOobject
        (
            "MM",
            runTime_.timeName(),
            mesh_,
            IOobject::MUST_READ,
            IOobject::AUTO_WRITE
        ),
        mesh_
    ),
    invT
    (
        IOobject
        (
            "invT",
            runTime_.timeName(),
            mesh_,
            IOobject::MUST_READ,
            IOobject::AUTO_WRITE
        ),
        mesh_
    ),
Into my dynLagrangian.C together with

Code:
    volScalarField MM;
    volScalarField invT;
into dynLagrangian.H.

When compiling these files and running pisoFoam the fields are written, however there are no values! They are zero all over the place.. Any help?

Thanks!

Selvinus
Selvinus 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



All times are GMT -4. The time now is 22:01.