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
|
|
|
|
);
|
|
|
|
|
|
|
|
volTensorField gradDU = fvc::grad(DU);
|
|
|
|
|
|
|
|
volVectorField U
|
|
|
|
(
|
|
|
|
IOobject
|
|
|
|
(
|
|
|
|
"U",
|
|
|
|
runTime.timeName(),
|
|
|
|
mesh,
|
|
|
|
IOobject::READ_IF_PRESENT,
|
|
|
|
IOobject::AUTO_WRITE
|
|
|
|
),
|
2013-10-11 13:31:14 +00:00
|
|
|
mesh,
|
|
|
|
dimensionedVector("zero", dimLength, vector::zero)
|
2012-09-11 15:42:55 +00:00
|
|
|
);
|
|
|
|
|
2013-10-11 13:31:14 +00:00
|
|
|
volTensorField gradU
|
2012-09-11 15:42:55 +00:00
|
|
|
(
|
|
|
|
IOobject
|
|
|
|
(
|
2013-10-11 13:31:14 +00:00
|
|
|
"grad(U)",
|
2012-09-11 15:42:55 +00:00
|
|
|
runTime.timeName(),
|
|
|
|
mesh,
|
|
|
|
IOobject::READ_IF_PRESENT,
|
|
|
|
IOobject::AUTO_WRITE
|
|
|
|
),
|
2013-10-11 13:31:14 +00:00
|
|
|
mesh,
|
|
|
|
dimensionedTensor("zero", dimless, tensor::zero)
|
2012-09-11 15:42:55 +00:00
|
|
|
);
|
|
|
|
|
2013-10-11 13:31:14 +00:00
|
|
|
//- increment of Green finite strain tensor
|
|
|
|
volSymmTensorField DEpsilon
|
2012-09-11 15:42:55 +00:00
|
|
|
(
|
|
|
|
IOobject
|
|
|
|
(
|
2013-10-11 13:31:14 +00:00
|
|
|
"DEpsilonGreen",
|
2012-09-11 15:42:55 +00:00
|
|
|
runTime.timeName(),
|
|
|
|
mesh,
|
|
|
|
IOobject::READ_IF_PRESENT,
|
|
|
|
IOobject::AUTO_WRITE
|
|
|
|
),
|
2013-10-11 13:31:14 +00:00
|
|
|
mesh,
|
|
|
|
dimensionedSymmTensor("zero", dimless, symmTensor::zero)
|
2012-09-11 15:42:55 +00:00
|
|
|
);
|
|
|
|
|
2013-10-11 13:31:14 +00:00
|
|
|
//- Green strain tensor
|
|
|
|
volSymmTensorField epsilon
|
2012-09-11 15:42:55 +00:00
|
|
|
(
|
|
|
|
IOobject
|
|
|
|
(
|
2013-10-11 13:31:14 +00:00
|
|
|
"epsilonGreen",
|
2012-09-11 15:42:55 +00:00
|
|
|
runTime.timeName(),
|
|
|
|
mesh,
|
|
|
|
IOobject::READ_IF_PRESENT,
|
|
|
|
IOobject::AUTO_WRITE
|
|
|
|
),
|
2013-10-11 13:31:14 +00:00
|
|
|
mesh,
|
|
|
|
dimensionedSymmTensor("zero", dimless, symmTensor::zero)
|
2012-09-11 15:42:55 +00:00
|
|
|
);
|
|
|
|
|
2013-10-11 13:31:14 +00:00
|
|
|
|
|
|
|
//- increment of 2nd Piola-Kirchhoff stress tensor
|
|
|
|
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,
|
|
|
|
dimensionedSymmTensor("zero", dimForce/dimArea, symmTensor::zero)
|
|
|
|
);
|
|
|
|
|
2013-10-11 13:31:14 +00:00
|
|
|
//- 2nd Piola-Kirchhoff stress tensor
|
|
|
|
volSymmTensorField sigma
|
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
|
|
|
"sigma",
|
2013-07-18 01:43:15 +00:00
|
|
|
runTime.timeName(),
|
|
|
|
mesh,
|
2013-10-11 13:31:14 +00:00
|
|
|
IOobject::READ_IF_PRESENT,
|
|
|
|
IOobject::AUTO_WRITE
|
2013-07-18 01:43:15 +00:00
|
|
|
),
|
2013-10-11 13:31:14 +00:00
|
|
|
mesh,
|
|
|
|
dimensionedSymmTensor("zero", dimForce/dimArea, 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
|
|
|
constitutiveModel rheology(sigma, DU);
|
2012-09-11 15:42:55 +00:00
|
|
|
|
|
|
|
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();
|