STYLE: use zeroGradientType() instead of hard-coded or typeName

This commit is contained in:
Mark Olesen
2023-04-12 17:57:46 +02:00
parent 09dd913077
commit 3947f3c441
56 changed files with 161 additions and 146 deletions

View File

@ -76,7 +76,7 @@ bool Foam::functionObjects::ObukhovLength::calcOL()
), ),
mesh_, mesh_,
dimLength, dimLength,
zeroGradientFvPatchField<scalar>::typeName fvPatchFieldBase::zeroGradientType()
); );
result1->store(); result1->store();
@ -94,7 +94,7 @@ bool Foam::functionObjects::ObukhovLength::calcOL()
), ),
mesh_, mesh_,
dimVelocity, dimVelocity,
zeroGradientFvPatchField<scalar>::typeName fvPatchFieldBase::zeroGradientType()
); );
result2->store(); result2->store();

View File

@ -71,7 +71,7 @@ diffusionMulticomponent<ReactionThermo, ThermoType>::init()
), ),
this->mesh_, this->mesh_,
dimensionedScalar(dimMass/dimTime/dimVolume, Zero), dimensionedScalar(dimMass/dimTime/dimVolume, Zero),
zeroGradientFvPatchScalarField::typeName fvPatchFieldBase::zeroGradientType()
) )
); );
@ -209,7 +209,7 @@ diffusionMulticomponent<ReactionThermo, ThermoType>::correct()
), ),
this->mesh_, this->mesh_,
dimensionedScalar(dimMass/dimTime/dimVolume, Zero), dimensionedScalar(dimMass/dimTime/dimVolume, Zero),
zeroGradientFvPatchScalarField::typeName fvPatchFieldBase::zeroGradientType()
) )
); );
@ -410,7 +410,7 @@ diffusionMulticomponent<ReactionThermo, ThermoType>::Qdot() const
), ),
this->mesh(), this->mesh(),
dimensionedScalar(dimEnergy/dimTime/dimVolume, Zero), dimensionedScalar(dimEnergy/dimTime/dimVolume, Zero),
zeroGradientFvPatchScalarField::typeName fvPatchFieldBase::zeroGradientType()
) )
); );

View File

@ -91,7 +91,7 @@ eddyDissipationDiffusionModel<ReactionThermo, ThermoType>::rtDiff() const
), ),
this->mesh(), this->mesh(),
dimensionedScalar(dimLength, Zero), dimensionedScalar(dimLength, Zero),
zeroGradientFvPatchScalarField::typeName fvPatchFieldBase::zeroGradientType()
) )
); );

View File

@ -144,7 +144,7 @@ void Foam::interfaceTrackingFvMesh::makeUs() const
wordList patchFieldTypes wordList patchFieldTypes
( (
aMesh().boundary().size(), aMesh().boundary().size(),
zeroGradientFaPatchVectorField::typeName faPatchFieldBase::zeroGradientType()
); );
forAll(aMesh().boundary(), patchI) forAll(aMesh().boundary(), patchI)
@ -883,7 +883,7 @@ void Foam::interfaceTrackingFvMesh::updateSurfactantConcentration()
), ),
aMesh(), aMesh(),
dimensionedScalar(dimMoles/dimVolume, Zero), dimensionedScalar(dimMoles/dimVolume, Zero),
zeroGradientFaPatchScalarField::typeName faPatchFieldBase::zeroGradientType()
); );
Cb.ref().field() = Cb.ref().field() =

View File

@ -62,7 +62,7 @@ edgeIntegrate
), ),
mesh, mesh,
dimensioned<Type>(ssf.dimensions()/dimArea, Zero), dimensioned<Type>(ssf.dimensions()/dimArea, Zero),
zeroGradientFaPatchField<Type>::typeName faPatchFieldBase::zeroGradientType()
) )
); );
GeometricField<Type, faPatchField, areaMesh>& vf = tvf.ref(); GeometricField<Type, faPatchField, areaMesh>& vf = tvf.ref();
@ -134,7 +134,7 @@ edgeSum
), ),
mesh, mesh,
dimensioned<Type>(ssf.dimensions(), Zero), dimensioned<Type>(ssf.dimensions(), Zero),
zeroGradientFaPatchField<Type>::typeName faPatchFieldBase::zeroGradientType()
) )
); );
GeometricField<Type, faPatchField, areaMesh>& vf = tvf.ref(); GeometricField<Type, faPatchField, areaMesh>& vf = tvf.ref();

View File

@ -77,7 +77,7 @@ leastSquaresFaGrad<Type>::grad
), ),
mesh, mesh,
dimensioned<GradType>(vsf.dimensions()/dimLength, Zero), dimensioned<GradType>(vsf.dimensions()/dimLength, Zero),
zeroGradientFaPatchField<GradType>::typeName faPatchFieldBase::zeroGradientType()
) )
); );
GeometricField<GradType, faPatchField, areaMesh>& lsGrad = tlsGrad.ref(); GeometricField<GradType, faPatchField, areaMesh>& lsGrad = tlsGrad.ref();

View File

@ -60,7 +60,7 @@ void Foam::CorrectPhi
wordList pcorrTypes wordList pcorrTypes
( (
p.boundaryField().size(), p.boundaryField().size(),
zeroGradientFvPatchScalarField::typeName fvPatchFieldBase::zeroGradientType()
); );
// Set BCs of pcorr to fixed-value for patches at which p is fixed // Set BCs of pcorr to fixed-value for patches at which p is fixed
@ -140,7 +140,7 @@ void Foam::CorrectPhi
wordList pcorrTypes wordList pcorrTypes
( (
p.boundaryField().size(), p.boundaryField().size(),
zeroGradientFvPatchScalarField::typeName fvPatchFieldBase::zeroGradientType()
); );
// Set BCs of pcorr to fixed-value for patches at which p is fixed // Set BCs of pcorr to fixed-value for patches at which p is fixed

View File

@ -345,7 +345,7 @@ void Foam::fvc::spreadSource
), ),
mesh, mesh,
dimensionedScalar(mDotOut.dimensions(), Zero), dimensionedScalar(mDotOut.dimensions(), Zero),
zeroGradientFvPatchField<scalar>::typeName fvPatchFieldBase::zeroGradientType()
); );
// Smearing of source term field // Smearing of source term field

View File

