Fixed URL for libccmio-2.6.1 (bug report #5 by Thomas Oliveira)
[foam-extend-3.2.git] / applications / solvers / solidMechanics / elasticNonLinULSolidFoam / writeFields.H
blob37b2225a35d6cd8480920b379361ec96a3a47528
1 if (runTime.outputTime())
3     volScalarField epsilonEq
4     (
5         IOobject
6         (
7             "epsilonEq",
8             runTime.timeName(),
9             mesh,
10             IOobject::NO_READ,
11             IOobject::AUTO_WRITE
12         ),
13         sqrt((2.0/3.0)*magSqr(dev(epsilon)))
14     );
16     Info<< "Max epsilonEq = " << max(epsilonEq).value()
17     << endl;
19     volScalarField sigmaEq
20     (
21         IOobject
22         (
23             "sigmaEq",
24             runTime.timeName(),
25             mesh,
26             IOobject::NO_READ,
27             IOobject::AUTO_WRITE
28         ),
29         sqrt((3.0/2.0)*magSqr(dev(sigma)))
30    );
32    Info<< "Max sigmaEq = " << max(sigmaEq).value()
33        << endl;
35    runTime.write();