2012-09-11 15:42:55 +00:00
|
|
|
Info<< "Reading incremental displacement field DU\n" << endl;
|
|
|
|
volVectorField DU
|
|
|
|
(
|
|
|
|
IOobject
|
|
|
|
(
|
|
|
|
"DU",
|
|
|
|
runTime.timeName(),
|
|
|
|
mesh,
|
|
|
|
IOobject::MUST_READ,
|
|
|
|
IOobject::AUTO_WRITE
|
|
|
|
),
|
|
|
|
mesh
|
|
|
|
);
|
|
|
|
|
|
|
|
volTensorField gradDU = fvc::grad(DU);
|
|
|
|
|
|
|
|
Info<< "Reading accumulated displacement field U\n" << endl;
|
|
|
|
volVectorField U
|
|
|
|
(
|
|
|
|
IOobject
|
|
|
|
(
|
|
|
|
"U",
|
|
|
|
runTime.timeName(),
|
|
|
|
mesh,
|
|
|
|
IOobject::READ_IF_PRESENT,
|
|
|
|
IOobject::AUTO_WRITE
|
|
|
|
),
|
|
|
|
mesh,
|
|
|
|
dimensionedVector("zero", dimLength, vector::zero)
|
|
|
|
);
|
|
|
|
|
|
|
|
Info << "Reading accumulated strain field epsilon\n" << endl;
|
|
|
|
volSymmTensorField epsilon
|
|
|
|
(
|
|
|
|
IOobject
|
|
|
|
(
|
|
|
|
"epsilon",
|
|
|
|
runTime.timeName(),
|
|
|
|
mesh,
|
|
|
|
IOobject::READ_IF_PRESENT,
|
|
|
|
IOobject::AUTO_WRITE
|
|
|
|
),
|
|
|
|
mesh,
|
|
|
|
dimensionedSymmTensor("zero", dimless, symmTensor::zero)
|
|
|
|
);
|
|
|
|
|
|
|
|
volSymmTensorField DEpsilon
|
|
|
|
(
|
|
|
|
IOobject
|
|
|
|
(
|
|
|
|
"DEpsilon",
|
|
|
|
runTime.timeName(),
|
|
|
|
mesh,
|
|
|
|
IOobject::READ_IF_PRESENT,
|
|
|
|
IOobject::AUTO_WRITE
|
|
|
|
),
|
|
|
|
mesh,
|
|
|
|
dimensionedSymmTensor("zero", dimless, symmTensor::zero)
|
|
|
|
);
|
|
|
|
|
|
|
|
Info << "Reading accumulated stress field sigma\n" << endl;
|
|
|
|
volSymmTensorField sigma
|
|
|
|
(
|
|
|
|
IOobject
|
|
|
|
(
|
|
|
|
"sigma",
|
|
|
|
runTime.timeName(),
|
|
|
|
mesh,
|
|
|
|
IOobject::READ_IF_PRESENT,
|
|
|
|
IOobject::AUTO_WRITE
|
|
|
|
),
|
|
|
|
mesh,
|
|
|
|
dimensionedSymmTensor("zero", dimForce/dimArea, symmTensor::zero)
|
|
|
|
);
|
|
|
|
|
|
|
|
|
|
|
|
Info << "Reading incremental stress field DSigma\n" << endl;
|
|
|
|
volSymmTensorField DSigma
|
|
|
|
(
|
|
|
|
IOobject
|
|
|
|
(
|
|
|
|
"DSigma",
|
|
|
|
runTime.timeName(),
|
|
|
|
mesh,
|
|
|
|
IOobject::READ_IF_PRESENT,
|
|
|
|
IOobject::AUTO_WRITE
|
|
|
|
),
|
|
|
|
mesh,
|
|
|
|
dimensionedSymmTensor("zero", dimForce/dimArea, symmTensor::zero)
|
|
|
|
);
|
|
|
|
|
|
|
|
//- explicit terms in the momentum equation
|
|
|
|
volVectorField divDSigmaExp
|
2015-05-17 15:11:30 +00:00
|
|
|
(
|
2015-05-17 14:25:35 +00:00
|
|
|
IOobject
|
|
|
|
(
|
|
|
|
"divDSigmaExp",
|
|
|
|
runTime.timeName(),
|
|
|
|
mesh,
|
|
|
|
IOobject::NO_READ,
|
|
|
|
IOobject::NO_WRITE
|
|
|
|
),
|
|
|
|
mesh,
|
|
|
|
dimensionedVector("zero", dimensionSet(1, -2, -2, 0, 0, 0, 0), vector::zero)
|
|
|
|
);
|
2012-09-11 15:42:55 +00:00
|
|
|
|
2015-05-17 14:25:35 +00:00
|
|
|
volVectorField divDSigmaLargeStrainExp
|
2015-05-17 15:11:30 +00:00
|
|
|
(
|
2015-05-17 14:25:35 +00:00
|
|
|
IOobject
|
|
|
|
(
|
|
|
|
"divDSigmaLargeStrainExp",
|
|
|
|
runTime.timeName(),
|
|
|
|
mesh,
|
|
|
|
IOobject::NO_READ,
|
|
|
|
IOobject::NO_WRITE
|
|
|
|
),
|
|
|
|
mesh,
|
|
|
|
dimensionedVector("zero", dimensionSet(1, -2, -2, 0, 0, 0, 0), vector::zero)
|
|
|
|
);
|
2012-09-11 15:42:55 +00:00
|
|
|
|
2013-10-11 13:31:14 +00:00
|
|
|
constitutiveModel rheology(sigma, DU);
|
|
|
|
|
|
|
|
volScalarField rho = rheology.rho();
|
2012-09-11 15:42:55 +00:00
|
|
|
volScalarField mu = rheology.mu();
|
|
|
|
volScalarField lambda = rheology.lambda();
|
|
|
|
surfaceScalarField muf = fvc::interpolate(rheology.mu());
|
|
|
|
surfaceScalarField lambdaf = fvc::interpolate(rheology.lambda());
|
|
|
|
|
|
|
|
surfaceVectorField n = mesh.Sf()/mesh.magSf();
|