ENH: Added helper include file to create radiation model for incompressible cases

This commit is contained in:
andy 2013-01-23 09:01:30 +00:00
parent b950958b71
commit c957484eee

View File

@ -0,0 +1,32 @@
autoPtr<radiation::radiationModel> radiation
(
radiation::radiationModel::New(T)
);
dimensionedScalar rhoCpRef
(
"rhoCpRef",
dimDensity*dimEnergy/dimMass/dimTemperature,
1.0
);
if (radiation->radiation())
{
IOdictionary transportProperties
(
IOobject
(
"transportProperties",
runTime.constant(),
runTime,
IOobject::MUST_READ,
IOobject::NO_WRITE,
false // do not register!
)
);
dimensionedScalar rhoRef(transportProperties.lookup("rhoRef"));
dimensionedScalar CpRef(transportProperties.lookup("CpRef"));
rhoCpRef = rhoRef*CpRef;
}