OpenFOAM: API Guide
v2112
The open source CFD toolbox
logSummary.H
Go to the documentation of this file.
1
{
2
const
scalar meanP =
p
.weightedAverage(
mesh
.V()).value();
3
const
scalar
meanT
=
thermo
.T().weightedAverage(
mesh
.V()).value();
4
const
scalar
meanUp
=
5
(sqrt((2.0/3.0)*
turbulence
->k()))().weightedAverage(
mesh
.V()).value();
6
const
scalar
meanB
=
b
.weightedAverage(
mesh
.V()).value();
7
8
Info<<
"Mean pressure:"
<< meanP << nl
9
<<
"Mean temperature:"
<<
meanT
<< nl
10
<<
"Mean u':"
<<
meanUp
<< endl;
11
12
if
(Pstream::master())
13
{
14
logSummaryFile
()
15
<<
runTime
.theta() << tab
16
<< meanP << tab
17
<<
meanT
<< tab
18
<<
meanUp
<< tab
19
<< 1 -
meanB
20
<< endl;
21
}
22
}
thermo
Basic thermodynamics type based on the use of fitting functions for cp, h, s obtained from the templa...
meanB
const scalar meanB
Definition:
logSummary.H:6
meanUp
const scalar meanUp
Definition:
logSummary.H:4
p
volScalarField & p
Definition:
createFieldRefs.H:8
meanT
const scalar meanT
Definition:
logSummary.H:3
logSummaryFile
Info<< "Total cylinder mass: "<< fvc::domainIntegrate(rho).value()<< endl;autoPtr< OFstream > logSummaryFile
Definition:
startSummary.H:3
mesh
dynamicFvMesh & mesh
Definition:
createDynamicFvMesh.H:6
runTime
engineTime & runTime
Definition:
createEngineTime.H:13
turbulence
compressible::turbulenceModel & turbulence
Definition:
setRegionFluidFields.H:30
b
volScalarField & b
Definition:
createFields.H:27
applications
solvers
combustion
XiFoam
XiEngineFoam
logSummary.H
Generated by
1.9.5
OPENFOAM® is a registered
trademark
of OpenCFD Ltd.