FreeFOAM The Cross-Platform CFD Toolkit
collapse.H
Go to the documentation of this file.
1  scalarField UMeanXvalues = channelIndexing.collapse
2  (
3  UMean.component(vector::X)()
4  );
5 
6  scalarField UMeanYvalues = channelIndexing.collapse
7  (
8  UMean.component(vector::Y)()
9  );
10 
11  scalarField UMeanZvalues = channelIndexing.collapse
12  (
13  UMean.component(vector::Z)()
14  );
15 
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);
20 
21  scalarField pPrime2MeanValues = channelIndexing.collapse(pPrime2Mean);
22 
23  /*
24  scalarField epsilonValues = channelIndexing.collapse(epsilonMean);
25 
26  scalarField nuMeanValues = channelIndexing.collapse(nuMean);
27  scalarField nuPrimeValues = channelIndexing.collapse(nuPrime);
28 
29  scalarField gammaDotMeanValues = channelIndexing.collapse(gammaDotMean);
30  scalarField gammaDotPrimeValues = channelIndexing.collapse(gammaDotPrime);
31  */
32 
33  scalarField urmsValues = sqrt(mag(RxxValues));
34  scalarField vrmsValues = sqrt(mag(RyyValues));
35  scalarField wrmsValues = sqrt(mag(RzzValues));
36 
38  0.5*(sqr(urmsValues) + sqr(vrmsValues) + sqr(wrmsValues));
39 
40 
41  const scalarField& y = channelIndexing.y();
42 
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);
49 
50  makeGraph(y, pPrime2MeanValues, "pPrime2Mean", UMean.path(), gFormat);
51 
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  */
59 
60 // ************************ vim: set sw=4 sts=4 et: ************************ //