30 lines
606 B
C
30 lines
606 B
C
|
Info<< "Reading field U\n" << endl;
|
||
|
volVectorField U
|
||
|
(
|
||
|
IOobject
|
||
|
(
|
||
|
"U",
|
||
|
runTime.timeName(),
|
||
|
mesh,
|
||
|
IOobject::MUST_READ,
|
||
|
IOobject::AUTO_WRITE
|
||
|
),
|
||
|
mesh
|
||
|
);
|
||
|
|
||
|
volSymmTensorField sigma
|
||
|
(
|
||
|
IOobject
|
||
|
(
|
||
|
"sigma",
|
||
|
runTime.timeName(),
|
||
|
mesh,
|
||
|
IOobject::READ_IF_PRESENT,
|
||
|
IOobject::AUTO_WRITE
|
||
|
),
|
||
|
mesh,
|
||
|
dimensionedSymmTensor("zero", dimForce/dimArea, symmTensor::zero)
|
||
|
);
|
||
|
|
||
|
rheologyModel rheology(sigma);
|