db7fac3f24
git-svn-id: https://openfoam-extend.svn.sourceforge.net/svnroot/openfoam-extend/trunk/Core/OpenFOAM-1.5-dev@1731 e4e07f05-0c2f-0410-a05a-b8ba57e0c909
91 lines
2.3 KiB
C
91 lines
2.3 KiB
C
// Initialise solid field pointer lists
|
|
PtrList<volScalarField> rhos(solidRegions.size());
|
|
PtrList<volScalarField> cps(solidRegions.size());
|
|
PtrList<volScalarField> rhosCps(solidRegions.size());
|
|
PtrList<volScalarField> Ks(solidRegions.size());
|
|
PtrList<volScalarField> Ts(solidRegions.size());
|
|
|
|
// Populate solid field pointer lists
|
|
forAll(solidRegions, i)
|
|
{
|
|
Info<< "*** Reading solid mesh thermophysical properties for region "
|
|
<< solidRegions[i].name() << nl << endl;
|
|
|
|
Info<< " Adding to rhos\n" << endl;
|
|
rhos.set
|
|
(
|
|
i,
|
|
new volScalarField
|
|
(
|
|
IOobject
|
|
(
|
|
"rho",
|
|
runTime.timeName(),
|
|
solidRegions[i],
|
|
IOobject::MUST_READ,
|
|
IOobject::AUTO_WRITE
|
|
),
|
|
solidRegions[i]
|
|
)
|
|
);
|
|
|
|
Info<< " Adding to cps\n" << endl;
|
|
cps.set
|
|
(
|
|
i,
|
|
new volScalarField
|
|
(
|
|
IOobject
|
|
(
|
|
"cp",
|
|
runTime.timeName(),
|
|
solidRegions[i],
|
|
IOobject::MUST_READ,
|
|
IOobject::AUTO_WRITE
|
|
),
|
|
solidRegions[i]
|
|
)
|
|
);
|
|
|
|
rhosCps.set
|
|
(
|
|
i,
|
|
new volScalarField("rhosCps", rhos[i]*cps[i])
|
|
);
|
|
|
|
Info<< " Adding to Ks\n" << endl;
|
|
Ks.set
|
|
(
|
|
i,
|
|
new volScalarField
|
|
(
|
|
IOobject
|
|
(
|
|
"K",
|
|
runTime.timeName(),
|
|
solidRegions[i],
|
|
IOobject::MUST_READ,
|
|
IOobject::AUTO_WRITE
|
|
),
|
|
solidRegions[i]
|
|
)
|
|
);
|
|
|
|
Info<< " Adding to Ts\n" << endl;
|
|
Ts.set
|
|
(
|
|
i,
|
|
new volScalarField
|
|
(
|
|
IOobject
|
|
(
|
|
"T",
|
|
runTime.timeName(),
|
|
solidRegions[i],
|
|
IOobject::MUST_READ,
|
|
IOobject::AUTO_WRITE
|
|
),
|
|
solidRegions[i]
|
|
)
|
|
);
|
|
}
|