Info<< "Reading field U\n" << endl;
volVectorField U
(
IOobject
"U",
runTime.timeName(),
mesh,
IOobject::MUST_READ,
IOobject::AUTO_WRITE
),
mesh
);
volTensorField gradU = fvc::grad(U);
volSymmTensorField epsilon
"epsilon",
IOobject::READ_IF_PRESENT,
dimensionedSymmTensor("zero", dimless, symmTensor::zero)
volSymmTensorField sigma
"sigma",
dimensionedSymmTensor("zero", dimForce/dimArea, symmTensor::zero)
volVectorField divSigmaExp
"divSigmaExp",
IOobject::NO_READ,
IOobject::NO_WRITE
dimensionedVector("zero", dimensionSet(1,-2,-2,0,0,0,0), vector::zero)
rheologyModel rheology(sigma);
volScalarField rho = rheology.rho();
volScalarField mu = rheology.mu();
volScalarField lambda = rheology.lambda();
surfaceScalarField muf = fvc::interpolate(mu, "mu");
surfaceScalarField lambdaf = fvc::interpolate(lambda, "lambda");
surfaceVectorField n = mesh.Sf()/mesh.magSf();