darsia.FVMass#

class FVMass(grid, mode='cells', lumping=True)[source]#

Bases: object

Finite volume mass matrix.

The mass matrix can be formulated for cell and face quantities. For cell quantities, the mass matrix is diagonal and has the volume of the cells on the diagonal. For face quantities, the mass matrix is diagonal and has half the cell volumes on the diagonal, taking into accout itegration over te faces as lower dimensional entities, and the double occurrence of the faces in the integration over the cells.

Methods