Fixed URL for libccmio-2.6.1 (bug report #5 by Thomas Oliveira)
[foam-extend-3.2.git] / applications / solvers / solidMechanics / elasticOrthoSolidFoam / writeFields.H
blob24b39e24d826410a452b85bcbd27c053eefb1965
1 if (runTime.outputTime())
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() << endl;
20     volScalarField sigmaEq
21     (
22         IOobject
23         (
24             "sigmaEq",
25             runTime.timeName(),
26             mesh,
27             IOobject::NO_READ,
28             IOobject::AUTO_WRITE
29         ),
30         sqrt((3.0/2.0)*magSqr(dev(sigma)))
31     );
33     Info<< "Max sigmaEq = " << max(sigmaEq).value() << endl;
35     runTime.write();