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

Post-processing of dynamic subgrid-scale model coefficient

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

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   August 20, 2021, 03:41
Default Post-processing of dynamic subgrid-scale model coefficient
  #1
New Member
 
Teresa Sun
Join Date: Jun 2021
Posts: 11
Rep Power: 3
Teresa Sun is on a distinguished road
Dear friends,

I want to plot the dynamic Smagorinsky model coefficient cD which changes over time and space. The software that I am using is OpenFoam/v2006. what I have tried is as follow:

in system/controlDict:

application pimpleFoam;

startFrom startTime;

startTime 0;

stopAt endTime;

endTime 1000;

deltaT 0.2;

writeControl timeStep;

writeInterval 200;

purgeWrite 0;

writeFormat ascii;

writePrecision 6;

writeCompression off;

timeFormat general;

timePrecision 6;

runTimeModifiable true;

functions
{
fieldAverage1
{
type fieldAverage;
libs (fieldFunctionObjects);
writeControl writeTime;

fields
(
U
{
mean on;
prime2Mean on;
base time;
}

p
{
mean on;
prime2Mean on;
base time;
}
);
}

valueAverage1
{
// Mandatory entries
type valueAverage;
libs (fieldFunctionObjects);
functionObject dynamicQRCoeffs;
fields (cD);

// Optional entries
resetOnRestart false;
window 1;

// Optional (inherited) entries
writePrecision 10;
writeToFile true;
useUserTime true;

region region0;
enabled true;
log true;
timeStart 0;
timeEnd 1000;
executeControl timeStep;
executeInterval 1;
writeControl writeTime;
writeInterval -1;
}

}
the results in directory postProcessing/valueAverage1/0/valueAveragw.dat are:
# Value averages
# Time cD
0.2 n/a
0.4 n/a
0.6 n/a
0.8 n/a
1 n/a
.
.
.
.
.
.
.

Does anyone know how to write the dynamicSmagrosky model coefficient into time directories like U and P, then plot it?

Best regards,
Teresa
Teresa Sun is offline   Reply With Quote

Reply

Tags
dynamic coefficient

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
Heat Transfer Coefficient Calculation - Post Processing y_jiang OpenFOAM Post-Processing 0 October 8, 2018 14:57
wrong SU2 calculation for lift and drag coefficient for NAC4421 mechy SU2 7 January 9, 2017 05:18
Ansys CFX problem: unexpected very high temperatures in premix laminar combustion faizan_habib7 CFX 4 February 1, 2016 17:00
NO model vs post processing in coal combustion,CFX sakalido CFX 1 April 15, 2011 14:07
Two-Phase Buoyant Flow Issue Miguel Baritto CFX 4 August 31, 2006 12:02


All times are GMT -4. The time now is 17:05.