@ -51,7 +51,7 @@ Foam::fvMeshSubsetProxy::zeroGradientField
io, io,
df.mesh(), df.mesh(),
dimensioned<Type>(df.dimensions(), Zero), dimensioned<Type>(df.dimensions(), Zero),
zeroGradientFvPatchField<Type>::typeName fvPatchFieldBase::zeroGradientType()
); );
tfield.ref().primitiveFieldRef() = df; tfield.ref().primitiveFieldRef() = df;
tfield.ref().oriented() = df.oriented(); tfield.ref().oriented() = df.oriented();

View File

@ -40,7 +40,7 @@ Foam::wordList Foam::patchDistMethod::patchTypes
wordList yTypes wordList yTypes
( (
mesh.boundary().size(), mesh.boundary().size(),
zeroGradientFvPatchField<Type>::typeName fvPatchFieldBase::zeroGradientType()
); );
for (const label patchi : patchIDs) for (const label patchi : patchIDs)

View File

@ -100,7 +100,7 @@ bool Foam::functionObjects::CourantNo::calc()
), ),
mesh_, mesh_,
dimensionedScalar(dimless, Zero), dimensionedScalar(dimless, Zero),
zeroGradientFvPatchScalarField::typeName fvPatchFieldBase::zeroGradientType()
); );
tCo.ref().ref() = Coi(); tCo.ref().ref() = Coi();
tCo.ref().correctBoundaryConditions(); tCo.ref().correctBoundaryConditions();

View File

@ -63,7 +63,7 @@ Foam::wordList Foam::functionObjects::age::patchTypes() const
{ {
if (isA<wallFvPatch>(mesh_.boundary()[patchi])) if (isA<wallFvPatch>(mesh_.boundary()[patchi]))
{ {
result[patchi] = zeroGradientFvPatchField<scalar>::typeName; result[patchi] = fvPatchFieldBase::zeroGradientType();
} }
} }

View File

@ -96,7 +96,7 @@ Foam::functionObjects::blendingFactor::blendingFactor
), ),
mesh_, mesh_,
dimensionedScalar(dimless, Zero), dimensionedScalar(dimless, Zero),
zeroGradientFvPatchScalarField::typeName fvPatchFieldBase::zeroGradientType()
); );
store(resultName_, indicatorPtr); store(resultName_, indicatorPtr);

View File

@ -58,7 +58,7 @@ Foam::tmp<Foam::volScalarField> Foam::resolutionIndexModel::V() const
), ),
mesh_, mesh_,
dimVolume, dimVolume,
zeroGradientFvPatchScalarField::typeName fvPatchFieldBase::zeroGradientType()
); );
tV.ref().primitiveFieldRef() = mesh_.V(); tV.ref().primitiveFieldRef() = mesh_.V();
@ -104,7 +104,7 @@ bool Foam::resolutionIndexModel::read(const dictionary& dict)
), ),
mesh_, mesh_,
dimensionedScalar(dimless, Zero), dimensionedScalar(dimless, Zero),
zeroGradientFvPatchScalarField::typeName fvPatchFieldBase::zeroGradientType()
); );
mesh_.objectRegistry::store(indexPtr); mesh_.objectRegistry::store(indexPtr);

View File

@ -71,7 +71,7 @@ Foam::functionObjects::stabilityBlendingFactor::indicator()
), ),
mesh_, mesh_,
dimensionedScalar(dimless, Zero), dimensionedScalar(dimless, Zero),
zeroGradientFvPatchScalarField::typeName fvPatchFieldBase::zeroGradientType()
); );
mesh_.objectRegistry::store(fldPtr); mesh_.objectRegistry::store(fldPtr);
@ -332,7 +332,7 @@ bool Foam::functionObjects::stabilityBlendingFactor::init(bool first)
), ),
mesh_, mesh_,
dimensionedScalar(dimless, Zero), dimensionedScalar(dimless, Zero),
zeroGradientFvPatchScalarField::typeName fvPatchFieldBase::zeroGradientType()
); );
auto& magGradCC = tmagGradCC.ref(); auto& magGradCC = tmagGradCC.ref();
@ -351,7 +351,7 @@ bool Foam::functionObjects::stabilityBlendingFactor::init(bool first)
), ),
mesh_, mesh_,
dimensionedScalar(dimLength, Zero), dimensionedScalar(dimLength, Zero),
zeroGradientFvPatchScalarField::typeName fvPatchFieldBase::zeroGradientType()
); );
cci = mesh_.C().component(i); cci = mesh_.C().component(i);
cci.correctBoundaryConditions(); cci.correctBoundaryConditions();
@ -405,7 +405,7 @@ bool Foam::functionObjects::stabilityBlendingFactor::init(bool first)
), ),
mesh_, mesh_,
dimensionedScalar(dimless, Zero), dimensionedScalar(dimless, Zero),
zeroGradientFvPatchScalarField::typeName fvPatchFieldBase::zeroGradientType()
); );
auto& Co = CoPtr.ref(); auto& Co = CoPtr.ref();

View File

@ -96,7 +96,7 @@ int Foam::functionObjects::zeroGradient::apply
), ),
mesh_, mesh_,
dimensioned<Type>(input.dimensions(), Zero), dimensioned<Type>(input.dimensions(), Zero),
zeroGradientFvPatchField<Type>::typeName fvPatchFieldBase::zeroGradientType()
); );
store(outputName, tzeroGrad); store(outputName, tzeroGrad);

View File

@ -217,7 +217,7 @@ bool Foam::functionObjects::solverInfo::write()
), ),
mesh_, mesh_,
dimensionedScalar(dimless, Zero), dimensionedScalar(dimless, Zero),
zeroGradientFvPatchField<scalar>::typeName fvPatchFieldBase::zeroGradientType()
); );
residual.primitiveFieldRef() = *residualPtr; residual.primitiveFieldRef() = *residualPtr;

View File

@ -84,7 +84,7 @@ void Foam::inverseVolumeDiffusivity::correct()
), ),
mesh(), mesh(),
dimless, dimless,
zeroGradientFvPatchScalarField::typeName fvPatchFieldBase::zeroGradientType()
); );
V.primitiveFieldRef() = mesh().V(); V.primitiveFieldRef() = mesh().V();

View File

@ -87,7 +87,8 @@ void Foam::motionDirectionalDiffusivity::correct()
diffusivityVector_.y()*vector::one diffusivityVector_.y()*vector::one
+ (diffusivityVector_.x() - diffusivityVector_.y())*cellMotionU + (diffusivityVector_.x() - diffusivityVector_.y())*cellMotionU
/(mag(cellMotionU) + dimensionedScalar("small", dimVelocity, SMALL)), /(mag(cellMotionU) + dimensionedScalar("small", dimVelocity, SMALL)),
zeroGradientFvPatchVectorField::typeName
fvPatchFieldBase::zeroGradientType()
); );
D.correctBoundaryConditions(); D.correctBoundaryConditions();

