2013-10-11 13:31:14 +00:00
|
|
|
Info<< "Reading incremental displacement field DU\n" << endl;
|
2012-09-11 15:42:55 +00:00
|
|
|
volVectorField DU
|
|
|
|
(
|
|
|
|
IOobject
|
|
|
|
(
|
|
|
|
"DU",
|
|
|
|
runTime.timeName(),
|
|
|
|
mesh,
|
|
|
|
IOobject::MUST_READ,
|
|
|
|
IOobject::AUTO_WRITE
|
|
|
|
),
|
|
|
|
mesh
|
|
|
|
);
|
|
|
|
|
|
|
|
volTensorField gradDU = fvc::grad(DU);
|
|
|
|
|
2013-10-11 13:31:14 +00:00
|
|
|
Info<< "Reading accumulated displacement field U\n" << endl;
|
2012-09-11 15:42:55 +00:00
|
|
|
volVectorField U
|
|
|
|
(
|
|
|
|
IOobject
|
|
|
|
(
|
|
|
|
"U",
|
|
|
|
runTime.timeName(),
|
|
|
|
mesh,
|
|
|
|
IOobject::READ_IF_PRESENT,
|
|
|
|
IOobject::AUTO_WRITE
|
|
|
|
),
|
|
|
|
mesh,
|
|
|
|
dimensionedVector("zero", dimLength, vector::zero)
|
|
|
|
);
|
|
|
|
|
2013-10-11 13:31:14 +00:00
|
|
|
Info << "Reading accumulated strain field epsilon\n" << endl;
|
|
|
|
volSymmTensorField epsilon
|
2012-09-11 15:42:55 +00:00
|
|
|
(
|
|
|
|
IOobject
|
|
|
|
(
|
2013-10-11 13:31:14 +00:00
|
|
|
"epsilon",
|
2012-09-11 15:42:55 +00:00
|
|
|
runTime.timeName(),
|
|
|
|
mesh,
|
|
|
|
IOobject::READ_IF_PRESENT,
|
|
|
|
IOobject::AUTO_WRITE
|
|
|
|
),
|
|
|
|
mesh,
|
2013-10-11 13:31:14 +00:00
|
|
|
dimensionedSymmTensor("zero", dimless, symmTensor::zero)
|
2012-09-11 15:42:55 +00:00
|
|
|
);
|
|
|
|
|
2013-10-11 13:31:14 +00:00
|
|
|
// total plastic strain
|
|
|
|
volSymmTensorField epsilonP
|
2012-09-11 15:42:55 +00:00
|
|
|
(
|
|
|
|
IOobject
|
|
|
|
(
|
2013-10-11 13:31:14 +00:00
|
|
|
"epsilonP",
|
2012-09-11 15:42:55 +00:00
|
|
|
runTime.timeName(),
|
|
|
|
mesh,
|
|
|
|
IOobject::READ_IF_PRESENT,
|
|
|
|
IOobject::AUTO_WRITE
|
|
|
|
),
|
|
|
|
mesh,
|
2013-10-11 13:31:14 +00:00
|
|
|
dimensionedSymmTensor("zero", dimless, symmTensor::zero)
|
2013-07-18 01:43:15 +00:00
|
|
|
);
|
2012-09-11 15:42:55 +00:00
|
|
|
|
2013-10-11 13:31:14 +00:00
|
|
|
volSymmTensorField DEpsilon
|
2012-09-11 15:42:55 +00:00
|
|
|
(
|
|
|
|
IOobject
|
|
|
|
(
|
2013-10-11 13:31:14 +00:00
|
|
|
"DEpsilon",
|
2012-09-11 15:42:55 +00:00
|
|
|
runTime.timeName(),
|
|
|
|
mesh,
|
|
|
|
IOobject::READ_IF_PRESENT,
|
|
|
|
IOobject::AUTO_WRITE
|
|
|
|
),
|
|
|
|
mesh,
|
|
|
|
dimensionedSymmTensor("zero", dimless, symmTensor::zero)
|
|
|
|
);
|
|
|
|
|
2013-10-11 13:31:14 +00:00
|
|
|
Info << "Reading accumulated stress field sigma\n" << endl;
|
|
|
|
volSymmTensorField sigma
|
2012-09-11 15:42:55 +00:00
|
|
|
(
|
|
|
|
IOobject
|
|
|
|
(
|
2013-10-11 13:31:14 +00:00
|
|
|
"sigma",
|
2012-09-11 15:42:55 +00:00
|
|
|
runTime.timeName(),
|
|
|
|
mesh,
|
|
|
|
IOobject::READ_IF_PRESENT,
|
|
|
|
IOobject::AUTO_WRITE
|
|
|
|
),
|
|
|
|
mesh,
|
2013-10-11 13:31:14 +00:00
|
|
|
dimensionedSymmTensor("zero", dimForce/dimArea, symmTensor::zero)
|
2012-09-11 15:42:55 +00:00
|
|
|
);
|
|
|
|
|
2013-10-11 13:31:14 +00:00
|
|
|
|
|
|
|
Info << "Reading incremental stress field DSigma\n" << endl;
|
|
|
|
volSymmTensorField DSigma
|
2012-09-11 15:42:55 +00:00
|
|
|
(
|
|
|
|
IOobject
|
|
|
|
(
|
2013-10-11 13:31:14 +00:00
|
|
|
"DSigma",
|
2012-09-11 15:42:55 +00:00
|
|
|
runTime.timeName(),
|
|
|
|
mesh,
|
|
|
|
IOobject::READ_IF_PRESENT,
|
|
|
|
IOobject::AUTO_WRITE
|
|
|
|
),
|
|
|
|
mesh,
|
2013-10-11 13:31:14 +00:00
|
|
|
dimensionedSymmTensor("zero", dimForce/dimArea, symmTensor::zero)
|
2012-09-11 15:42:55 +00:00
|
|
|
);
|
|
|
|
|
2013-10-11 13:31:14 +00:00
|
|
|
//- explicit terms in the momentum equation
|
|
|
|
volVectorField divDSigmaExp
|
2015-05-17 15:11:30 +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)
|
|
|
|
);
|
2013-10-11 13:31:14 +00:00
|
|
|
|
|
|
|
volVectorField divDSigmaNonLinExp
|
|
|
|
(
|
2012-09-11 15:42:55 +00:00
|
|
|
IOobject
|
|
|
|
(
|
2015-05-17 15:11:30 +00:00
|
|
|
"divDSigmaNonLinExp",
|
|
|
|
runTime.timeName(),
|
|
|
|
mesh,
|
|
|
|
IOobject::NO_READ,
|
|
|
|
IOobject::NO_WRITE
|
|
|
|
),
|
2012-09-11 15:42:55 +00:00
|
|
|
mesh,
|
2013-10-11 13:31:14 +00:00
|
|
|
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);
|
2012-09-11 15:42:55 +00:00
|
|
|
|
2013-10-11 13:31:14 +00:00
|
|
|
volScalarField rho = rheology.rho();
|
|
|
|
|
|
|
|
volScalarField mu = rheology.mu();
|
|
|
|
volScalarField lambda = rheology.lambda();
|
|
|
|
surfaceScalarField muf = fvc::interpolate(rheology.mu());
|
|
|
|
surfaceScalarField lambdaf = fvc::interpolate(rheology.lambda());
|
2012-09-11 15:42:55 +00:00
|
|
|
|
|
|
|
surfaceVectorField n = mesh.Sf()/mesh.magSf();
|
|
|
|
|
2013-10-11 13:31:14 +00:00
|
|
|
// plastic strain increment
|
|
|
|
const volSymmTensorField& DEpsilonP = rheology.DEpsilonP();
|
|
|
|
|
|
|
|
// for aitken relaxation
|
|
|
|
volVectorField aitkenDelta
|
|
|
|
(
|
2012-09-11 15:42:55 +00:00
|
|
|
IOobject
|
|
|
|
(
|
2015-05-17 15:11:30 +00:00
|
|
|
"aitkenDelta",
|
|
|
|
runTime.timeName(),
|
|
|
|
mesh,
|
|
|
|
IOobject::NO_READ,
|
|
|
|
IOobject::NO_WRITE
|
|
|
|
),
|
2013-10-11 13:31:14 +00:00
|
|
|
mesh,
|
|
|
|
dimensionedVector("zero", dimLength, vector::zero)
|
2015-05-17 15:11:30 +00:00
|
|
|
);
|
2013-10-11 13:31:14 +00:00
|
|
|
// aitken relaxation factor
|
|
|
|
scalar aitkenInitialRes = 1.0;
|
|
|
|
scalar aitkenTheta = 0.1;
|
|
|
|
|
2013-10-14 08:26:40 +00:00
|
|
|
// volVectorField resid
|
|
|
|
// (
|
|
|
|
// IOobject
|
|
|
|
// (
|
2015-05-17 15:11:30 +00:00
|
|
|
// "resid",
|
|
|
|
// runTime.timeName(),
|
|
|
|
// mesh,
|
|
|
|
// IOobject::NO_READ,
|
|
|
|
// IOobject::AUTO_WRITE
|
|
|
|
// ),
|
2013-10-14 08:26:40 +00:00
|
|
|
// mesh,
|
|
|
|
// dimensionedVector("zero", dimless, vector::zero)
|
|
|
|
// );
|