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

Writing out LES coefficients

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   May 19, 2011, 11:52
Default Writing out LES coefficients
  #1
Senior Member
 
Tarak
Join Date: Aug 2010
Location: State College, PA
Posts: 111
Rep Power: 15
Tarak is on a distinguished road
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
Tarak is offline   Reply With Quote

Old   May 20, 2011, 03:32
Default
  #2
Member
 
Gregor Olenik
Join Date: Jun 2009
Location: http://greole.github.io/
Posts: 89
Rep Power: 16
gregor is on a distinguished road
you could use something like this:

if (runTime.outputTime()){
ck.write();
}

gregor
gregor is offline   Reply With Quote

Old   June 17, 2011, 05:19
Default
  #3
Member
 
Dejan Morar
Join Date: Nov 2010
Posts: 78
Rep Power: 16
morard is on a distinguished road
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
morard 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


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


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