fvOptions/.../codedSource: Corrected application of phase sources

This commit is contained in:
Will Bainbridge
2020-09-15 16:48:01 +01:00
parent aa8e4b407c
commit 861a955cc9
2 changed files with 30 additions and 0 deletions

View File

@ -210,6 +210,26 @@ void Foam::fv::CodedSource<Type>::addSup
}
template<class Type>
void Foam::fv::CodedSource<Type>::addSup
(
const volScalarField& alpha,
const volScalarField& rho,
fvMatrix<Type>& eqn,
const label fieldi
) const
{
if (debug)
{
Info<< "CodedSource<"<< pTraits<Type>::typeName
<< ">::addSup for source " << name_ << endl;
}
updateLibrary();
redirectFvOption().addSup(alpha, rho, eqn, fieldi);
}
template<class Type>
void Foam::fv::CodedSource<Type>::constrain
(

View File

@ -202,6 +202,16 @@ public:
const label fieldi
) const;
//- Explicit and implicit matrix contributions
// to phase equation
virtual void addSup
(
const volScalarField& alpha,
const volScalarField& rho,
fvMatrix<Type>& eqn,
const label fieldi
) const;
//- Set value
virtual void constrain
(