josie.general.schemes package¶
Subpackages¶
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.
- accumulate(cells, neighs, t)¶
We do not use the
accumulate()
method to put source contribution into the fluxes but we do in inpre_accumulate()
, because we do not need to do it for each face of the cell- Return type
- 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 cellst (float) – The current time instant
- s(cells, neighs, t)¶
Use
volume_s()
instead- Return type