Removed unneeded lib dependency from mdInitialise
[foam-extend-3.2.git] / applications / solvers / solidMechanics / elasticIncrSolidFoam / writeFields.H
blob574bd09a9ff6382bf55a2a90ca72ece5710a144a
1 if (runTime.outputTime())
2   {
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        );
31     
32     Info<< "Max sigmaEq = " << max(sigmaEq).value()
33         << endl;
34     
35     runTime.write();
36   }