fvOptions: Correct handling of density and add multiphase support

This commit is contained in:
Henry
2014-05-08 11:44:40 +01:00
committed by Andrew Heather
parent 929a7a1c2d
commit 603b3e65b2
33 changed files with 980 additions and 389 deletions

View File

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