db7fac3f24
git-svn-id: https://openfoam-extend.svn.sourceforge.net/svnroot/openfoam-extend/trunk/Core/OpenFOAM-1.5-dev@1731 e4e07f05-0c2f-0410-a05a-b8ba57e0c909
58 lines
2.1 KiB
C
58 lines
2.1 KiB
C
scalarField UMeanXvalues = channelIndexing.collapse
|
|
(
|
|
UMean.component(vector::X)()
|
|
);
|
|
|
|
scalarField UMeanYvalues = channelIndexing.collapse
|
|
(
|
|
UMean.component(vector::Y)()
|
|
);
|
|
|
|
scalarField UMeanZvalues = channelIndexing.collapse
|
|
(
|
|
UMean.component(vector::Z)()
|
|
);
|
|
|
|
scalarField RxxValues = channelIndexing.collapse(Rxx);
|
|
scalarField RyyValues = channelIndexing.collapse(Ryy);
|
|
scalarField RzzValues = channelIndexing.collapse(Rzz);
|
|
scalarField RxyValues = channelIndexing.collapse(Rxy, true);
|
|
|
|
scalarField pPrime2MeanValues = channelIndexing.collapse(pPrime2Mean);
|
|
|
|
/*
|
|
scalarField epsilonValues = channelIndexing.collapse(epsilonMean);
|
|
|
|
scalarField nuMeanValues = channelIndexing.collapse(nuMean);
|
|
scalarField nuPrimeValues = channelIndexing.collapse(nuPrime);
|
|
|
|
scalarField gammaDotMeanValues = channelIndexing.collapse(gammaDotMean);
|
|
scalarField gammaDotPrimeValues = channelIndexing.collapse(gammaDotPrime);
|
|
*/
|
|
|
|
scalarField urmsValues = sqrt(mag(RxxValues));
|
|
scalarField vrmsValues = sqrt(mag(RyyValues));
|
|
scalarField wrmsValues = sqrt(mag(RzzValues));
|
|
|
|
scalarField kValues =
|
|
0.5*(sqr(urmsValues) + sqr(vrmsValues) + sqr(wrmsValues));
|
|
|
|
|
|
const scalarField& y = channelIndexing.y();
|
|
|
|
makeGraph(y, UMeanXvalues, "Uf", UMean.path(), gFormat);
|
|
makeGraph(y, urmsValues, "u", UMean.path(), gFormat);
|
|
makeGraph(y, vrmsValues, "v", UMean.path(), gFormat);
|
|
makeGraph(y, wrmsValues, "w", UMean.path(), gFormat);
|
|
makeGraph(y, RxyValues, "uv", UMean.path(), gFormat);
|
|
makeGraph(y, kValues, "k", UMean.path(), gFormat);
|
|
|
|
makeGraph(y, pPrime2MeanValues, "pPrime2Mean", UMean.path(), gFormat);
|
|
|
|
/*
|
|
makeGraph(y, epsilonValues, "epsilon", UMean.path(), gFormat);
|
|
makeGraph(y, nuMeanValues, "nu", UMean.path(), gFormat);
|
|
makeGraph(y, nuPrimeValues, "nuPrime", UMean.path(), gFormat);
|
|
makeGraph(y, gammaDotMeanValues, "gammaDot", UMean.path(), gFormat);
|
|
makeGraph(y, gammaDotPrimeValues, "gammaDotPrime", UMean.path(), gFormat);
|
|
*/
|