BUG: UListIO: byteSize overflowing on really big faceLists
[OpenFOAM-2.0.x.git] / applications / utilities / postProcessing / miscellaneous / postChannel / collapse.H
blob885ebb4805b6241ac0970eff16805748677ffeeb
1     fileName path(UMean.rootPath()/UMean.caseName()/"graphs"/UMean.instance());
2     mkDir(path);
4     scalarField UMeanXvalues
5     (
6         channelIndexing.collapse(UMean.component(vector::X)())
7     );
9     scalarField UMeanYvalues
10     (
11         channelIndexing.collapse(UMean.component(vector::Y)())
12     );
14     scalarField UMeanZvalues
15     (
16         channelIndexing.collapse(UMean.component(vector::Z)())
17     );
19     scalarField RxxValues(channelIndexing.collapse(Rxx));
20     scalarField RyyValues(channelIndexing.collapse(Ryy));
21     scalarField RzzValues(channelIndexing.collapse(Rzz));
22     scalarField RxyValues(channelIndexing.collapse(Rxy, true));
24     scalarField pPrime2MeanValues(channelIndexing.collapse(pPrime2Mean));
26     /*
27     scalarField epsilonValues(channelIndexing.collapse(epsilonMean));
29     scalarField nuMeanValues(channelIndexing.collapse(nuMean));
30     scalarField nuPrimeValues(channelIndexing.collapse(nuPrime));
32     scalarField gammaDotMeanValues(channelIndexing.collapse(gammaDotMean));
33     scalarField gammaDotPrimeValues(channelIndexing.collapse(gammaDotPrime));
34     */
36     scalarField urmsValues(sqrt(mag(RxxValues)));
37     scalarField vrmsValues(sqrt(mag(RyyValues)));
38     scalarField wrmsValues(sqrt(mag(RzzValues)));
40     scalarField kValues
41     (
42         0.5*(sqr(urmsValues) + sqr(vrmsValues) + sqr(wrmsValues))
43     );
46     const scalarField& y = channelIndexing.y();
48     makeGraph(y, UMeanXvalues, "Uf", path, gFormat);
49     makeGraph(y, urmsValues, "u", path, gFormat);
50     makeGraph(y, vrmsValues, "v", path, gFormat);
51     makeGraph(y, wrmsValues, "w", path, gFormat);
52     makeGraph(y, RxyValues, "uv", path, gFormat);
53     makeGraph(y, kValues, "k", path, gFormat);
55     makeGraph(y, pPrime2MeanValues, "pPrime2Mean", path, gFormat);
57     /*
58     makeGraph(y, epsilonValues, "epsilon", path, gFormat);
59     makeGraph(y, nuMeanValues, "nu", path, gFormat);
60     makeGraph(y, nuPrimeValues, "nuPrime", path, gFormat);
61     makeGraph(y, gammaDotMeanValues, "gammaDot", path, gFormat);
62     makeGraph(y, gammaDotPrimeValues, "gammaDotPrime", path, gFormat);
63     */