1 if (runTime.outputTime())
3 volScalarField epsilonEq
13 sqrt((2.0/3.0)*magSqr(dev(epsilon)))
15 Info<< "Max epsilonEq = " << max(epsilonEq).value() << endl;
17 volScalarField epsilonPEq
27 sqrt((2.0/3.0)*magSqr(dev(epsilonP)))
29 Info<< "Max epsilonPEq = " << max(epsilonPEq).value()<< endl;
31 volScalarField sigmaEq
41 sqrt((3.0/2.0)*magSqr(dev(sigma)))
44 Info<< "Max sigmaEq = " << max(sigmaEq).value() << endl;
46 // Deformation gradient
47 volTensorField F = I + gradU;
48 volScalarField J = det(F);
50 // Calculate Cauchy stress
51 volSymmTensorField sigmaCauchy
61 (1/J)*symm(F.T() & sigma & F)
64 // Cauchy von Mises stress
65 volScalarField sigmaCauchyEq
75 sqrt((3.0/2.0)*magSqr(dev(sigmaCauchy)))
78 Info<< "Max sigmaCauchyEq = " << max(sigmaCauchyEq).value() << endl;
80 // volTensorField Finv = inv(F);
81 // volSymmTensorField epsilonAlmansi
86 // runTime.timeName(),
89 // IOobject::AUTO_WRITE
91 // symm(Finv & epsilon & Finv.T())