STYLE: bcs: do not write default values

This commit is contained in:
mattijs
2022-04-14 09:17:03 +01:00
parent 2336e4a4e6
commit ab02e851cc
2 changed files with 19 additions and 6 deletions

View File

@ -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<word>("Tnbr", "T", TnbrName_);
//os.writeEntry("qrNbr", qrNbrName_);
os.writeEntryIfDifferent<word>("qrNbr", "none", qrNbrName_);
//os.writeEntry("qr", qrName_);
os.writeEntryIfDifferent<word>("qr", "none", qrName_);
if (thermalInertia_)
{
os.writeEntry("thermalInertia", thermalInertia_);
}
if (thicknessLayer_)
{

View File

@ -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<Type>::initRetrieveField
template<class Type>
void Foam::mappedPatchFieldBase<Type>::write(Ostream& os) const
{
os.writeEntry("field", fieldName_);
//os.writeEntry("field", fieldName_);
os.writeEntryIfDifferent<word>
(
"field",
patchField_.internalField().name(),
fieldName_
);
if (setAverage_)
{