View File

@ -65,7 +65,7 @@ void Foam::patchCorrectedInterpolation::interpolateType
wordList wordList
( (
pointUncorrectedDisplacement.boundaryField().size(), pointUncorrectedDisplacement.boundaryField().size(),
zeroGradientPointPatchField<Type>::typeName pointPatchFieldBase::zeroGradientType()
) )
); );
@ -107,7 +107,7 @@ void Foam::patchCorrectedInterpolation::interpolateDataFromPatchGroups
), ),
data.mesh(), data.mesh(),
dimensionedScalar(dimless, Zero), dimensionedScalar(dimless, Zero),
zeroGradientPointPatchField<scalar>::typeName pointPatchFieldBase::zeroGradientType()
); );
data = dimensioned<Type>(data.dimensions(), Zero); data = dimensioned<Type>(data.dimensions(), Zero);
@ -124,7 +124,7 @@ void Foam::patchCorrectedInterpolation::interpolateDataFromPatchGroups
), ),
data.mesh(), data.mesh(),
dimensionedScalar(data.dimensions(), Zero), dimensionedScalar(data.dimensions(), Zero),
zeroGradientPointPatchField<scalar>::typeName pointPatchFieldBase::zeroGradientType()
); );
GeometricField<Type, pointPatchField, pointMesh> patchData(data); GeometricField<Type, pointPatchField, pointMesh> patchData(data);

View File

@ -98,8 +98,9 @@ Foam::fv::acousticDampingSource::acousticDampingSource
IOobject::NO_WRITE IOobject::NO_WRITE
), ),
mesh_, mesh_,
dimensionedScalar("blend0", dimless, 1.0), scalar(1),
zeroGradientFvPatchField<vector>::typeName dimless,
fvPatchFieldBase::zeroGradientType()
) )
), ),
frequency_("frequency", dimless/dimTime, 0), frequency_("frequency", dimless/dimTime, 0),

View File

@ -68,7 +68,7 @@ Foam::fv::jouleHeatingSource::transformSigma
), ),
mesh_, mesh_,
dimensionedSymmTensor(sigmaLocal.dimensions(), Zero), dimensionedSymmTensor(sigmaLocal.dimensions(), Zero),
zeroGradientFvPatchField<symmTensor>::typeName fvPatchFieldBase::zeroGradientType()
); );
auto& sigma = tsigma.ref(); auto& sigma = tsigma.ref();

View File

@ -192,7 +192,7 @@ Foam::fv::solidificationMeltingSource::solidificationMeltingSource
), ),
mesh, mesh,
dimensionedScalar(dimless, Zero), dimensionedScalar(dimless, Zero),
zeroGradientFvPatchScalarField::typeName fvPatchFieldBase::zeroGradientType()
), ),
curTimeIndex_(-1), curTimeIndex_(-1),
deltaT_(cells_.size(), 0) deltaT_(cells_.size(), 0)

View File

@ -139,7 +139,7 @@ Foam::fv::interRegionHeatTransferModel::interRegionHeatTransferModel
), ),
mesh, mesh,
dimensionedScalar(dimEnergy/dimTime/dimTemperature/dimVolume, Zero), dimensionedScalar(dimEnergy/dimTime/dimTemperature/dimVolume, Zero),
zeroGradientFvPatchScalarField::typeName fvPatchFieldBase::zeroGradientType()
), ),
TName_(coeffs_.getOrDefault<word>("T", "T")), TName_(coeffs_.getOrDefault<word>("T", "T")),
TNbrName_(coeffs_.getOrDefault<word>("TNbr", "T")) TNbrName_(coeffs_.getOrDefault<word>("TNbr", "T"))

View File

@ -717,7 +717,7 @@ Foam::DSMCCloud<ParcelType>::DSMCCloud
), ),
mesh_, mesh_,
dimensionedScalar(dimensionSet(0, 3, -1, 0, 0), Zero), dimensionedScalar(dimensionSet(0, 3, -1, 0, 0), Zero),
zeroGradientFvPatchScalarField::typeName fvPatchFieldBase::zeroGradientType()
), ),
collisionSelectionRemainder_ collisionSelectionRemainder_
( (

View File

@ -80,7 +80,7 @@ void Foam::AveragingMethods::Basic<Type>::updateGrad()
), ),
this->mesh_, this->mesh_,
dimensioned<Type>(dimless, Zero), dimensioned<Type>(dimless, Zero),
zeroGradientFvPatchField<Type>::typeName fvPatchFieldBase::zeroGradientType()
); );
tempData.primitiveFieldRef() = data_; tempData.primitiveFieldRef() = data_;
tempData.correctBoundaryConditions(); tempData.correctBoundaryConditions();

View File

@ -56,7 +56,7 @@ Foam::PackingModels::Implicit<CloudType>::Implicit
), ),
this->owner().mesh(), this->owner().mesh(),
dimensionedScalar(dimless, Zero), dimensionedScalar(dimless, Zero),
zeroGradientFvPatchScalarField::typeName fvPatchFieldBase::zeroGradientType()
), ),
phiCorrect_(nullptr), phiCorrect_(nullptr),
uCorrect_(nullptr), uCorrect_(nullptr),
@ -150,7 +150,7 @@ void Foam::PackingModels::Implicit<CloudType>::cacheFields(const bool store)
), ),
mesh, mesh,
dimensionedScalar(dimDensity, Zero), dimensionedScalar(dimDensity, Zero),
zeroGradientFvPatchField<scalar>::typeName fvPatchFieldBase::zeroGradientType()
); );
rho.primitiveFieldRef() = max(rhoAverage.primitiveField(), rhoMin_); rho.primitiveFieldRef() = max(rhoAverage.primitiveField(), rhoMin_);
rho.correctBoundaryConditions(); rho.correctBoundaryConditions();
@ -171,7 +171,7 @@ void Foam::PackingModels::Implicit<CloudType>::cacheFields(const bool store)
), ),
mesh, mesh,
dimensionedScalar(dimPressure, Zero), dimensionedScalar(dimPressure, Zero),
zeroGradientFvPatchField<scalar>::typeName fvPatchFieldBase::zeroGradientType()
); );
tauPrime.primitiveFieldRef() = tauPrime.primitiveFieldRef() =
@ -256,7 +256,7 @@ void Foam::PackingModels::Implicit<CloudType>::cacheFields(const bool store)
), ),
mesh, mesh,
dimensionedVector(dimVelocity, Zero), dimensionedVector(dimVelocity, Zero),
fixedValueFvPatchField<vector>::typeName fvPatchFieldBase::zeroGradientType()
); );
U.primitiveFieldRef() = uAverage.primitiveField(); U.primitiveFieldRef() = uAverage.primitiveField();
U.correctBoundaryConditions(); U.correctBoundaryConditions();

