initial commit for version 1.6.x patch release
[OpenFOAM-1.6.x.git] / applications / utilities / postProcessing / miscellaneous / postChannel / collapse.H
blobb3bf5594110835698535275ed2f58b647a7e238d
1     scalarField UMeanXvalues = channelIndexing.collapse
2     (
3         UMean.component(vector::X)()
4     );
6     scalarField UMeanYvalues = channelIndexing.collapse
7     (
8         UMean.component(vector::Y)()
9     );
11     scalarField UMeanZvalues = channelIndexing.collapse
12     (
13         UMean.component(vector::Z)()
14     );
16     scalarField RxxValues = channelIndexing.collapse(Rxx);
17     scalarField RyyValues = channelIndexing.collapse(Ryy);
18     scalarField RzzValues = channelIndexing.collapse(Rzz);
19     scalarField RxyValues = channelIndexing.collapse(Rxy, true);
21     scalarField pPrime2MeanValues = channelIndexing.collapse(pPrime2Mean);
23     /*
24     scalarField epsilonValues = channelIndexing.collapse(epsilonMean);
26     scalarField nuMeanValues = channelIndexing.collapse(nuMean);
27     scalarField nuPrimeValues = channelIndexing.collapse(nuPrime);
29     scalarField gammaDotMeanValues = channelIndexing.collapse(gammaDotMean);
30     scalarField gammaDotPrimeValues = channelIndexing.collapse(gammaDotPrime);
31     */
33     scalarField urmsValues = sqrt(mag(RxxValues));
34     scalarField vrmsValues = sqrt(mag(RyyValues));
35     scalarField wrmsValues = sqrt(mag(RzzValues));
37     scalarField kValues =
38         0.5*(sqr(urmsValues) + sqr(vrmsValues) + sqr(wrmsValues));
41     const scalarField& y = channelIndexing.y();
43     makeGraph(y, UMeanXvalues, "Uf", UMean.path(), gFormat);
44     makeGraph(y, urmsValues, "u", UMean.path(), gFormat);
45     makeGraph(y, vrmsValues, "v", UMean.path(), gFormat);
46     makeGraph(y, wrmsValues, "w", UMean.path(), gFormat);
47     makeGraph(y, RxyValues, "uv", UMean.path(), gFormat);
48     makeGraph(y, kValues, "k", UMean.path(), gFormat);
50     makeGraph(y, pPrime2MeanValues, "pPrime2Mean", UMean.path(), gFormat);
52     /*
53     makeGraph(y, epsilonValues, "epsilon", UMean.path(), gFormat);
54     makeGraph(y, nuMeanValues, "nu", UMean.path(), gFormat);
55     makeGraph(y, nuPrimeValues, "nuPrime", UMean.path(), gFormat);
56     makeGraph(y, gammaDotMeanValues, "gammaDot", UMean.path(), gFormat);
57     makeGraph(y, gammaDotPrimeValues, "gammaDotPrime", UMean.path(), gFormat);
58     */