mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
changed R -> UPrime2Mean to comply with fieldAverage function object field output
This commit is contained in:
@ -34,27 +34,26 @@
|
|||||||
scalarField vrmsValues = sqrt(mag(RyyValues));
|
scalarField vrmsValues = sqrt(mag(RyyValues));
|
||||||
scalarField wrmsValues = sqrt(mag(RzzValues));
|
scalarField wrmsValues = sqrt(mag(RzzValues));
|
||||||
|
|
||||||
scalarField kValues
|
scalarField kValues =
|
||||||
= 0.5*(sqr(urmsValues) + sqr(vrmsValues) + sqr(wrmsValues));
|
0.5*(sqr(urmsValues) + sqr(vrmsValues) + sqr(wrmsValues));
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
scalarField y = channelIndexing.y(mesh.C());
|
scalarField y = channelIndexing.y(mesh.C());
|
||||||
|
|
||||||
makeGraph(y, UMeanXvalues, "Uf", R.path(), gFormat);
|
makeGraph(y, UMeanXvalues, "Uf", UMean.path(), gFormat);
|
||||||
makeGraph(y, urmsValues, "u", R.path(), gFormat);
|
makeGraph(y, urmsValues, "u", UMean.path(), gFormat);
|
||||||
makeGraph(y, vrmsValues, "v", R.path(), gFormat);
|
makeGraph(y, vrmsValues, "v", UMean.path(), gFormat);
|
||||||
makeGraph(y, wrmsValues, "w", R.path(), gFormat);
|
makeGraph(y, wrmsValues, "w", UMean.path(), gFormat);
|
||||||
makeGraph(y, RxyValues, "uv", R.path(), gFormat);
|
makeGraph(y, RxyValues, "uv", UMean.path(), gFormat);
|
||||||
makeGraph(y, kValues, "k", R.path(), gFormat);
|
makeGraph(y, kValues, "k", UMean.path(), gFormat);
|
||||||
|
|
||||||
makeGraph(y, pPrime2MeanValues, "pPrime2Mean", R.path(), gFormat);
|
makeGraph(y, pPrime2MeanValues, "pPrime2Mean", UMean.path(), gFormat);
|
||||||
|
|
||||||
makeGraph(y, epsilonValues, "epsilon", R.path(), gFormat);
|
makeGraph(y, epsilonValues, "epsilon", UMean.path(), gFormat);
|
||||||
|
|
||||||
/*
|
/*
|
||||||
makeGraph(y, nuMeanValues, "nu", R.path(), gFormat);
|
makeGraph(y, nuMeanValues, "nu", UMean.path(), gFormat);
|
||||||
makeGraph(y, nuPrimeValues, "nuPrime", R.path(), gFormat);
|
makeGraph(y, nuPrimeValues, "nuPrime", UMean.path(), gFormat);
|
||||||
makeGraph(y, gammaDotMeanValues, "gammaDot", R.path(), gFormat);
|
makeGraph(y, gammaDotMeanValues, "gammaDot", UMean.path(), gFormat);
|
||||||
makeGraph(y, gammaDotPrimeValues, "gammaDotPrime", R.path(), gFormat);
|
makeGraph(y, gammaDotPrimeValues, "gammaDotPrime", UMean.path(), gFormat);
|
||||||
*/
|
*/
|
||||||
|
|||||||
@ -8,6 +8,7 @@
|
|||||||
|
|
||||||
if (!UMeanHeader.headerOk())
|
if (!UMeanHeader.headerOk())
|
||||||
{
|
{
|
||||||
|
Info<< " No UMean field" << endl;
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -17,21 +18,21 @@
|
|||||||
mesh
|
mesh
|
||||||
);
|
);
|
||||||
|
|
||||||
volSymmTensorField R
|
volSymmTensorField UPrime2Mean
|
||||||
(
|
(
|
||||||
IOobject
|
IOobject
|
||||||
(
|
(
|
||||||
"R",
|
"UPrime2Mean",
|
||||||
runTime.times()[i].name(),
|
runTime.times()[i].name(),
|
||||||
mesh,
|
mesh,
|
||||||
IOobject::MUST_READ
|
IOobject::MUST_READ
|
||||||
),
|
),
|
||||||
mesh
|
mesh
|
||||||
);
|
);
|
||||||
volScalarField Rxx(R.component(symmTensor::XX));
|
volScalarField Rxx(UPrime2Mean.component(symmTensor::XX));
|
||||||
volScalarField Ryy(R.component(symmTensor::YY));
|
volScalarField Ryy(UPrime2Mean.component(symmTensor::YY));
|
||||||
volScalarField Rzz(R.component(symmTensor::ZZ));
|
volScalarField Rzz(UPrime2Mean.component(symmTensor::ZZ));
|
||||||
volScalarField Rxy(R.component(symmTensor::XY));
|
volScalarField Rxy(UPrime2Mean.component(symmTensor::XY));
|
||||||
|
|
||||||
volScalarField pPrime2Mean
|
volScalarField pPrime2Mean
|
||||||
(
|
(
|
||||||
|
|||||||
Reference in New Issue
Block a user