fvSpecificSource: Bug fixes

This commit is contained in:
Will Bainbridge
2023-12-14 11:24:13 +00:00
parent b9fe7df344
commit 99f872337e
2 changed files with 3 additions and 3 deletions

View File

@ -63,7 +63,7 @@ void Foam::fvSpecificSource::addSupType
);
// Apply the source
eqn += tS()*sourceCoeff + fvm::Sp(tS()*internalCoeff, eqn().psi());
eqn += tS()*sourceCoeff + fvm::Sp(tS()*internalCoeff, eqn.psi());
}
else
{

View File

@ -123,7 +123,7 @@ void Foam::fv::massTransferBase::addSupType
{
fvMatrix<Type> rhoEqn(eqn.psi(), dimDensity*eqn.dimensions());
fvSpecificSource::addSup(alphaOrRho, field, rhoEqn);
fvSpecificSource::addSupType(alphaOrRho, field, rhoEqn);
eqn += rhoEqn/rho(i);
}
@ -197,7 +197,7 @@ void Foam::fv::massTransferBase::addSupType
// require a field source specification.
else
{
fvSpecificSource::addSup(alpha, rho, field, eqn);
fvSpecificSource::addSupType(alpha, rho, field, eqn);
}
}
// Not recognised. Fail.