1 if (runTime.outputTime())
5 volScalarField epsilonEq
15 sqrt((2.0/3.0)*magSqr(dev(epsilon)))
18 Info<< "Max epsilonEq = " << max(epsilonEq).value()
21 volScalarField sigmaEq
31 sqrt((3.0/2.0)*magSqr(dev(sigma)))
34 Info<< "Max sigmaEq = " << max(sigmaEq).value()
37 // volVectorField traction
42 // runTime.timeName(),
45 // IOobject::AUTO_WRITE
48 // dimensionedVector("zero", dimForce/dimArea, vector::zero)
50 // forAll(mesh.boundary(), patchi)
52 // traction.boundaryField()[patchi] =
53 // n.boundaryField()[patchi] & sigma.boundaryField()[patchi];
57 // forAll(mesh.boundary(), patchi)
59 // Info << "Patch " << mesh.boundary()[patchi].name() << endl;
60 // vectorField totalForce = mesh.Sf().boundaryField()[patchi] & sigma.boundaryField()[patchi];
61 // vector force = sum( totalForce );
62 // Info << "\ttotal force is " << force << " N" << endl;
63 // tensorField F = I + gradDU.boundaryField()[patchi];
64 // tensorField Finv = inv(F);
65 // scalar normalForce = sum( n.boundaryField()[patchi] & totalForce );
66 // Info << "\tnormal force is " << normalForce << " N" << endl;
67 // scalar shearForce = mag(sum( (I - sqr(n.boundaryField()[patchi])) & totalForce ));
68 // Info << "\tshear force is " << shearForce << " N" << endl;