ENH: cht: suppress printing of thicknessLayers. Fixes #2266

This commit is contained in:
mattijs
2021-11-10 16:52:22 +00:00
parent ba93392f69
commit 168c13c514
2 changed files with 11 additions and 5 deletions

View File

@ -381,9 +381,11 @@ void turbulentTemperatureCoupledBaffleMixedFvPatchScalarField::write
{
mixedFvPatchScalarField::write(os);
os.writeEntry("Tnbr", TnbrName_);
thicknessLayers_.writeEntry("thicknessLayers", os);
kappaLayers_.writeEntry("kappaLayers", os);
if (thicknessLayers_.size())
{
thicknessLayers_.writeEntry("thicknessLayers", os);
kappaLayers_.writeEntry("kappaLayers", os);
}
temperatureCoupledBase::write(os);
mappedPatchFieldBase<scalar>::write(os);
}

View File

@ -604,10 +604,14 @@ void turbulentTemperatureRadCoupledMixedFvPatchScalarField::write
os.writeEntry("qr", qrName_);
os.writeEntry("thermalInertia", thermalInertia_);
thicknessLayers_.writeEntry("thicknessLayers", os);
kappaLayers_.writeEntry("kappaLayers", os);
if (thicknessLayers_.size())
{
thicknessLayers_.writeEntry("thicknessLayers", os);
kappaLayers_.writeEntry("kappaLayers", os);
}
temperatureCoupledBase::write(os);
mappedPatchFieldBase<scalar>::write(os);
}