Remove trailing whitespace systematically
[foam-extend-3.2.git] / applications / solvers / solidMechanics / elasticOrthoSolidFoam / writeFields.H
blobfb047eb7af17cc260aa9c8b9fc4da4e120d86e56
1 if (runTime.outputTime())
2   {
3     //K.write();
5     volScalarField epsilonEq
6       (
7        IOobject
8        (
9         "epsilonEq",
10         runTime.timeName(),
11         mesh,
12         IOobject::NO_READ,
13         IOobject::AUTO_WRITE
14         ),
15        sqrt((2.0/3.0)*magSqr(dev(epsilon)))
16        );
18     Info<< "Max epsilonEq = " << max(epsilonEq).value()
19         << endl;
21     volScalarField sigmaEq
22       (
23        IOobject
24        (
25         "sigmaEq",
26         runTime.timeName(),
27         mesh,
28         IOobject::NO_READ,
29         IOobject::AUTO_WRITE
30         ),
31        sqrt((3.0/2.0)*magSqr(dev(sigma)))
32        );
34     Info<< "Max sigmaEq = " << max(sigmaEq).value()
35         << endl;
37     runTime.write();
38   }