diff --git a/src/atmosphericModels/functionObjects/ObukhovLength/ObukhovLength.C b/src/atmosphericModels/functionObjects/ObukhovLength/ObukhovLength.C index 4ce789050a..399e940477 100644 --- a/src/atmosphericModels/functionObjects/ObukhovLength/ObukhovLength.C +++ b/src/atmosphericModels/functionObjects/ObukhovLength/ObukhovLength.C @@ -76,7 +76,7 @@ bool Foam::functionObjects::ObukhovLength::calcOL() ), mesh_, dimLength, - zeroGradientFvPatchField::typeName + fvPatchFieldBase::zeroGradientType() ); result1->store(); @@ -94,7 +94,7 @@ bool Foam::functionObjects::ObukhovLength::calcOL() ), mesh_, dimVelocity, - zeroGradientFvPatchField::typeName + fvPatchFieldBase::zeroGradientType() ); result2->store(); diff --git a/src/combustionModels/diffusionMulticomponent/diffusionMulticomponent.C b/src/combustionModels/diffusionMulticomponent/diffusionMulticomponent.C index f14d2ec546..fb5c155625 100644 --- a/src/combustionModels/diffusionMulticomponent/diffusionMulticomponent.C +++ b/src/combustionModels/diffusionMulticomponent/diffusionMulticomponent.C @@ -71,7 +71,7 @@ diffusionMulticomponent::init() ), this->mesh_, dimensionedScalar(dimMass/dimTime/dimVolume, Zero), - zeroGradientFvPatchScalarField::typeName + fvPatchFieldBase::zeroGradientType() ) ); @@ -209,7 +209,7 @@ diffusionMulticomponent::correct() ), this->mesh_, dimensionedScalar(dimMass/dimTime/dimVolume, Zero), - zeroGradientFvPatchScalarField::typeName + fvPatchFieldBase::zeroGradientType() ) ); @@ -410,7 +410,7 @@ diffusionMulticomponent::Qdot() const ), this->mesh(), dimensionedScalar(dimEnergy/dimTime/dimVolume, Zero), - zeroGradientFvPatchScalarField::typeName + fvPatchFieldBase::zeroGradientType() ) ); diff --git a/src/combustionModels/eddyDissipationDiffusionModel/eddyDissipationDiffusionModel.C b/src/combustionModels/eddyDissipationDiffusionModel/eddyDissipationDiffusionModel.C index 2663ade256..fa042bfce0 100644 --- a/src/combustionModels/eddyDissipationDiffusionModel/eddyDissipationDiffusionModel.C +++ b/src/combustionModels/eddyDissipationDiffusionModel/eddyDissipationDiffusionModel.C @@ -91,7 +91,7 @@ eddyDissipationDiffusionModel::rtDiff() const ), this->mesh(), dimensionedScalar(dimLength, Zero), - zeroGradientFvPatchScalarField::typeName + fvPatchFieldBase::zeroGradientType() ) ); diff --git a/src/dynamicFaMesh/interfaceTrackingFvMesh/interfaceTrackingFvMesh.C b/src/dynamicFaMesh/interfaceTrackingFvMesh/interfaceTrackingFvMesh.C index fc3e6cee87..d3c87b6f33 100644 --- a/src/dynamicFaMesh/interfaceTrackingFvMesh/interfaceTrackingFvMesh.C +++ b/src/dynamicFaMesh/interfaceTrackingFvMesh/interfaceTrackingFvMesh.C @@ -144,7 +144,7 @@ void Foam::interfaceTrackingFvMesh::makeUs() const wordList patchFieldTypes ( aMesh().boundary().size(), - zeroGradientFaPatchVectorField::typeName + faPatchFieldBase::zeroGradientType() ); forAll(aMesh().boundary(), patchI) @@ -883,7 +883,7 @@ void Foam::interfaceTrackingFvMesh::updateSurfactantConcentration() ), aMesh(), dimensionedScalar(dimMoles/dimVolume, Zero), - zeroGradientFaPatchScalarField::typeName + faPatchFieldBase::zeroGradientType() ); Cb.ref().field() = diff --git a/src/finiteArea/finiteArea/fac/facEdgeIntegrate.C b/src/finiteArea/finiteArea/fac/facEdgeIntegrate.C index 3cae46f5ee..cb32d94a36 100644 --- a/src/finiteArea/finiteArea/fac/facEdgeIntegrate.C +++ b/src/finiteArea/finiteArea/fac/facEdgeIntegrate.C @@ -62,7 +62,7 @@ edgeIntegrate ), mesh, dimensioned(ssf.dimensions()/dimArea, Zero), - zeroGradientFaPatchField::typeName + faPatchFieldBase::zeroGradientType() ) ); GeometricField& vf = tvf.ref(); @@ -134,7 +134,7 @@ edgeSum ), mesh, dimensioned(ssf.dimensions(), Zero), - zeroGradientFaPatchField::typeName + faPatchFieldBase::zeroGradientType() ) ); GeometricField& vf = tvf.ref(); diff --git a/src/finiteArea/finiteArea/gradSchemes/leastSquaresFaGrad/leastSquaresFaGrad.C b/src/finiteArea/finiteArea/gradSchemes/leastSquaresFaGrad/leastSquaresFaGrad.C index 5893faa910..ef6c9d6ce9 100644 --- a/src/finiteArea/finiteArea/gradSchemes/leastSquaresFaGrad/leastSquaresFaGrad.C +++ b/src/finiteArea/finiteArea/gradSchemes/leastSquaresFaGrad/leastSquaresFaGrad.C @@ -77,7 +77,7 @@ leastSquaresFaGrad::grad ), mesh, dimensioned(vsf.dimensions()/dimLength, Zero), - zeroGradientFaPatchField::typeName + faPatchFieldBase::zeroGradientType() ) ); GeometricField& lsGrad = tlsGrad.ref(); diff --git a/src/finiteVolume/cfdTools/general/CorrectPhi/CorrectPhi.C b/src/finiteVolume/cfdTools/general/CorrectPhi/CorrectPhi.C index bf53f6c6f6..c92d10b68c 100644 --- a/src/finiteVolume/cfdTools/general/CorrectPhi/CorrectPhi.C +++ b/src/finiteVolume/cfdTools/general/CorrectPhi/CorrectPhi.C @@ -60,7 +60,7 @@ void Foam::CorrectPhi wordList pcorrTypes ( p.boundaryField().size(), - zeroGradientFvPatchScalarField::typeName + fvPatchFieldBase::zeroGradientType() ); // Set BCs of pcorr to fixed-value for patches at which p is fixed @@ -140,7 +140,7 @@ void Foam::CorrectPhi wordList pcorrTypes ( p.boundaryField().size(), - zeroGradientFvPatchScalarField::typeName + fvPatchFieldBase::zeroGradientType() ); // Set BCs of pcorr to fixed-value for patches at which p is fixed diff --git a/src/finiteVolume/finiteVolume/fvc/fvcSmooth/fvcSmooth.C b/src/finiteVolume/finiteVolume/fvc/fvcSmooth/fvcSmooth.C index befe5e3181..3a5ed60f0f 100644 --- a/src/finiteVolume/finiteVolume/fvc/fvcSmooth/fvcSmooth.C +++ b/src/finiteVolume/finiteVolume/fvc/fvcSmooth/fvcSmooth.C @@ -345,7 +345,7 @@ void Foam::fvc::spreadSource ), mesh, dimensionedScalar(mDotOut.dimensions(), Zero), - zeroGradientFvPatchField::typeName + fvPatchFieldBase::zeroGradientType() ); // Smearing of source term field diff --git a/src/finiteVolume/fvMesh/fvMeshSubset/fvMeshSubsetProxyTemplates.C b/src/finiteVolume/fvMesh/fvMeshSubset/fvMeshSubsetProxyTemplates.C index 4d336786aa..5791434f6f 100644 --- a/src/finiteVolume/fvMesh/fvMeshSubset/fvMeshSubsetProxyTemplates.C +++ b/src/finiteVolume/fvMesh/fvMeshSubset/fvMeshSubsetProxyTemplates.C @@ -51,7 +51,7 @@ Foam::fvMeshSubsetProxy::zeroGradientField io, df.mesh(), dimensioned(df.dimensions(), Zero), - zeroGradientFvPatchField::typeName + fvPatchFieldBase::zeroGradientType() ); tfield.ref().primitiveFieldRef() = df; tfield.ref().oriented() = df.oriented(); diff --git a/src/finiteVolume/fvMesh/wallDist/patchDistMethods/patchDistMethod/patchDistMethodTemplates.C b/src/finiteVolume/fvMesh/wallDist/patchDistMethods/patchDistMethod/patchDistMethodTemplates.C index 8eea096a3b..be91746147 100644 --- a/src/finiteVolume/fvMesh/wallDist/patchDistMethods/patchDistMethod/patchDistMethodTemplates.C +++ b/src/finiteVolume/fvMesh/wallDist/patchDistMethods/patchDistMethod/patchDistMethodTemplates.C @@ -40,7 +40,7 @@ Foam::wordList Foam::patchDistMethod::patchTypes wordList yTypes ( mesh.boundary().size(), - zeroGradientFvPatchField::typeName + fvPatchFieldBase::zeroGradientType() ); for (const label patchi : patchIDs) diff --git a/src/functionObjects/field/CourantNo/CourantNo.C b/src/functionObjects/field/CourantNo/CourantNo.C index 04da791feb..55ff252fb3 100644 --- a/src/functionObjects/field/CourantNo/CourantNo.C +++ b/src/functionObjects/field/CourantNo/CourantNo.C @@ -100,7 +100,7 @@ bool Foam::functionObjects::CourantNo::calc() ), mesh_, dimensionedScalar(dimless, Zero), - zeroGradientFvPatchScalarField::typeName + fvPatchFieldBase::zeroGradientType() ); tCo.ref().ref() = Coi(); tCo.ref().correctBoundaryConditions(); diff --git a/src/functionObjects/field/age/age.C b/src/functionObjects/field/age/age.C index 4da8f127bc..7ecb04bc69 100644 --- a/src/functionObjects/field/age/age.C +++ b/src/functionObjects/field/age/age.C @@ -63,7 +63,7 @@ Foam::wordList Foam::functionObjects::age::patchTypes() const { if (isA(mesh_.boundary()[patchi])) { - result[patchi] = zeroGradientFvPatchField::typeName; + result[patchi] = fvPatchFieldBase::zeroGradientType(); } } diff --git a/src/functionObjects/field/blendingFactor/blendingFactor.C b/src/functionObjects/field/blendingFactor/blendingFactor.C index 00e1642301..81e0cc2307 100644 --- a/src/functionObjects/field/blendingFactor/blendingFactor.C +++ b/src/functionObjects/field/blendingFactor/blendingFactor.C @@ -96,7 +96,7 @@ Foam::functionObjects::blendingFactor::blendingFactor ), mesh_, dimensionedScalar(dimless, Zero), - zeroGradientFvPatchScalarField::typeName + fvPatchFieldBase::zeroGradientType() ); store(resultName_, indicatorPtr); diff --git a/src/functionObjects/field/resolutionIndex/resolutionIndexModels/resolutionIndexModel/resolutionIndexModel.C b/src/functionObjects/field/resolutionIndex/resolutionIndexModels/resolutionIndexModel/resolutionIndexModel.C index b4e4610989..44baba6b55 100644 --- a/src/functionObjects/field/resolutionIndex/resolutionIndexModels/resolutionIndexModel/resolutionIndexModel.C +++ b/src/functionObjects/field/resolutionIndex/resolutionIndexModels/resolutionIndexModel/resolutionIndexModel.C @@ -58,7 +58,7 @@ Foam::tmp Foam::resolutionIndexModel::V() const ), mesh_, dimVolume, - zeroGradientFvPatchScalarField::typeName + fvPatchFieldBase::zeroGradientType() ); tV.ref().primitiveFieldRef() = mesh_.V(); @@ -104,7 +104,7 @@ bool Foam::resolutionIndexModel::read(const dictionary& dict) ), mesh_, dimensionedScalar(dimless, Zero), - zeroGradientFvPatchScalarField::typeName + fvPatchFieldBase::zeroGradientType() ); mesh_.objectRegistry::store(indexPtr); diff --git a/src/functionObjects/field/stabilityBlendingFactor/stabilityBlendingFactor.C b/src/functionObjects/field/stabilityBlendingFactor/stabilityBlendingFactor.C index 7839740c32..871367501b 100644 --- a/src/functionObjects/field/stabilityBlendingFactor/stabilityBlendingFactor.C +++ b/src/functionObjects/field/stabilityBlendingFactor/stabilityBlendingFactor.C @@ -71,7 +71,7 @@ Foam::functionObjects::stabilityBlendingFactor::indicator() ), mesh_, dimensionedScalar(dimless, Zero), - zeroGradientFvPatchScalarField::typeName + fvPatchFieldBase::zeroGradientType() ); mesh_.objectRegistry::store(fldPtr); @@ -332,7 +332,7 @@ bool Foam::functionObjects::stabilityBlendingFactor::init(bool first) ), mesh_, dimensionedScalar(dimless, Zero), - zeroGradientFvPatchScalarField::typeName + fvPatchFieldBase::zeroGradientType() ); auto& magGradCC = tmagGradCC.ref(); @@ -351,7 +351,7 @@ bool Foam::functionObjects::stabilityBlendingFactor::init(bool first) ), mesh_, dimensionedScalar(dimLength, Zero), - zeroGradientFvPatchScalarField::typeName + fvPatchFieldBase::zeroGradientType() ); cci = mesh_.C().component(i); cci.correctBoundaryConditions(); @@ -405,7 +405,7 @@ bool Foam::functionObjects::stabilityBlendingFactor::init(bool first) ), mesh_, dimensionedScalar(dimless, Zero), - zeroGradientFvPatchScalarField::typeName + fvPatchFieldBase::zeroGradientType() ); auto& Co = CoPtr.ref(); diff --git a/src/functionObjects/field/zeroGradient/zeroGradientTemplates.C b/src/functionObjects/field/zeroGradient/zeroGradientTemplates.C index 8f87143e50..75505f24fe 100644 --- a/src/functionObjects/field/zeroGradient/zeroGradientTemplates.C +++ b/src/functionObjects/field/zeroGradient/zeroGradientTemplates.C @@ -96,7 +96,7 @@ int Foam::functionObjects::zeroGradient::apply ), mesh_, dimensioned(input.dimensions(), Zero), - zeroGradientFvPatchField::typeName + fvPatchFieldBase::zeroGradientType() ); store(outputName, tzeroGrad); diff --git a/src/functionObjects/utilities/solverInfo/solverInfo.C b/src/functionObjects/utilities/solverInfo/solverInfo.C index 60f0863aeb..51942e72eb 100644 --- a/src/functionObjects/utilities/solverInfo/solverInfo.C +++ b/src/functionObjects/utilities/solverInfo/solverInfo.C @@ -217,7 +217,7 @@ bool Foam::functionObjects::solverInfo::write() ), mesh_, dimensionedScalar(dimless, Zero), - zeroGradientFvPatchField::typeName + fvPatchFieldBase::zeroGradientType() ); residual.primitiveFieldRef() = *residualPtr; diff --git a/src/fvMotionSolver/motionDiffusivity/inverseVolume/inverseVolumeDiffusivity.C b/src/fvMotionSolver/motionDiffusivity/inverseVolume/inverseVolumeDiffusivity.C index 4fdccec098..ff0582a84e 100644 --- a/src/fvMotionSolver/motionDiffusivity/inverseVolume/inverseVolumeDiffusivity.C +++ b/src/fvMotionSolver/motionDiffusivity/inverseVolume/inverseVolumeDiffusivity.C @@ -84,7 +84,7 @@ void Foam::inverseVolumeDiffusivity::correct() ), mesh(), dimless, - zeroGradientFvPatchScalarField::typeName + fvPatchFieldBase::zeroGradientType() ); V.primitiveFieldRef() = mesh().V(); diff --git a/src/fvMotionSolver/motionDiffusivity/motionDirectional/motionDirectionalDiffusivity.C b/src/fvMotionSolver/motionDiffusivity/motionDirectional/motionDirectionalDiffusivity.C index 6f0243dbb7..ec0832c7d2 100644 --- a/src/fvMotionSolver/motionDiffusivity/motionDirectional/motionDirectionalDiffusivity.C +++ b/src/fvMotionSolver/motionDiffusivity/motionDirectional/motionDirectionalDiffusivity.C @@ -87,7 +87,8 @@ void Foam::motionDirectionalDiffusivity::correct() diffusivityVector_.y()*vector::one + (diffusivityVector_.x() - diffusivityVector_.y())*cellMotionU /(mag(cellMotionU) + dimensionedScalar("small", dimVelocity, SMALL)), - zeroGradientFvPatchVectorField::typeName + + fvPatchFieldBase::zeroGradientType() ); D.correctBoundaryConditions(); diff --git a/src/fvMotionSolver/motionInterpolation/patchCorrected/patchCorrectedInterpolationTemplates.C b/src/fvMotionSolver/motionInterpolation/patchCorrected/patchCorrectedInterpolationTemplates.C index bf8d27b957..5b79b23e7d 100644 --- a/src/fvMotionSolver/motionInterpolation/patchCorrected/patchCorrectedInterpolationTemplates.C +++ b/src/fvMotionSolver/motionInterpolation/patchCorrected/patchCorrectedInterpolationTemplates.C @@ -65,7 +65,7 @@ void Foam::patchCorrectedInterpolation::interpolateType wordList ( pointUncorrectedDisplacement.boundaryField().size(), - zeroGradientPointPatchField::typeName + pointPatchFieldBase::zeroGradientType() ) ); @@ -107,7 +107,7 @@ void Foam::patchCorrectedInterpolation::interpolateDataFromPatchGroups ), data.mesh(), dimensionedScalar(dimless, Zero), - zeroGradientPointPatchField::typeName + pointPatchFieldBase::zeroGradientType() ); data = dimensioned(data.dimensions(), Zero); @@ -124,7 +124,7 @@ void Foam::patchCorrectedInterpolation::interpolateDataFromPatchGroups ), data.mesh(), dimensionedScalar(data.dimensions(), Zero), - zeroGradientPointPatchField::typeName + pointPatchFieldBase::zeroGradientType() ); GeometricField patchData(data); diff --git a/src/fvOptions/sources/derived/acousticDampingSource/acousticDampingSource.C b/src/fvOptions/sources/derived/acousticDampingSource/acousticDampingSource.C index f00cd64079..898926ef18 100644 --- a/src/fvOptions/sources/derived/acousticDampingSource/acousticDampingSource.C +++ b/src/fvOptions/sources/derived/acousticDampingSource/acousticDampingSource.C @@ -98,8 +98,9 @@ Foam::fv::acousticDampingSource::acousticDampingSource IOobject::NO_WRITE ), mesh_, - dimensionedScalar("blend0", dimless, 1.0), - zeroGradientFvPatchField::typeName + scalar(1), + dimless, + fvPatchFieldBase::zeroGradientType() ) ), frequency_("frequency", dimless/dimTime, 0), diff --git a/src/fvOptions/sources/derived/jouleHeatingSource/jouleHeatingSource.C b/src/fvOptions/sources/derived/jouleHeatingSource/jouleHeatingSource.C index a548662098..f6f41c11a0 100644 --- a/src/fvOptions/sources/derived/jouleHeatingSource/jouleHeatingSource.C +++ b/src/fvOptions/sources/derived/jouleHeatingSource/jouleHeatingSource.C @@ -68,7 +68,7 @@ Foam::fv::jouleHeatingSource::transformSigma ), mesh_, dimensionedSymmTensor(sigmaLocal.dimensions(), Zero), - zeroGradientFvPatchField::typeName + fvPatchFieldBase::zeroGradientType() ); auto& sigma = tsigma.ref(); diff --git a/src/fvOptions/sources/derived/solidificationMeltingSource/solidificationMeltingSource.C b/src/fvOptions/sources/derived/solidificationMeltingSource/solidificationMeltingSource.C index cf55b450bc..63d6b54b97 100644 --- a/src/fvOptions/sources/derived/solidificationMeltingSource/solidificationMeltingSource.C +++ b/src/fvOptions/sources/derived/solidificationMeltingSource/solidificationMeltingSource.C @@ -192,7 +192,7 @@ Foam::fv::solidificationMeltingSource::solidificationMeltingSource ), mesh, dimensionedScalar(dimless, Zero), - zeroGradientFvPatchScalarField::typeName + fvPatchFieldBase::zeroGradientType() ), curTimeIndex_(-1), deltaT_(cells_.size(), 0) diff --git a/src/fvOptions/sources/interRegion/interRegionHeatTransfer/interRegionHeatTransferModel/interRegionHeatTransferModel.C b/src/fvOptions/sources/interRegion/interRegionHeatTransfer/interRegionHeatTransferModel/interRegionHeatTransferModel.C index ea1d6f4d17..5a729f981f 100644 --- a/src/fvOptions/sources/interRegion/interRegionHeatTransfer/interRegionHeatTransferModel/interRegionHeatTransferModel.C +++ b/src/fvOptions/sources/interRegion/interRegionHeatTransfer/interRegionHeatTransferModel/interRegionHeatTransferModel.C @@ -139,7 +139,7 @@ Foam::fv::interRegionHeatTransferModel::interRegionHeatTransferModel ), mesh, dimensionedScalar(dimEnergy/dimTime/dimTemperature/dimVolume, Zero), - zeroGradientFvPatchScalarField::typeName + fvPatchFieldBase::zeroGradientType() ), TName_(coeffs_.getOrDefault("T", "T")), TNbrName_(coeffs_.getOrDefault("TNbr", "T")) diff --git a/src/lagrangian/DSMC/clouds/Templates/DSMCCloud/DSMCCloud.C b/src/lagrangian/DSMC/clouds/Templates/DSMCCloud/DSMCCloud.C index 0be3c472cd..a02de47f9c 100644 --- a/src/lagrangian/DSMC/clouds/Templates/DSMCCloud/DSMCCloud.C +++ b/src/lagrangian/DSMC/clouds/Templates/DSMCCloud/DSMCCloud.C @@ -717,7 +717,7 @@ Foam::DSMCCloud::DSMCCloud ), mesh_, dimensionedScalar(dimensionSet(0, 3, -1, 0, 0), Zero), - zeroGradientFvPatchScalarField::typeName + fvPatchFieldBase::zeroGradientType() ), collisionSelectionRemainder_ ( diff --git a/src/lagrangian/intermediate/submodels/MPPIC/AveragingMethods/Basic/Basic.C b/src/lagrangian/intermediate/submodels/MPPIC/AveragingMethods/Basic/Basic.C index fd36a47760..1febf1f3ee 100644 --- a/src/lagrangian/intermediate/submodels/MPPIC/AveragingMethods/Basic/Basic.C +++ b/src/lagrangian/intermediate/submodels/MPPIC/AveragingMethods/Basic/Basic.C @@ -80,7 +80,7 @@ void Foam::AveragingMethods::Basic::updateGrad() ), this->mesh_, dimensioned(dimless, Zero), - zeroGradientFvPatchField::typeName + fvPatchFieldBase::zeroGradientType() ); tempData.primitiveFieldRef() = data_; tempData.correctBoundaryConditions(); diff --git a/src/lagrangian/intermediate/submodels/MPPIC/PackingModels/Implicit/Implicit.C b/src/lagrangian/intermediate/submodels/MPPIC/PackingModels/Implicit/Implicit.C index 68ea5dd75b..c811306bc4 100644 --- a/src/lagrangian/intermediate/submodels/MPPIC/PackingModels/Implicit/Implicit.C +++ b/src/lagrangian/intermediate/submodels/MPPIC/PackingModels/Implicit/Implicit.C @@ -56,7 +56,7 @@ Foam::PackingModels::Implicit::Implicit ), this->owner().mesh(), dimensionedScalar(dimless, Zero), - zeroGradientFvPatchScalarField::typeName + fvPatchFieldBase::zeroGradientType() ), phiCorrect_(nullptr), uCorrect_(nullptr), @@ -150,7 +150,7 @@ void Foam::PackingModels::Implicit::cacheFields(const bool store) ), mesh, dimensionedScalar(dimDensity, Zero), - zeroGradientFvPatchField::typeName + fvPatchFieldBase::zeroGradientType() ); rho.primitiveFieldRef() = max(rhoAverage.primitiveField(), rhoMin_); rho.correctBoundaryConditions(); @@ -171,7 +171,7 @@ void Foam::PackingModels::Implicit::cacheFields(const bool store) ), mesh, dimensionedScalar(dimPressure, Zero), - zeroGradientFvPatchField::typeName + fvPatchFieldBase::zeroGradientType() ); tauPrime.primitiveFieldRef() = @@ -256,7 +256,7 @@ void Foam::PackingModels::Implicit::cacheFields(const bool store) ), mesh, dimensionedVector(dimVelocity, Zero), - fixedValueFvPatchField::typeName + fvPatchFieldBase::zeroGradientType() ); U.primitiveFieldRef() = uAverage.primitiveField(); U.correctBoundaryConditions(); diff --git a/src/lagrangian/molecularDynamics/molecule/mdTools/createMDFields.H b/src/lagrangian/molecularDynamics/molecule/mdTools/createMDFields.H index d33c360937..025c398c4a 100644 --- a/src/lagrangian/molecularDynamics/molecule/mdTools/createMDFields.H +++ b/src/lagrangian/molecularDynamics/molecule/mdTools/createMDFields.H @@ -57,7 +57,7 @@ forAll(allSpeciesRhoN, rN) ), mesh, dimless/dimVolume, - "zeroGradient" + fvPatchFieldBase::zeroGradientType() ) ); allSpeciesRhoN[rN].primitiveFieldRef() = 0; @@ -78,7 +78,7 @@ volScalarField totalRhoN ), mesh, dimless/dimVolume, - "zeroGradient" + fvPatchFieldBase::zeroGradientType() ); totalRhoN.primitiveFieldRef() = 0; totalRhoN.correctBoundaryConditions(); @@ -112,7 +112,7 @@ forAll(allSpeciesRhoM, rM) ), mesh, dimMass/dimVolume, - "zeroGradient" + fvPatchFieldBase::zeroGradientType() ) ); allSpeciesRhoM[rM].primitiveFieldRef() = 0; @@ -133,7 +133,7 @@ volScalarField totalRhoM ), mesh, dimMass/dimVolume, - "zeroGradient" + fvPatchFieldBase::zeroGradientType() ); totalRhoM.primitiveFieldRef() = 0; totalRhoM.correctBoundaryConditions(); @@ -167,7 +167,7 @@ forAll(allSpeciesVelocity, v) ), mesh, dimVelocity, - "zeroGradient" + fvPatchFieldBase::zeroGradientType() ) ); allSpeciesVelocity[v].primitiveFieldRef() = Zero; @@ -188,7 +188,7 @@ Info << " Creating total velocity field" << endl; // ), // mesh, // dimVelocity, -// "zeroGradient" +// fvPatchFieldBase::zeroGradientType() // ); // totalVelocity.primitiveFieldRef() = Zero; // totalVelocity.correctBoundaryConditions(); @@ -237,7 +237,7 @@ forAll(allSpeciesTemperature, t) ), mesh, dimTemperature, - "zeroGradient" + fvPatchFieldBase::zeroGradientType() ) ); allSpeciesTemperature[t].primitiveFieldRef() = 0; @@ -258,7 +258,7 @@ volScalarField totalTemperature ), mesh, dimTemperature, - "zeroGradient" + fvPatchFieldBase::zeroGradientType() ); totalTemperature.primitiveFieldRef() = 0; totalTemperature.correctBoundaryConditions(); @@ -293,7 +293,7 @@ forAll(allSpeciesMeanKE, mKE) ), mesh, dimensionSet(1, 2, -2, 0, 0, 0, 0), - "zeroGradient" + fvPatchFieldBase::zeroGradientType() ) ); allSpeciesMeanKE[mKE].primitiveFieldRef() = 0; @@ -314,7 +314,7 @@ volScalarField totalMeanKE ), mesh, dimensionSet(1, 2, -2, 0, 0, 0, 0), - "zeroGradient" + fvPatchFieldBase::zeroGradientType() ); totalMeanKE.primitiveFieldRef() = 0; totalMeanKE.correctBoundaryConditions(); diff --git a/src/mesh/snappyHexMesh/meshRefinement/meshRefinement.C b/src/mesh/snappyHexMesh/meshRefinement/meshRefinement.C index f945f0f369..309223d95b 100644 --- a/src/mesh/snappyHexMesh/meshRefinement/meshRefinement.C +++ b/src/mesh/snappyHexMesh/meshRefinement/meshRefinement.C @@ -2406,27 +2406,27 @@ Foam::label Foam::meshRefinement::appendPatch addPatchFields ( mesh, - calculatedFvPatchField::typeName + fvPatchFieldBase::calculatedType() ); addPatchFields ( mesh, - calculatedFvPatchField::typeName + fvPatchFieldBase::calculatedType() ); addPatchFields ( mesh, - calculatedFvPatchField::typeName + fvPatchFieldBase::calculatedType() ); addPatchFields ( mesh, - calculatedFvPatchField::typeName + fvPatchFieldBase::calculatedType() ); addPatchFields ( mesh, - calculatedFvPatchField::typeName + fvPatchFieldBase::calculatedType() ); // Surface fields @@ -2434,27 +2434,27 @@ Foam::label Foam::meshRefinement::appendPatch addPatchFields ( mesh, - calculatedFvPatchField::typeName + fvsPatchFieldBase::calculatedType() ); addPatchFields ( mesh, - calculatedFvPatchField::typeName + fvsPatchFieldBase::calculatedType() ); addPatchFields ( mesh, - calculatedFvPatchField::typeName + fvsPatchFieldBase::calculatedType() ); addPatchFields ( mesh, - calculatedFvPatchField::typeName + fvsPatchFieldBase::calculatedType() ); addPatchFields ( mesh, - calculatedFvPatchField::typeName + fvsPatchFieldBase::calculatedType() ); return patchi; } @@ -2574,7 +2574,7 @@ Foam::label Foam::meshRefinement::addMeshedPatch // mesh_, // ppPtr(), // dictionary(), // optional field values -// calculatedFvPatchField::typeName, +// fvPatchFieldBase::calculatedType(), // true // ); @@ -3595,7 +3595,7 @@ void Foam::meshRefinement::dumpRefinementLevel() const ), mesh_, dimensionedScalar(dimless, Zero), - zeroGradientFvPatchScalarField::typeName + fvPatchFieldBase::zeroGradientType() ); const labelList& cellLevel = meshCutter_.cellLevel(); diff --git a/src/mesh/snappyHexMesh/meshRefinement/meshRefinementBaffles.C b/src/mesh/snappyHexMesh/meshRefinement/meshRefinementBaffles.C index 57946636c1..c36580ced6 100644 --- a/src/mesh/snappyHexMesh/meshRefinement/meshRefinementBaffles.C +++ b/src/mesh/snappyHexMesh/meshRefinement/meshRefinementBaffles.C @@ -3576,7 +3576,7 @@ void Foam::meshRefinement::zonify ), mesh_, dimensionedScalar(dimless, Zero), - zeroGradientFvPatchScalarField::typeName + fvPatchFieldBase::zeroGradientType() ); forAll(cellToZone, cellI) diff --git a/src/optimisation/adjointOptimisation/adjoint/ATCModel/ATCModel/ATCModel.C b/src/optimisation/adjointOptimisation/adjoint/ATCModel/ATCModel/ATCModel.C index 057996e18a..d6791326aa 100644 --- a/src/optimisation/adjointOptimisation/adjoint/ATCModel/ATCModel/ATCModel.C +++ b/src/optimisation/adjointOptimisation/adjoint/ATCModel/ATCModel/ATCModel.C @@ -101,8 +101,9 @@ ATCModel::ATCModel IOobject::NO_WRITE ), mesh_, - dimensionedScalar("limiter", dimless, 1.0), - zeroGradientFvPatchField::typeName + scalar(1), + dimless, + fvPatchFieldBase::zeroGradientType() ), ATC_ ( @@ -231,17 +232,18 @@ tmp ATCModel::createLimiter ( new volScalarField ( - IOobject - ( - "limiter", - mesh.time().timeName(), - mesh, - IOobject::NO_READ, - IOobject::NO_WRITE - ), - mesh, - dimensionedScalar("limiter", dimless, 1.0), - zeroGradientFvPatchField::typeName + IOobject + ( + "limiter", + mesh.time().timeName(), + mesh, + IOobject::NO_READ, + IOobject::NO_WRITE + ), + mesh, + scalar(1), + dimless, + fvPatchFieldBase::zeroGradientType() ) ); volScalarField& limiter = tlimiter.ref(); diff --git a/src/optimisation/adjointOptimisation/adjoint/ATCModel/ATCModel/ATCModelTemplates.C b/src/optimisation/adjointOptimisation/adjoint/ATCModel/ATCModel/ATCModelTemplates.C index 488a4f7713..f9bba35323 100644 --- a/src/optimisation/adjointOptimisation/adjoint/ATCModel/ATCModel/ATCModelTemplates.C +++ b/src/optimisation/adjointOptimisation/adjoint/ATCModel/ATCModel/ATCModelTemplates.C @@ -50,8 +50,9 @@ void Foam::ATCModel::smoothFieldBasedOnCells IOobject::NO_WRITE ), mesh_, - dimensionedScalar("limiter", dimless, 1.0), - zeroGradientFvPatchField::typeName + scalar(1), + dimless, + fvPatchFieldBase::zeroGradientType() ); computeLimiter(limiter, cells, nSmooth_); diff --git a/src/optimisation/adjointOptimisation/adjoint/dynamicMesh/motionSolver/elasticityMotionSolver/elasticityMotionSolver.C b/src/optimisation/adjointOptimisation/adjoint/dynamicMesh/motionSolver/elasticityMotionSolver/elasticityMotionSolver.C index 89f048fcc0..663f7e3ea9 100644 --- a/src/optimisation/adjointOptimisation/adjoint/dynamicMesh/motionSolver/elasticityMotionSolver/elasticityMotionSolver.C +++ b/src/optimisation/adjointOptimisation/adjoint/dynamicMesh/motionSolver/elasticityMotionSolver/elasticityMotionSolver.C @@ -153,7 +153,7 @@ Foam::elasticityMotionSolver::elasticityMotionSolver ), fvMesh_, dimensionedScalar(dimless, Zero), - zeroGradientFvPatchScalarField::typeName + fvPatchFieldBase::zeroGradientType() ), exponent_(this->coeffDict().get("exponent")), nSteps_(this->coeffDict().get