39 lines
796 B
C++
39 lines
796 B
C++
|
mesh.weights();
|
||
|
|
||
|
Info<< "Reading field U\n" << endl;
|
||
|
volVectorField U
|
||
|
(
|
||
|
IOobject
|
||
|
(
|
||
|
"U",
|
||
|
runTime.timeName(),
|
||
|
mesh,
|
||
|
IOobject::MUST_READ,
|
||
|
IOobject::AUTO_WRITE
|
||
|
),
|
||
|
mesh
|
||
|
);
|
||
|
|
||
|
// Create gradient field
|
||
|
volTensorField gradU = fvc::grad(U);
|
||
|
|
||
|
volSymmTensorField sigma
|
||
|
(
|
||
|
IOobject
|
||
|
(
|
||
|
"sigma",
|
||
|
runTime.timeName(),
|
||
|
mesh,
|
||
|
IOobject::READ_IF_PRESENT,
|
||
|
IOobject::AUTO_WRITE
|
||
|
),
|
||
|
mesh,
|
||
|
dimensionedSymmTensor("zero", dimForce/dimArea, symmTensor::zero)
|
||
|
);
|
||
|
|
||
|
// Create rheology model
|
||
|
rheologyModel rheology(sigma);
|
||
|
|
||
|
// Create contact problem
|
||
|
contactProblem contact(U, gradU);
|