src/twoPhaseModels: Checked and updated for clang

This commit is contained in:
Henry Weller
2021-01-25 10:58:13 +00:00
parent e901e84eb2
commit 4e301e9227
2 changed files with 2 additions and 5 deletions

View File

@ -88,8 +88,8 @@ Foam::twoPhaseChangeModels::cavitationModel::Sp_rgh
dimensionedScalar pCoeff(1.0/mixture_.rho1() - 1.0/mixture_.rho2());
Pair<tmp<volScalarField>> 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)

View File

@ -70,8 +70,6 @@ class noInterfaceCompressionNew
{
// Private member data
const surfaceScalarField& phi_;
//- Base scheme to which the compression is applied
tmp<surfaceInterpolationScheme<scalar>> tScheme_;
@ -93,7 +91,6 @@ public:
)
:
surfaceInterpolationScheme<scalar>(mesh),
phi_(faceFlux),
tScheme_
(
surfaceInterpolationScheme<scalar>::New(mesh, faceFlux, is)