STYLE: use calculatedType() and zeroGradientType() methods

This commit is contained in:
Mark Olesen
2023-04-24 16:18:05 +02:00
parent 09ce87135b
commit e967305ef2
88 changed files with 165 additions and 212 deletions

View File

@ -5,7 +5,7 @@
\\ / A nd | www.openfoam.com
\\/ M anipulation |
-------------------------------------------------------------------------------
Copyright (C) 2021 OpenCFD Ltd.
Copyright (C) 2021-2023 OpenCFD Ltd.
-------------------------------------------------------------------------------
License
This file is part of OpenFOAM.
@ -28,7 +28,6 @@ License
#include "domainDecompositionDryRun.H"
#include "foamVtkInternalMeshWriter.H"
#include "volFields.H"
#include "zeroGradientFvPatchFields.H"
// * * * * * * * * * * * * * * * Member Functions * * * * * * * * * * * * * //
@ -51,8 +50,8 @@ void Foam::domainDecompositionDryRun::writeVolField
IOobject::NO_REGISTER
),
this->mesh(),
dimensionedScalar("cellDist", dimless, -1),
zeroGradientFvPatchScalarField::typeName
dimensionedScalar(word::null, dimless, -1),
fvPatchFieldBase::zeroGradientType()
);
forAll(procIds, celli)

View File

@ -5,7 +5,7 @@
\\ / A nd | www.openfoam.com
\\/ M anipulation |
-------------------------------------------------------------------------------
Copyright (C) 2021 OpenCFD Ltd.
Copyright (C) 2021-2023 OpenCFD Ltd.
-------------------------------------------------------------------------------
License
This file is part of OpenFOAM.
@ -28,7 +28,6 @@ License
#include "domainDecomposition.H"
#include "foamVtkInternalMeshWriter.H"
#include "volFields.H"
#include "zeroGradientFvPatchFields.H"
// * * * * * * * * * * * * * * * Member Functions * * * * * * * * * * * * * //
@ -52,8 +51,8 @@ void Foam::domainDecomposition::writeVolField
IOobject::NO_REGISTER
),
this->mesh(),
dimensionedScalar("cellDist", dimless, -1),
zeroGradientFvPatchScalarField::typeName
dimensionedScalar(word::null, dimless, -1),
fvPatchFieldBase::zeroGradientType()
);
forAll(procIds, celli)

View File

@ -6,7 +6,7 @@
\\/ M anipulation |
-------------------------------------------------------------------------------
Copyright (C) 2011-2016 OpenFOAM Foundation
Copyright (C) 2016-2022 OpenCFD Ltd.
Copyright (C) 2016-2023 OpenCFD Ltd.
-------------------------------------------------------------------------------
License
This file is part of OpenFOAM.
@ -69,7 +69,6 @@ Usage
#include "faceCoupleInfo.H"
#include "fvMeshAdder.H"
#include "polyTopoChange.H"
#include "zeroGradientFvPatchFields.H"
#include "topoSet.H"
#include "regionProperties.H"
#include "fvMeshTools.H"
@ -421,8 +420,8 @@ void writeDistribution
IOobject::NO_REGISTER
),
masterMesh,
dimensionedScalar("cellDist", dimless, -1),
zeroGradientFvPatchScalarField::typeName
dimensionedScalar(word::null, dimless, -1),
fvPatchFieldBase::zeroGradientType()
);
forAll(cellDecomposition, celli)

View File

@ -6,7 +6,7 @@
\\/ M anipulation |
-------------------------------------------------------------------------------
Copyright (C) 2011-2017 OpenFOAM Foundation
Copyright (C) 2015-2022 OpenCFD Ltd.
Copyright (C) 2015-2023 OpenCFD Ltd.
-------------------------------------------------------------------------------
License
This file is part of OpenFOAM.
@ -90,7 +90,6 @@ Usage
#include "globalIndex.H"
#include "loadOrCreateMesh.H"
#include "processorFvPatchField.H"
#include "zeroGradientFvPatchFields.H"
#include "topoSet.H"
#include "regionProperties.H"
@ -418,8 +417,8 @@ void writeDecomposition
IOobject::NO_REGISTER
),
mesh,
dimensionedScalar(name, dimless, -1),
zeroGradientFvPatchScalarField::typeName
dimensionedScalar(word::null, dimless, -1),
fvPatchFieldBase::zeroGradientType()
);
forAll(procCells, celli)