FreeFOAM The Cross-Platform CFD Toolkit
Hosted by SourceForge:
Get FreeFOAM at SourceForge.net.
            Fast, secure and Free Open Source software downloads

calculateStress.H

Go to the documentation of this file.
00001     if (runTime.outputTime())
00002     {
00003         volSymmTensorField sigma
00004         (
00005             IOobject
00006             (
00007                 "sigma",
00008                 runTime.timeName(),
00009                 mesh,
00010                 IOobject::NO_READ,
00011                 IOobject::AUTO_WRITE
00012             ),
00013             rho*sigmaD
00014         );
00015 
00016         volScalarField sigmaEq
00017         (
00018             IOobject
00019             (
00020                 "sigmaEq",
00021                 runTime.timeName(),
00022                 mesh,
00023                 IOobject::NO_READ,
00024                 IOobject::AUTO_WRITE
00025             ),
00026             sqrt((3.0/2.0)*magSqr(dev(sigma)))
00027         );
00028 
00029         Info<< "Max sigmaEq = " << max(sigmaEq).value()
00030             << endl;
00031 
00032         runTime.write();
00033     }
00034 
00035 // ************************ vim: set sw=4 sts=4 et: ************************ //
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines