35 lines
680 B
C++
35 lines
680 B
C++
Info<< "Reading field U\n" << endl;
|
|
volVectorField U
|
|
(
|
|
IOobject
|
|
(
|
|
"U",
|
|
runTime.timeName(),
|
|
mesh,
|
|
IOobject::MUST_READ,
|
|
IOobject::AUTO_WRITE
|
|
),
|
|
mesh
|
|
);
|
|
|
|
|
|
volScalarField* Tptr = NULL;
|
|
|
|
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;
|