Forward compatibility: flex
[foam-extend-3.2.git] / applications / solvers / solidMechanics / viscoElasticSolidFoam / writeFields.H
blob8e6e69403ef382d39bea972f55ffc9a521d94705
1     if (runTime.outputTime())
2     {
3         volScalarField sigmaCauchyEq
4         (
5             IOobject
6             (
7                 "sigmaCauchyEq",
8                 runTime.timeName(),
9                 mesh,
10                 IOobject::NO_READ,
11                 IOobject::AUTO_WRITE
12             ),
13             sqrt((3.0/2.0)*magSqr(dev(sigma)))
14         );
16         Info<< "Max sigmaCauchyEq = " << max(sigmaCauchyEq).value()
17             << endl;
19 //         volScalarField sigmaCauchyxx
20 //         (
21 //             IOobject
22 //             (
23 //                 "sigmaCauchyxx",
24 //                 runTime.timeName(),
25 //                 mesh,
26 //                 IOobject::NO_READ,
27 //                 IOobject::AUTO_WRITE
28 //             ),
29 //             sigma.component(symmTensor::XX)
30 //         );
32 //         Info<< "Max sigmaCauchyxx = " << max(sigmaCauchyxx).value()
33 //             << endl;
35 //         volScalarField sigmaCauchyyy
36 //         (
37 //             IOobject
38 //             (
39 //                 "sigmaCauchyyy",
40 //                 runTime.timeName(),
41 //                 mesh,
42 //                 IOobject::NO_READ,
43 //                 IOobject::AUTO_WRITE
44 //             ),
45 //             sigma.component(symmTensor::YY)
46 //         );
48 //         Info<< "Max sigmaCauchyyy = " << max(sigmaCauchyyy).value()
49 //             << endl;
51 //         volScalarField sigmaCauchyzz
52 //         (
53 //             IOobject
54 //             (
55 //                 "sigmaCauchyzz",
56 //                 runTime.timeName(),
57 //                 mesh,
58 //                 IOobject::NO_READ,
59 //                 IOobject::AUTO_WRITE
60 //             ),
61 //             sigma.component(symmTensor::ZZ)
62 //         );
64 //         Info<< "Max sigmaCauchyzz = " << max(sigmaCauchyzz).value()
65 //             << endl;
67 //         volScalarField sigmaCauchyxy
68 //         (
69 //             IOobject
70 //             (
71 //                 "sigmaCauchyxy",
72 //                 runTime.timeName(),
73 //                 mesh,
74 //                 IOobject::NO_READ,
75 //                 IOobject::AUTO_WRITE
76 //             ),
77 //             sigma.component(symmTensor::XY)
78 //         );
80 //         volScalarField sigmaCauchyxz
81 //         (
82 //             IOobject
83 //             (
84 //                 "sigmaCauchyxz",
85 //                 runTime.timeName(),
86 //                 mesh,
87 //                 IOobject::NO_READ,
88 //                 IOobject::AUTO_WRITE
89 //             ),
90 //             sigma.component(symmTensor::XZ)
91 //         );
93 //         volScalarField sigmaCauchyyz
94 //         (
95 //             IOobject
96 //             (
97 //                 "sigmaCauchyyz",
98 //                 runTime.timeName(),
99 //                 mesh,
100 //                 IOobject::NO_READ,
101 //                 IOobject::AUTO_WRITE
102 //             ),
103 //             sigma.component(symmTensor::YZ)
104 //         );
106         runTime.write();
107     }