View File

@ -57,7 +57,7 @@ forAll(allSpeciesRhoN, rN)
), ),
mesh, mesh,
dimless/dimVolume, dimless/dimVolume,
"zeroGradient" fvPatchFieldBase::zeroGradientType()
) )
); );
allSpeciesRhoN[rN].primitiveFieldRef() = 0; allSpeciesRhoN[rN].primitiveFieldRef() = 0;
@ -78,7 +78,7 @@ volScalarField totalRhoN
), ),
mesh, mesh,
dimless/dimVolume, dimless/dimVolume,
"zeroGradient" fvPatchFieldBase::zeroGradientType()
); );
totalRhoN.primitiveFieldRef() = 0; totalRhoN.primitiveFieldRef() = 0;
totalRhoN.correctBoundaryConditions(); totalRhoN.correctBoundaryConditions();
@ -112,7 +112,7 @@ forAll(allSpeciesRhoM, rM)
), ),
mesh, mesh,
dimMass/dimVolume, dimMass/dimVolume,
"zeroGradient" fvPatchFieldBase::zeroGradientType()
) )
); );
allSpeciesRhoM[rM].primitiveFieldRef() = 0; allSpeciesRhoM[rM].primitiveFieldRef() = 0;
@ -133,7 +133,7 @@ volScalarField totalRhoM
), ),
mesh, mesh,
dimMass/dimVolume, dimMass/dimVolume,
"zeroGradient" fvPatchFieldBase::zeroGradientType()
); );
totalRhoM.primitiveFieldRef() = 0; totalRhoM.primitiveFieldRef() = 0;
totalRhoM.correctBoundaryConditions(); totalRhoM.correctBoundaryConditions();
@ -167,7 +167,7 @@ forAll(allSpeciesVelocity, v)
), ),
mesh, mesh,
dimVelocity, dimVelocity,
"zeroGradient" fvPatchFieldBase::zeroGradientType()
) )
); );
allSpeciesVelocity[v].primitiveFieldRef() = Zero; allSpeciesVelocity[v].primitiveFieldRef() = Zero;
@ -188,7 +188,7 @@ Info << " Creating total velocity field" << endl;
// ), // ),
// mesh, // mesh,
// dimVelocity, // dimVelocity,
// "zeroGradient" // fvPatchFieldBase::zeroGradientType()
// ); // );
// totalVelocity.primitiveFieldRef() = Zero; // totalVelocity.primitiveFieldRef() = Zero;
// totalVelocity.correctBoundaryConditions(); // totalVelocity.correctBoundaryConditions();
@ -237,7 +237,7 @@ forAll(allSpeciesTemperature, t)
), ),
mesh, mesh,
dimTemperature, dimTemperature,
"zeroGradient" fvPatchFieldBase::zeroGradientType()
) )
); );
allSpeciesTemperature[t].primitiveFieldRef() = 0; allSpeciesTemperature[t].primitiveFieldRef() = 0;
@ -258,7 +258,7 @@ volScalarField totalTemperature
), ),
mesh, mesh,
dimTemperature, dimTemperature,
"zeroGradient" fvPatchFieldBase::zeroGradientType()
); );
totalTemperature.primitiveFieldRef() = 0; totalTemperature.primitiveFieldRef() = 0;
totalTemperature.correctBoundaryConditions(); totalTemperature.correctBoundaryConditions();
@ -293,7 +293,7 @@ forAll(allSpeciesMeanKE, mKE)
), ),
mesh, mesh,
dimensionSet(1, 2, -2, 0, 0, 0, 0), dimensionSet(1, 2, -2, 0, 0, 0, 0),
"zeroGradient" fvPatchFieldBase::zeroGradientType()
) )
); );
allSpeciesMeanKE[mKE].primitiveFieldRef() = 0; allSpeciesMeanKE[mKE].primitiveFieldRef() = 0;
@ -314,7 +314,7 @@ volScalarField totalMeanKE
), ),
mesh, mesh,
dimensionSet(1, 2, -2, 0, 0, 0, 0), dimensionSet(1, 2, -2, 0, 0, 0, 0),
"zeroGradient" fvPatchFieldBase::zeroGradientType()
); );
totalMeanKE.primitiveFieldRef() = 0; totalMeanKE.primitiveFieldRef() = 0;
totalMeanKE.correctBoundaryConditions(); totalMeanKE.correctBoundaryConditions();

View File

@ -2406,27 +2406,27 @@ Foam::label Foam::meshRefinement::appendPatch
addPatchFields<volScalarField> addPatchFields<volScalarField>
( (
mesh, mesh,
calculatedFvPatchField<scalar>::typeName fvPatchFieldBase::calculatedType()
); );
addPatchFields<volVectorField> addPatchFields<volVectorField>
( (
mesh, mesh,
calculatedFvPatchField<vector>::typeName fvPatchFieldBase::calculatedType()
); );
addPatchFields<volSphericalTensorField> addPatchFields<volSphericalTensorField>
( (
mesh, mesh,
calculatedFvPatchField<sphericalTensor>::typeName fvPatchFieldBase::calculatedType()
); );
addPatchFields<volSymmTensorField> addPatchFields<volSymmTensorField>
( (
mesh, mesh,
calculatedFvPatchField<symmTensor>::typeName fvPatchFieldBase::calculatedType()
); );
addPatchFields<volTensorField> addPatchFields<volTensorField>
( (
mesh, mesh,
calculatedFvPatchField<tensor>::typeName fvPatchFieldBase::calculatedType()
); );
// Surface fields // Surface fields
@ -2434,27 +2434,27 @@ Foam::label Foam::meshRefinement::appendPatch
addPatchFields<surfaceScalarField> addPatchFields<surfaceScalarField>
( (
mesh, mesh,
calculatedFvPatchField<scalar>::typeName fvsPatchFieldBase::calculatedType()
); );
addPatchFields<surfaceVectorField> addPatchFields<surfaceVectorField>
( (
mesh, mesh,
calculatedFvPatchField<vector>::typeName fvsPatchFieldBase::calculatedType()
); );
addPatchFields<surfaceSphericalTensorField> addPatchFields<surfaceSphericalTensorField>
( (
mesh, mesh,
calculatedFvPatchField<sphericalTensor>::typeName fvsPatchFieldBase::calculatedType()
); );
addPatchFields<surfaceSymmTensorField> addPatchFields<surfaceSymmTensorField>
( (
mesh, mesh,
calculatedFvPatchField<symmTensor>::typeName fvsPatchFieldBase::calculatedType()
); );
addPatchFields<surfaceTensorField> addPatchFields<surfaceTensorField>
( (
mesh, mesh,
calculatedFvPatchField<tensor>::typeName fvsPatchFieldBase::calculatedType()
); );
return patchi; return patchi;
} }
@ -2574,7 +2574,7 @@ Foam::label Foam::meshRefinement::addMeshedPatch
// mesh_, // mesh_,
// ppPtr(), // ppPtr(),
// dictionary(), // optional field values // dictionary(), // optional field values
// calculatedFvPatchField<scalar>::typeName, // fvPatchFieldBase::calculatedType(),
// true // true
// ); // );
@ -3595,7 +3595,7 @@ void Foam::meshRefinement::dumpRefinementLevel() const
), ),
mesh_, mesh_,
dimensionedScalar(dimless, Zero), dimensionedScalar(dimless, Zero),
zeroGradientFvPatchScalarField::typeName fvPatchFieldBase::zeroGradientType()
); );
const labelList& cellLevel = meshCutter_.cellLevel(); const labelList& cellLevel = meshCutter_.cellLevel();

