35 lines
683 B
C++
35 lines
683 B
C++
Info<< "Reading field U\n" << endl;
|
|
volVectorField U
|
|
(
|
|
IOobject
|
|
(
|
|
"U",
|
|
runTime.timeName(),
|
|
mesh,
|
|
IOobject::MUST_READ,
|
|
IOobject::AUTO_WRITE
|
|
),
|
|
mesh
|
|
);
|
|
|
|
|
|
volScalarField* Tptr = nullptr;
|
|
|
|
if (thermalStress)
|
|
{
|
|
Info<< "Reading field T\n" << endl;
|
|
Tptr = new volScalarField
|
|
(
|
|
IOobject
|
|
(
|
|
"T",
|
|
runTime.timeName(),
|
|
mesh,
|
|
IOobject::MUST_READ,
|
|
IOobject::AUTO_WRITE
|
|
),
|
|
mesh
|
|
);
|
|
}
|
|
|
|
volScalarField& T = *Tptr;
|