diff --git a/src/twoPhaseModels/twoPhaseChange/cavitation/cavitationModel/cavitationModel.C b/src/twoPhaseModels/twoPhaseChange/cavitation/cavitationModel/cavitationModel.C index a64bb4e948..827b659465 100644 --- a/src/twoPhaseModels/twoPhaseChange/cavitation/cavitationModel/cavitationModel.C +++ b/src/twoPhaseModels/twoPhaseChange/cavitation/cavitationModel/cavitationModel.C @@ -88,8 +88,8 @@ Foam::twoPhaseChangeModels::cavitationModel::Sp_rgh dimensionedScalar pCoeff(1.0/mixture_.rho1() - 1.0/mixture_.rho2()); Pair> mDotP = this->mDotP(); - const volScalarField vDotcP = pCoeff*mDotP[0]; - const volScalarField vDotvP = pCoeff*mDotP[1]; + const volScalarField vDotcP(pCoeff*mDotP[0]); + const volScalarField vDotvP(pCoeff*mDotP[1]); return (vDotvP - vDotcP)*(pSat() - rho*gh) diff --git a/src/twoPhaseModels/twoPhaseMixture/noInterfaceCompression/noInterfaceCompression.H b/src/twoPhaseModels/twoPhaseMixture/noInterfaceCompression/noInterfaceCompression.H index d84c490ee5..d6c3ec7d67 100644 --- a/src/twoPhaseModels/twoPhaseMixture/noInterfaceCompression/noInterfaceCompression.H +++ b/src/twoPhaseModels/twoPhaseMixture/noInterfaceCompression/noInterfaceCompression.H @@ -70,8 +70,6 @@ class noInterfaceCompressionNew { // Private member data - const surfaceScalarField& phi_; - //- Base scheme to which the compression is applied tmp> tScheme_; @@ -93,7 +91,6 @@ public: ) : surfaceInterpolationScheme(mesh), - phi_(faceFlux), tScheme_ ( surfaceInterpolationScheme::New(mesh, faceFlux, is)