View File

@ -3576,7 +3576,7 @@ void Foam::meshRefinement::zonify
), ),
mesh_, mesh_,
dimensionedScalar(dimless, Zero), dimensionedScalar(dimless, Zero),
zeroGradientFvPatchScalarField::typeName fvPatchFieldBase::zeroGradientType()
); );
forAll(cellToZone, cellI) forAll(cellToZone, cellI)

View File

@ -101,8 +101,9 @@ ATCModel::ATCModel
IOobject::NO_WRITE IOobject::NO_WRITE
), ),
mesh_, mesh_,
dimensionedScalar("limiter", dimless, 1.0), scalar(1),
zeroGradientFvPatchField<scalar>::typeName dimless,
fvPatchFieldBase::zeroGradientType()
), ),
ATC_ ATC_
( (
@ -231,17 +232,18 @@ tmp<volScalarField> ATCModel::createLimiter
( (
new volScalarField new volScalarField
( (
IOobject IOobject
( (
"limiter", "limiter",
mesh.time().timeName(), mesh.time().timeName(),
mesh, mesh,
IOobject::NO_READ, IOobject::NO_READ,
IOobject::NO_WRITE IOobject::NO_WRITE
), ),
mesh, mesh,
dimensionedScalar("limiter", dimless, 1.0), scalar(1),
zeroGradientFvPatchField<scalar>::typeName dimless,
fvPatchFieldBase::zeroGradientType()
) )
); );
volScalarField& limiter = tlimiter.ref(); volScalarField& limiter = tlimiter.ref();

View File

@ -50,8 +50,9 @@ void Foam::ATCModel::smoothFieldBasedOnCells
IOobject::NO_WRITE IOobject::NO_WRITE
), ),
mesh_, mesh_,
dimensionedScalar("limiter", dimless, 1.0), scalar(1),
zeroGradientFvPatchField<scalar>::typeName dimless,
fvPatchFieldBase::zeroGradientType()
); );
computeLimiter(limiter, cells, nSmooth_); computeLimiter(limiter, cells, nSmooth_);

View File

@ -153,7 +153,7 @@ Foam::elasticityMotionSolver::elasticityMotionSolver
), ),
fvMesh_, fvMesh_,
dimensionedScalar(dimless, Zero), dimensionedScalar(dimless, Zero),
zeroGradientFvPatchScalarField::typeName fvPatchFieldBase::zeroGradientType()
), ),
exponent_(this->coeffDict().get<scalar>("exponent")), exponent_(this->coeffDict().get<scalar>("exponent")),
nSteps_(this->coeffDict().get<label>("steps")), nSteps_(this->coeffDict().get<label>("steps")),

View File

@ -55,7 +55,7 @@ wordList adjointEikonalSolver::patchTypes() const
for (const label patchi : wallPatchIDs_) for (const label patchi : wallPatchIDs_)
{ {
daTypes[patchi] = zeroGradientFvPatchScalarField::typeName; daTypes[patchi] = fvPatchFieldBase::zeroGradientType();
} }
return daTypes; return daTypes;

View File

@ -320,7 +320,7 @@ void sensitivitySurface::smoothSensitivities()
), ),
aMesh, aMesh,
dimensionedScalar(dimless, Zero), dimensionedScalar(dimless, Zero),
zeroGradientFaPatchField<scalar>::typeName faPatchFieldBase::zeroGradientType()
); );
// Copy sensitivities to area field // Copy sensitivities to area field

View File

@ -2293,7 +2293,7 @@ tmp<volTensorField> adjointkOmegaSST::FISensitivityTerm()
), ),
mesh_, mesh_,
dimensionedTensor(sqr(dimLength)/pow3(dimTime), Zero), dimensionedTensor(sqr(dimLength)/pow3(dimTime), Zero),
zeroGradientFvPatchTensorField::typeName fvPatchFieldBase::zeroGradientType()
) )
); );
volTensorField& FISens = tFISens.ref(); volTensorField& FISens = tFISens.ref();

View File

@ -171,7 +171,7 @@ Foam::cellCellStencil::createField
), ),
mesh, mesh,
dimensionedScalar(dimless, Zero), dimensionedScalar(dimless, Zero),
zeroGradientFvPatchScalarField::typeName fvPatchFieldBase::zeroGradientType()
); );
volScalarField& fld = tfld.ref(); volScalarField& fld = tfld.ref();

View File

@ -534,7 +534,7 @@ Foam::cellCellStencils::cellVolumeWeight::cellVolumeWeight
), ),
mesh_, mesh_,
dimensionedScalar(dimless, Zero), dimensionedScalar(dimless, Zero),
zeroGradientFvPatchScalarField::typeName fvPatchFieldBase::zeroGradientType()
), ),
allowInterpolatedDonors_ allowInterpolatedDonors_
( (

View File

@ -1736,7 +1736,7 @@ Foam::cellCellStencils::inverseDistance::inverseDistance
), ),
mesh_, mesh_,
dimensionedScalar(dimless, Zero), dimensionedScalar(dimless, Zero),
zeroGradientFvPatchScalarField::typeName fvPatchFieldBase::zeroGradientType()
) )
{ {
// Protect local fields from interpolation // Protect local fields from interpolation

View File

@ -46,8 +46,9 @@ volScalarField cellMask
IOobject::NO_WRITE IOobject::NO_WRITE
), ),
mesh, mesh,
dimensionedScalar("one", dimless, 1.0), scalar(1),
zeroGradientFvPatchScalarField::typeName dimless,
fvPatchFieldBase::zeroGradientType()
); );
surfaceScalarField faceMask surfaceScalarField faceMask

