josie.general.schemes package

Submodules

josie.general.schemes.source module

class josie.general.schemes.source.ConstantSource(problem)

Bases: josie.scheme.source.SourceScheme

A mixing that provides the approximation of the source term as a constant value computed at the centroid of the cell.

\numSource \sim \abs{\pdeSource}_i V_i

accumulate(cells, neighs, t)

We do not use the accumulate() method to put source contribution into the fluxes but we do in in pre_accumulate(), because we do not need to do it for each face of the cell

Return type

State

pre_accumulate(cells, t)

We add the source term flux here since we just need cell info and not neighbours info

Parameters
  • cells (MeshCellSet) – A MeshCellSet containing the state of the mesh cells

  • t (float) – The current time instant

s(cells, neighs, t)

Use volume_s() instead

Return type

State

volume_s(cells, t)

The source flux computed only for the cells, without taking into consideration the neighbours since they’re not needed

Return type

State

Module contents