File: collapse.H

package info (click to toggle)
openfoam 4.1%2Bdfsg1-1
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 163,028 kB
  • ctags: 58,990
  • sloc: cpp: 830,760; sh: 10,227; ansic: 8,215; xml: 745; lex: 437; awk: 194; sed: 91; makefile: 77; python: 18
file content (63 lines) | stat: -rw-r--r-- 2,096 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
    fileName path(UMean.rootPath()/UMean.caseName()/"graphs"/UMean.instance());
    mkDir(path);

    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", path, gFormat);
    makeGraph(y, urmsValues, "u", path, gFormat);
    makeGraph(y, vrmsValues, "v", path, gFormat);
    makeGraph(y, wrmsValues, "w", path, gFormat);
    makeGraph(y, RxyValues, "uv", path, gFormat);
    makeGraph(y, kValues, "k", path, gFormat);

    makeGraph(y, pPrime2MeanValues, "pPrime2Mean", path, gFormat);

    /*
    makeGraph(y, epsilonValues, "epsilon", path, gFormat);
    makeGraph(y, nuMeanValues, "nu", path, gFormat);
    makeGraph(y, nuPrimeValues, "nuPrime", path, gFormat);
    makeGraph(y, gammaDotMeanValues, "gammaDot", path, gFormat);
    makeGraph(y, gammaDotPrimeValues, "gammaDotPrime", path, gFormat);
    */