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