Simulation

The modules defining the physics process and the numerical methods are:

  1. solvcon.parcel.gas.case
  2. solvcon.parcel.gas.solver

case

class solvcon.parcel.gas.case.GasCase(**kw)

Temporal loop for the gas-dynamic solver.

Inheritance diagram of GasCase

solver

class solvcon.parcel.gas.solver.GasSolver(blk, **kw)

Spatial loops for the gas-dynamics solver.

Inheritance diagram of GasSolver
__init__(blk, **kw)

Create a _algorithm.GasAlgorithm object.

>>> # create a valid solver as the test fixture.
>>> from solvcon.testing import create_trivial_2d_blk
>>> blk = create_trivial_2d_blk()
>>> blk.clgrp.fill(0)
>>> blk.grpnames.append('blank')
>>> class SubSolver(GasSolver):
...     pass
>>> svr = SubSolver(blk)
>>> # number of equations.
>>> svr.neq
4
>>> # valid GasAlgorithm.
>>> svr.alg is not None
True