mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
STYLE: bcs: do not write default values
This commit is contained in:
@ -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_)
|
||||
{
|
||||
|
||||
@ -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_)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user