View File

@ -46,8 +46,9 @@ volScalarField interpolatedCells
IOobject::NO_WRITE IOobject::NO_WRITE
), ),
mesh, mesh,
dimensionedScalar("one", dimless, 1.0), scalar(1),
zeroGradientFvPatchScalarField::typeName dimless,
fvPatchFieldBase::zeroGradientType()
); );
#include "setInterpolatedCells.H" #include "setInterpolatedCells.H"

View File

@ -656,7 +656,7 @@ bool Foam::oversetFvMeshBase::writeObject
), ),
mesh_, mesh_,
dimensionedScalar(dimless, Zero), dimensionedScalar(dimless, Zero),
zeroGradientFvPatchScalarField::typeName fvPatchFieldBase::zeroGradientType()
); );
forAll(volTypes.internalField(), cellI) forAll(volTypes.internalField(), cellI)
@ -680,7 +680,7 @@ bool Foam::oversetFvMeshBase::writeObject
), ),
mesh_, mesh_,
dimensionedScalar(dimless, Zero), dimensionedScalar(dimless, Zero),
zeroGradientFvPatchScalarField::typeName fvPatchFieldBase::zeroGradientType()
); );
const cellCellStencilObject& overlap = Stencil::New(mesh_); const cellCellStencilObject& overlap = Stencil::New(mesh_);
@ -719,8 +719,9 @@ bool Foam::oversetFvMeshBase::writeObject
IOobject::NO_REGISTER IOobject::NO_REGISTER
), ),
mesh_, mesh_,
dimensionedScalar("minOne", dimless, scalar(-1)), scalar(-1),
zeroGradientFvPatchScalarField::typeName dimless,
fvPatchFieldBase::zeroGradientType()
); );
forAll(cellStencil, cellI) forAll(cellStencil, cellI)

View File

@ -90,7 +90,7 @@ Foam::InterfaceCompositionModel<Thermo, OtherThermo>::getSpecieMassFraction
), ),
mesh, mesh,
dimensionedScalar(dimless, Zero), dimensionedScalar(dimless, Zero),
zeroGradientFvPatchScalarField::typeName fvPatchFieldBase::zeroGradientType()
); );
auto& Ys = tY.ref(); auto& Ys = tY.ref();
@ -123,8 +123,9 @@ Foam::InterfaceCompositionModel<Thermo, OtherThermo>::getSpecieMassFraction
IOobject::NO_WRITE IOobject::NO_WRITE
), ),
mesh, mesh,
dimensionedScalar("one", dimless, scalar(1)), scalar(1),
zeroGradientFvPatchScalarField::typeName dimless,
fvPatchFieldBase::zeroGradientType()
); );
} }
@ -156,7 +157,7 @@ Foam::InterfaceCompositionModel<Thermo, OtherThermo>::MwMixture
dimMass/dimMoles, dimMass/dimMoles,
1e-3*mixture.cellMixture(0).W() 1e-3*mixture.cellMixture(0).W()
), ),
zeroGradientFvPatchScalarField::typeName fvPatchFieldBase::zeroGradientType()
); );
} }
@ -328,7 +329,7 @@ Foam::InterfaceCompositionModel<Thermo, OtherThermo>::L
), ),
p.mesh(), p.mesh(),
dimensionedScalar(dimEnergy/dimMass, Zero), dimensionedScalar(dimEnergy/dimMass, Zero),
zeroGradientFvPatchScalarField::typeName fvPatchFieldBase::zeroGradientType()
); );
auto& L = tmpL.ref(); auto& L = tmpL.ref();

View File

@ -104,7 +104,7 @@ Foam::tmp<Foam::volScalarField> Foam::dragModels::segregated::K() const
), ),
mesh, mesh,
dimensionedScalar(dimLength), dimensionedScalar(dimLength),
zeroGradientFvPatchField<scalar>::typeName fvPatchFieldBase::zeroGradientType()
); );
L.primitiveFieldRef() = cbrt(mesh.V()); L.primitiveFieldRef() = cbrt(mesh.V());
L.correctBoundaryConditions(); L.correctBoundaryConditions();

View File

@ -104,7 +104,7 @@ Foam::tmp<Foam::volScalarField> Foam::dragModels::segregated::K() const
), ),
mesh, mesh,
dimensionedScalar(dimLength, Zero), dimensionedScalar(dimLength, Zero),
zeroGradientFvPatchField<scalar>::typeName fvPatchFieldBase::zeroGradientType()
); );
L.primitiveFieldRef() = cbrt(mesh.V()); L.primitiveFieldRef() = cbrt(mesh.V());
L.correctBoundaryConditions(); L.correctBoundaryConditions();

View File

@ -297,7 +297,7 @@ const tmp<areaScalarField> KirchhoffShell::rho() const
), ),
regionMesh(), regionMesh(),
dimensionedScalar("rho", dimDensity, solid().rho()), dimensionedScalar("rho", dimDensity, solid().rho()),
zeroGradientFaPatchScalarField::typeName faPatchFieldBase::zeroGradientType()
) )
); );
} }

View File

@ -199,7 +199,7 @@ const tmp<areaScalarField> thermalShell::Cp() const
), ),
regionMesh(), regionMesh(),
dimensionedScalar(dimEnergy/dimTemperature/dimMass, thermo_.Cp()), dimensionedScalar(dimEnergy/dimTemperature/dimMass, thermo_.Cp()),
zeroGradientFaPatchScalarField::typeName faPatchFieldBase::zeroGradientType()
) )
); );
} }
@ -222,7 +222,7 @@ const tmp<areaScalarField> thermalShell::rho() const
), ),
regionMesh(), regionMesh(),
dimensionedScalar(dimDensity, thermo_.rho()), dimensionedScalar(dimDensity, thermo_.rho()),
zeroGradientFaPatchScalarField::typeName faPatchFieldBase::zeroGradientType()
) )
); );
} }
@ -249,7 +249,7 @@ const tmp<areaScalarField> thermalShell::kappa() const
dimPower/dimLength/dimTemperature, dimPower/dimLength/dimTemperature,
thermo_.kappa() thermo_.kappa()
), ),
zeroGradientFaPatchScalarField::typeName faPatchFieldBase::zeroGradientType()
) )
); );
} }

