|
[Sponsors] |
May 19, 2011, 11:52 |
Writing out LES coefficients
|
#1 |
Senior Member
Tarak
Join Date: Aug 2010
Location: State College, PA
Posts: 111
Rep Power: 15 |
Hii,
In the LES models k is declared as : volScalarField k, and can be read/written by volScalarField k ( IOobject ( "k", runTime.timeName(), mesh, IOobject::MUST_READ, IOobject::AUTO_WRITE ), mesh ); I would like to have a look at the distribution of the constant ck which is declared as: volScalarField ck ( const volSymmTensorField&, const volScalarField& ) const; throughout the domain at different time steps. Can someone please advice me how to get this printed in files alongwith k, omega etc? If I write in a similar manner as k, i.e volScalarField ce ( IOobject ( "ce", runTime.timeName(), mesh, IOobject::MUST_READ, IOobject::AUTO_WRITE ), mesh ); it doesn't work, as there is a conflict in declaration. Thanks, Tarak |
|
May 20, 2011, 03:32 |
|
#2 |
Member
Gregor Olenik
Join Date: Jun 2009
Location: http://greole.github.io/
Posts: 89
Rep Power: 16 |
you could use something like this:
if (runTime.outputTime()){ ck.write(); } gregor |
|
June 17, 2011, 05:19 |
|
#3 |
Member
Dejan Morar
Join Date: Nov 2010
Posts: 78
Rep Power: 16 |
Hi Tarak,
Have you found out how to write coefficients? I am trying somthing like: if (runTime.outputTime()) { volScalarField ck_ ( IOobject ( "ck_", runTime.timeName(), mesh, IOobject::NO_READ, IOobject::AUTO_WRITE ), sgsModel->coeffDict().lookup("ck") ); runTime.write(); } but, of course, this doesn't work |
|
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
LES basic and simple questions. | dshawul | Main CFD Forum | 0 | October 4, 2010 10:56 |
Turbulence dampening due to magnetic field in LES and RAS | eelcovv | OpenFOAM | 0 | June 8, 2010 11:35 |
LES and combustion model | Margherita Cadorin | CFX | 0 | October 29, 2008 05:24 |
LES on two phase flow | Li Yang | Main CFD Forum | 0 | May 12, 2004 08:10 |
Some Questions about LES. | Bin Li | Main CFD Forum | 2 | February 20, 2004 09:58 |