diff --git a/src/TurbulenceModels/turbulenceModels/derivedFvPatchFields/wallFunctions/omegaWallFunctions/omegaWallFunction/omegaWallFunctionFvPatchScalarField.H b/src/TurbulenceModels/turbulenceModels/derivedFvPatchFields/wallFunctions/omegaWallFunctions/omegaWallFunction/omegaWallFunctionFvPatchScalarField.H index 1f022ff119a4b84794ee738c4c07c15a24da135d..00d259f25eecccaa1e9ecacb5a2040551eaae395 100644 --- a/src/TurbulenceModels/turbulenceModels/derivedFvPatchFields/wallFunctions/omegaWallFunctions/omegaWallFunction/omegaWallFunctionFvPatchScalarField.H +++ b/src/TurbulenceModels/turbulenceModels/derivedFvPatchFields/wallFunctions/omegaWallFunctions/omegaWallFunction/omegaWallFunctionFvPatchScalarField.H @@ -386,6 +386,9 @@ public: ); } + //- Destructor + virtual ~omegaWallFunctionFvPatchScalarField() = default; + // Member Functions diff --git a/src/atmosphericModels/derivedFvPatchFields/wallFunctions/atmEpsilonWallFunction/atmEpsilonWallFunctionFvPatchScalarField.H b/src/atmosphericModels/derivedFvPatchFields/wallFunctions/atmEpsilonWallFunction/atmEpsilonWallFunctionFvPatchScalarField.H index 16db3aae49f1503e01b937d72b726faa63f94b02..26e14fd1f3bfaf344060bd4afb1f87dd9f4cda83 100644 --- a/src/atmosphericModels/derivedFvPatchFields/wallFunctions/atmEpsilonWallFunction/atmEpsilonWallFunctionFvPatchScalarField.H +++ b/src/atmosphericModels/derivedFvPatchFields/wallFunctions/atmEpsilonWallFunction/atmEpsilonWallFunctionFvPatchScalarField.H @@ -129,7 +129,7 @@ protected: const fvPatch& patch, scalarField& G, scalarField& epsilon - ) override final; + ); public: @@ -200,6 +200,9 @@ public: ); } + //- Destructor + virtual ~atmEpsilonWallFunctionFvPatchScalarField() = default; + // Member Functions diff --git a/src/atmosphericModels/derivedFvPatchFields/wallFunctions/atmOmegaWallFunction/atmOmegaWallFunctionFvPatchScalarField.H b/src/atmosphericModels/derivedFvPatchFields/wallFunctions/atmOmegaWallFunction/atmOmegaWallFunctionFvPatchScalarField.H index 67b95f60e8c41f4db58f809e2f4e6ac8236b7142..2746392a0f09262a5dce13fe2552e9e352079ae2 100644 --- a/src/atmosphericModels/derivedFvPatchFields/wallFunctions/atmOmegaWallFunction/atmOmegaWallFunctionFvPatchScalarField.H +++ b/src/atmosphericModels/derivedFvPatchFields/wallFunctions/atmOmegaWallFunction/atmOmegaWallFunctionFvPatchScalarField.H @@ -127,7 +127,7 @@ protected: const fvPatch& patch, scalarField& G, scalarField& omega - ) override final; + ); public: @@ -199,6 +199,10 @@ public: } + //- Destructor + virtual ~atmOmegaWallFunctionFvPatchScalarField() = default; + + // Member Functions // Mapping functions @@ -217,7 +221,7 @@ public: // I-O //- Write - virtual void write(Ostream&) const override; + virtual void write(Ostream&) const; }; diff --git a/src/atmosphericModels/fvOptions/atmBuoyancyTurbSource/atmBuoyancyTurbSource.C b/src/atmosphericModels/fvOptions/atmBuoyancyTurbSource/atmBuoyancyTurbSource.C index afa1a1da720526dd6298d11e6b3ad81345eecf02..b1ed0588c1d2b61e17be106753242e94710b21c3 100644 --- a/src/atmosphericModels/fvOptions/atmBuoyancyTurbSource/atmBuoyancyTurbSource.C +++ b/src/atmosphericModels/fvOptions/atmBuoyancyTurbSource/atmBuoyancyTurbSource.C @@ -80,7 +80,7 @@ Foam::fv::atmBuoyancyTurbSource::calcC3 // (ARAL:Eq. 10), with a typo of (C2_) instead of using (C2_ - 1.0) volScalarField::Internal alphaB(1.0 - LbyLmax); - alphaB == + alphaB = neg0(Rig)*(1.0 - (1.0 + (C2_ - 1.0)/(C2_ - C1_))*LbyLmax) + pos(Rig)*(1.0 - LbyLmax); @@ -114,7 +114,7 @@ Foam::fv::atmBuoyancyTurbSource::calcC3 // (ARAL:Eq. 10) volScalarField::Internal alphaB(1.0 - LbyLmax); - alphaB == + alphaB = neg0(Rig)*(1.0 - (1.0 + beta/(beta - gamma))*LbyLmax) + pos(Rig)*(1.0 - LbyLmax);