View File

@ -56,11 +56,11 @@ void Foam::regionModels::singleLayerRegion::constructMeshObjects()
time_.timeName(), time_.timeName(),
regionMesh(), regionMesh(),
IOobject::READ_IF_PRESENT, IOobject::READ_IF_PRESENT,
NO_WRITE IOobject::NO_WRITE
), ),
regionMesh(), regionMesh(),
dimensionedVector(dimless, Zero), dimensionedVector(dimless, Zero),
zeroGradientFvPatchField<vector>::typeName fvPatchFieldBase::zeroGradientType()
) )
); );
@ -75,11 +75,11 @@ void Foam::regionModels::singleLayerRegion::constructMeshObjects()
time_.timeName(), time_.timeName(),
regionMesh(), regionMesh(),
IOobject::READ_IF_PRESENT, IOobject::READ_IF_PRESENT,
NO_WRITE IOobject::NO_WRITE
), ),
regionMesh(), regionMesh(),
dimensionedScalar(dimArea, Zero), dimensionedScalar(dimArea, Zero),
zeroGradientFvPatchField<scalar>::typeName fvPatchFieldBase::zeroGradientType()
) )
); );
} }

View File

@ -36,13 +36,14 @@ template<class Type>
Foam::wordList Foam::wordList
Foam::regionModels::singleLayerRegion::mappedFieldAndInternalPatchTypes() const Foam::regionModels::singleLayerRegion::mappedFieldAndInternalPatchTypes() const
{ {
wordList bTypes(regionMesh().boundaryMesh().size()); wordList bTypes
(
regionMesh().boundaryMesh().size(),
fvPatchFieldBase::zeroGradientType()
);
bTypes = zeroGradientFvPatchField<Type>::typeName; for (const label patchi : intCoupledPatchIDs_)
forAll(intCoupledPatchIDs_, i)
{ {
const label patchi = intCoupledPatchIDs_[i];
bTypes[patchi] = mappedFixedInternalValueFvPatchField<Type>::typeName; bTypes[patchi] = mappedFixedInternalValueFvPatchField<Type>::typeName;
} }
@ -54,13 +55,14 @@ template<class Type>
Foam::wordList Foam::wordList
Foam::regionModels::singleLayerRegion::mappedPushedFieldPatchTypes() const Foam::regionModels::singleLayerRegion::mappedPushedFieldPatchTypes() const
{ {
wordList bTypes(regionMesh().boundaryMesh().size()); wordList bTypes
(
regionMesh().boundaryMesh().size(),
fvPatchFieldBase::zeroGradientType()
);
bTypes = zeroGradientFvPatchField<Type>::typeName; for (const label patchi : intCoupledPatchIDs_)
forAll(intCoupledPatchIDs_, i)
{ {
const label patchi = intCoupledPatchIDs_[i];
bTypes[patchi] = bTypes[patchi] =
mappedFixedPushedInternalValueFvPatchField<Type>::typeName; mappedFixedPushedInternalValueFvPatchField<Type>::typeName;
} }

View File

@ -129,7 +129,7 @@ bool Foam::functionObjects::filmFlux::execute()
), ),
filmMesh, filmMesh,
dimensionedScalar(dimLength, Zero), dimensionedScalar(dimLength, Zero),
zeroGradientFvPatchScalarField::typeName fvPatchFieldBase::zeroGradientType()
); );
auto& heightc = height.ref(); auto& heightc = height.ref();

View File

@ -468,7 +468,7 @@ kinematicSingleLayer::kinematicSingleLayer
), ),
regionMesh(), regionMesh(),
dimensionedScalar(dimDensity, Zero), dimensionedScalar(dimDensity, Zero),
zeroGradientFvPatchScalarField::typeName fvPatchFieldBase::zeroGradientType()
), ),
mu_ mu_
( (
@ -482,7 +482,7 @@ kinematicSingleLayer::kinematicSingleLayer
), ),
regionMesh(), regionMesh(),
dimensionedScalar(dimPressure*dimTime, Zero), dimensionedScalar(dimPressure*dimTime, Zero),
zeroGradientFvPatchScalarField::typeName fvPatchFieldBase::zeroGradientType()
), ),
sigma_ sigma_
( (
@ -496,7 +496,7 @@ kinematicSingleLayer::kinematicSingleLayer
), ),
regionMesh(), regionMesh(),
dimensionedScalar(dimMass/sqr(dimTime), Zero), dimensionedScalar(dimMass/sqr(dimTime), Zero),
zeroGradientFvPatchScalarField::typeName fvPatchFieldBase::zeroGradientType()
), ),
delta_ delta_
@ -523,7 +523,7 @@ kinematicSingleLayer::kinematicSingleLayer
), ),
regionMesh(), regionMesh(),
dimensionedScalar(dimless, Zero), dimensionedScalar(dimless, Zero),
zeroGradientFvPatchScalarField::typeName fvPatchFieldBase::zeroGradientType()
), ),
U_ U_
( (
@ -548,7 +548,7 @@ kinematicSingleLayer::kinematicSingleLayer
IOobject::NO_WRITE IOobject::NO_WRITE
), ),
U_, U_,
zeroGradientFvPatchScalarField::typeName fvPatchFieldBase::zeroGradientType()
), ),
Uw_ Uw_
( (
@ -561,7 +561,7 @@ kinematicSingleLayer::kinematicSingleLayer
IOobject::NO_WRITE IOobject::NO_WRITE
), ),
U_, U_,
zeroGradientFvPatchScalarField::typeName fvPatchFieldBase::zeroGradientType()
), ),
deltaRho_ deltaRho_
( (
@ -575,7 +575,7 @@ kinematicSingleLayer::kinematicSingleLayer
), ),
regionMesh(), regionMesh(),
dimensionedScalar(delta_.dimensions()*rho_.dimensions(), Zero), dimensionedScalar(delta_.dimensions()*rho_.dimensions(), Zero),
zeroGradientFvPatchScalarField::typeName fvPatchFieldBase::zeroGradientType()
), ),
phi_ phi_
@ -604,7 +604,7 @@ kinematicSingleLayer::kinematicSingleLayer
), ),
regionMesh(), regionMesh(),
dimensionedScalar(dimMass, Zero), dimensionedScalar(dimMass, Zero),
zeroGradientFvPatchScalarField::typeName fvPatchFieldBase::zeroGradientType()
), ),
cloudMassTrans_ cloudMassTrans_
( (
@ -618,7 +618,7 @@ kinematicSingleLayer::kinematicSingleLayer
), ),
regionMesh(), regionMesh(),
dimensionedScalar(dimMass, Zero), dimensionedScalar(dimMass, Zero),
zeroGradientFvPatchScalarField::typeName fvPatchFieldBase::zeroGradientType()
), ),
cloudDiameterTrans_ cloudDiameterTrans_
( (
@ -632,7 +632,7 @@ kinematicSingleLayer::kinematicSingleLayer
), ),
regionMesh(), regionMesh(),
dimensionedScalar("minus1", dimLength, -1.0), dimensionedScalar("minus1", dimLength, -1.0),
zeroGradientFvPatchScalarField::typeName fvPatchFieldBase::zeroGradientType()
), ),
USp_ USp_

