1 //--------------------------------------------------//
3 //--------------------------------------------------//
5 Info << "Rotating fields" << endl;
7 volTensorField F = I + gradDU;
15 volTensorField Finv = inv(F);
17 volScalarField J = det(F);
18 if(min(J.internalField()) < 0)
20 FatalErrorIn(args.executable())
21 << "Negative Jacobian -> cell negative volumes!!!"
27 n = mesh.Sf()/mesh.magSf();
29 //epsilon = symm(Finv & epsilon & Finv.T());
30 epsilon = transform(Finv, epsilon);
32 //sigma = 1/J * symm(F.T() & sigma & F);
33 sigma = (1/J)*transform(F.T(), sigma);