ENH: distinguish between compressible/incompressible coded source

- previously had codeAddSup used for both incompressible and
  compressible source terms. However, it was not actually possible to
  use it for compressible sources since any references to the 'rho'
  parameter would cause a compilation error for the incompressible case.

  Added 'codeAddSupRho' to distinguish the compressible case.
  User must supply one or both of them on input.
This commit is contained in:
Mark Olesen
2021-10-25 16:01:18 +02:00
parent 8638d82325
commit fd82f3e47a
6 changed files with 66 additions and 10 deletions

View File

@ -35,7 +35,14 @@ Description
codeAddSup
(
fvMatrix<Type}>& eqn,
fvMatrix<Type>& eqn,
const label fieldi
)
codeAddSupRho
(
const volScalarField& rho,
fvMatrix<Type>& eqn,
const label fieldi
)