View File

@ -204,11 +204,13 @@ tmp<scalarField> curvatureSeparation::calcCosAngle
"cosAngle", "cosAngle",
mesh.time().timeName(), mesh.time().timeName(),
mesh, mesh,
IOobject::NO_READ IOobject::NO_READ,
IOobject::NO_WRITE,
IOobject::NO_REGISTER
), ),
mesh, mesh,
dimensionedScalar(dimless, Zero), dimensionedScalar(dimless, Zero),
zeroGradientFvPatchScalarField::typeName fvPatchFieldBase::zeroGradientType()
); );
volCosAngle.primitiveFieldRef() = cosAngle; volCosAngle.primitiveFieldRef() = cosAngle;
volCosAngle.correctBoundaryConditions(); volCosAngle.correctBoundaryConditions();
@ -346,11 +348,13 @@ void curvatureSeparation::correct
"Fnet", "Fnet",
mesh.time().timeName(), mesh.time().timeName(),
mesh, mesh,
IOobject::NO_READ IOobject::NO_READ,
IOobject::NO_WRITE,
IOobject::NO_REGISTER
), ),
mesh, mesh,
dimensionedScalar(dimForce, Zero), dimensionedScalar(dimForce, Zero),
zeroGradientFvPatchScalarField::typeName fvPatchFieldBase::zeroGradientType()
); );
volFnet.primitiveFieldRef() = Fnet; volFnet.primitiveFieldRef() = Fnet;
volFnet.correctBoundaryConditions(); volFnet.correctBoundaryConditions();

View File

@ -85,7 +85,7 @@ standardRadiation::standardRadiation
), ),
film.regionMesh(), film.regionMesh(),
dimensionedScalar(dimMass/pow3(dimTime), Zero), dimensionedScalar(dimMass/pow3(dimTime), Zero),
zeroGradientFvPatchScalarField::typeName fvPatchFieldBase::zeroGradientType()
), ),
beta_(coeffDict_.get<scalar>("beta")), beta_(coeffDict_.get<scalar>("beta")),
kappaBar_(coeffDict_.get<scalar>("kappaBar")) kappaBar_(coeffDict_.get<scalar>("kappaBar"))

View File

@ -126,7 +126,7 @@ waxSolventViscosity::waxSolventViscosity
), ),
film.regionMesh(), film.regionMesh(),
dimensionedScalar(dimDynamicViscosity, Zero), dimensionedScalar(dimDynamicViscosity, Zero),
zeroGradientFvPatchScalarField::typeName fvPatchFieldBase::zeroGradientType()
), ),
muWaxModel_ muWaxModel_
( (
@ -149,7 +149,7 @@ waxSolventViscosity::waxSolventViscosity
), ),
film.regionMesh(), film.regionMesh(),
dimensionedScalar(dimDynamicViscosity, Zero), dimensionedScalar(dimDynamicViscosity, Zero),
zeroGradientFvPatchScalarField::typeName fvPatchFieldBase::zeroGradientType()
), ),
muSolventModel_ muSolventModel_
( (

View File

@ -83,7 +83,7 @@ solidification::solidification
), ),
film.regionMesh(), film.regionMesh(),
dimensionedScalar(dimMass, Zero), dimensionedScalar(dimMass, Zero),
zeroGradientFvPatchScalarField::typeName fvPatchFieldBase::zeroGradientType()
), ),
thickness_ thickness_
( (
@ -97,7 +97,7 @@ solidification::solidification
), ),
film.regionMesh(), film.regionMesh(),
dimensionedScalar(dimLength, Zero), dimensionedScalar(dimLength, Zero),
zeroGradientFvPatchScalarField::typeName fvPatchFieldBase::zeroGradientType()
) )
{} {}

View File

@ -331,7 +331,7 @@ thermoSingleLayer::thermoSingleLayer
), ),
regionMesh(), regionMesh(),
dimensionedScalar(dimEnergy/dimMass/dimTemperature, Zero), dimensionedScalar(dimEnergy/dimMass/dimTemperature, Zero),
zeroGradientFvPatchScalarField::typeName fvPatchFieldBase::zeroGradientType()
), ),
kappa_ kappa_
( (
@ -345,7 +345,7 @@ thermoSingleLayer::thermoSingleLayer
), ),
regionMesh(), regionMesh(),
dimensionedScalar(dimEnergy/dimTime/dimLength/dimTemperature, Zero), dimensionedScalar(dimEnergy/dimTime/dimLength/dimTemperature, Zero),
zeroGradientFvPatchScalarField::typeName fvPatchFieldBase::zeroGradientType()
), ),
T_ T_
@ -371,7 +371,7 @@ thermoSingleLayer::thermoSingleLayer
IOobject::NO_WRITE IOobject::NO_WRITE
), ),
T_, T_,
zeroGradientFvPatchScalarField::typeName fvPatchFieldBase::zeroGradientType()
), ),
Tw_ Tw_
( (
@ -384,7 +384,7 @@ thermoSingleLayer::thermoSingleLayer
IOobject::NO_WRITE IOobject::NO_WRITE
), ),
T_, T_,
zeroGradientFvPatchScalarField::typeName fvPatchFieldBase::zeroGradientType()
), ),
hs_ hs_
( (
@ -413,7 +413,7 @@ thermoSingleLayer::thermoSingleLayer
), ),
regionMesh(), regionMesh(),
dimensionedScalar(dimEnergy, Zero), dimensionedScalar(dimEnergy, Zero),
zeroGradientFvPatchScalarField::typeName fvPatchFieldBase::zeroGradientType()
), ),
deltaWet_(coeffs_.get<scalar>("deltaWet")), deltaWet_(coeffs_.get<scalar>("deltaWet")),