diff --git a/src/TurbulenceModels/compressible/turbulentFluidThermoModels/derivedFvPatchFields/turbulentTemperatureRadCoupledMixed/turbulentTemperatureRadCoupledMixedFvPatchScalarField.C b/src/TurbulenceModels/compressible/turbulentFluidThermoModels/derivedFvPatchFields/turbulentTemperatureRadCoupledMixed/turbulentTemperatureRadCoupledMixedFvPatchScalarField.C index 17d142660e..62e80ef1d9 100644 --- a/src/TurbulenceModels/compressible/turbulentFluidThermoModels/derivedFvPatchFields/turbulentTemperatureRadCoupledMixed/turbulentTemperatureRadCoupledMixedFvPatchScalarField.C +++ b/src/TurbulenceModels/compressible/turbulentFluidThermoModels/derivedFvPatchFields/turbulentTemperatureRadCoupledMixed/turbulentTemperatureRadCoupledMixedFvPatchScalarField.C @@ -731,11 +731,18 @@ void turbulentTemperatureRadCoupledMixedFvPatchScalarField::write ) const { mixedFvPatchScalarField::write(os); - os.writeEntry("Tnbr", TnbrName_); - os.writeEntry("qrNbr", qrNbrName_); - os.writeEntry("qr", qrName_); - os.writeEntry("thermalInertia", thermalInertia_); + //os.writeEntry("Tnbr", TnbrName_); + os.writeEntryIfDifferent("Tnbr", "T", TnbrName_); + + //os.writeEntry("qrNbr", qrNbrName_); + os.writeEntryIfDifferent("qrNbr", "none", qrNbrName_); + //os.writeEntry("qr", qrName_); + os.writeEntryIfDifferent("qr", "none", qrName_); + if (thermalInertia_) + { + os.writeEntry("thermalInertia", thermalInertia_); + } if (thicknessLayer_) { diff --git a/src/finiteVolume/fields/fvPatchFields/derived/mappedField/mappedPatchFieldBase.C b/src/finiteVolume/fields/fvPatchFields/derived/mappedField/mappedPatchFieldBase.C index 2f05fcd713..c891352101 100644 --- a/src/finiteVolume/fields/fvPatchFields/derived/mappedField/mappedPatchFieldBase.C +++ b/src/finiteVolume/fields/fvPatchFields/derived/mappedField/mappedPatchFieldBase.C @@ -6,7 +6,7 @@ \\/ M anipulation | ------------------------------------------------------------------------------- Copyright (C) 2013-2016 OpenFOAM Foundation - Copyright (C) 2018-2021 OpenCFD Ltd. + Copyright (C) 2018-2022 OpenCFD Ltd. ------------------------------------------------------------------------------- License This file is part of OpenFOAM. @@ -1006,7 +1006,13 @@ void Foam::mappedPatchFieldBase::initRetrieveField template void Foam::mappedPatchFieldBase::write(Ostream& os) const { - os.writeEntry("field", fieldName_); + //os.writeEntry("field", fieldName_); + os.writeEntryIfDifferent + ( + "field", + patchField_.internalField().name(), + fieldName_ + ); if (setAverage_) {