2012-09-11 15:42:55 +00:00
|
|
|
Info<< "Reading field DU\n" << endl;
|
|
|
|
volVectorField DU
|
|
|
|
(
|
|
|
|
IOobject
|
|
|
|
(
|
|
|
|
"DU",
|
|
|
|
runTime.timeName(),
|
|
|
|
mesh,
|
|
|
|
IOobject::MUST_READ,
|
|
|
|
IOobject::AUTO_WRITE
|
|
|
|
),
|
|
|
|
mesh
|
|
|
|
);
|
|
|
|
|
2013-10-11 13:31:14 +00:00
|
|
|
//volTensorField gradDU = fvc::grad(DU);
|
|
|
|
volTensorField gradDU
|
|
|
|
(
|
|
|
|
IOobject
|
|
|
|
(
|
|
|
|
"grad(DU)",
|
|
|
|
runTime.timeName(),
|
|
|
|
mesh,
|
|
|
|
IOobject::NO_READ,
|
|
|
|
IOobject::NO_WRITE
|
|
|
|
),
|
|
|
|
mesh,
|
|
|
|
dimensionedTensor("zero", dimless, tensor::zero)
|
|
|
|
);
|
|
|
|
surfaceVectorField snGradDU
|
|
|
|
(
|
|
|
|
IOobject
|
|
|
|
(
|
|
|
|
"snGrad(DU)",
|
|
|
|
runTime.timeName(),
|
|
|
|
mesh,
|
|
|
|
IOobject::NO_READ,
|
|
|
|
IOobject::NO_WRITE
|
|
|
|
),
|
2015-05-17 14:25:35 +00:00
|
|
|
mesh,
|
|
|
|
dimensionedVector("zero", dimless, vector::zero)
|
2013-10-11 13:31:14 +00:00
|
|
|
);
|
2012-09-11 15:42:55 +00:00
|
|
|
|
2013-10-11 13:31:14 +00:00
|
|
|
Info<< "Creating 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,
|
2013-07-18 01:43:15 +00:00
|
|
|
dimensionedVector("zero", dimLength, vector::zero)
|
2012-09-11 15:42:55 +00:00
|
|
|
);
|
|
|
|
|
|
|
|
volSymmTensorField DEpsilon
|
|
|
|
(
|
|
|
|
IOobject
|
|
|
|
(
|
2015-05-17 14:25:35 +00:00
|
|
|
"DEpsilon",
|
|
|
|
runTime.timeName(),
|
|
|
|
mesh,
|
|
|
|
IOobject::READ_IF_PRESENT,
|
|
|
|
IOobject::AUTO_WRITE
|
|
|
|
),
|
2012-09-11 15:42:55 +00:00
|
|
|
mesh,
|
|
|
|
dimensionedSymmTensor("zero", dimless, symmTensor::zero)
|
2015-05-17 14:25:35 +00:00
|
|
|
);
|
2012-09-11 15:42:55 +00:00
|
|
|
|
2013-10-11 13:31:14 +00:00
|
|
|
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
|
|
|
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
|
|
|
);
|
|
|
|
|
|
|
|
volSymmTensorField sigma
|
|
|
|
(
|
|
|
|
IOobject
|
|
|
|
(
|
|
|
|
"sigma",
|
|
|
|
runTime.timeName(),
|
|
|
|
mesh,
|
|
|
|
IOobject::READ_IF_PRESENT,
|
|
|
|
IOobject::AUTO_WRITE
|
|
|
|
),
|
|
|
|
mesh,
|
|
|
|
dimensionedSymmTensor("zero", dimForce/dimArea, symmTensor::zero)
|
|
|
|
);
|
|
|
|
|
2015-05-17 14:25:35 +00:00
|
|
|
volVectorField divDSigmaExp
|
|
|
|
(
|
2013-10-11 13:31:14 +00:00
|
|
|
IOobject
|
|
|
|
(
|
2015-05-17 14:25:35 +00:00
|
|
|
"divDSigmaExp",
|
|
|
|
runTime.timeName(),
|
|
|
|
mesh,
|
|
|
|
IOobject::NO_READ,
|
|
|
|
IOobject::NO_WRITE
|
|
|
|
),
|
2013-10-11 13:31:14 +00:00
|
|
|
mesh,
|
|
|
|
dimensionedVector("zero", dimForce/dimVolume, vector::zero)
|
2015-05-17 14:25:35 +00:00
|
|
|
);
|
2013-10-11 13:31:14 +00:00
|
|
|
|
2015-05-17 14:25:35 +00:00
|
|
|
constitutiveModel rheology(sigma, DU);
|
2013-10-11 13:31:14 +00:00
|
|
|
//solidInterface interface(mesh, rheology);
|
2015-05-17 14:25:35 +00:00
|
|
|
//solidInterface* interfacePtr = new solidInterface(mesh, rheology);
|
2013-10-11 13:31:14 +00:00
|
|
|
|
|
|
|
surfaceVectorField traction
|
2013-07-18 01:43:15 +00:00
|
|
|
(
|
2012-09-11 15:42:55 +00:00
|
|
|
IOobject
|
|
|
|
(
|
2013-10-11 13:31:14 +00:00
|
|
|
"traction",
|
2013-07-18 01:43:15 +00:00
|
|
|
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", dimForce/dimArea, vector::zero)
|
2013-07-18 01:43:15 +00:00
|
|
|
);
|
2012-09-11 15:42:55 +00:00
|
|
|
|
2015-05-17 14:25:35 +00:00
|
|
|
// for aitken relaxation
|
|
|
|
volVectorField aitkenDelta
|
2013-07-18 01:43:15 +00:00
|
|
|
(
|
2012-09-11 15:42:55 +00:00
|
|
|
IOobject
|
|
|
|
(
|
2013-10-11 13:31:14 +00:00
|
|
|
"aitkenDelta",
|
2013-07-18 01:43:15 +00:00
|
|
|
runTime.timeName(),
|
|
|
|
mesh,
|
|
|
|
IOobject::NO_READ,
|
|
|
|
IOobject::NO_WRITE
|
|
|
|
),
|
2012-09-11 15:42:55 +00:00
|
|
|
mesh,
|
2015-05-17 14:25:35 +00:00
|
|
|
dimensionedVector("zero", dimLength, vector::zero)
|
2013-07-18 01:43:15 +00:00
|
|
|
);
|
2015-05-17 14:25:35 +00:00
|
|
|
|
|
|
|
// aitken relaxation factor
|
|
|
|
scalar aitkenInitialRes = 1.0;
|
|
|
|
scalar aitkenTheta = 0.1;
|