Callback¶
Useful callbacks are included in:
physics¶
-
class
solvcon.parcel.gas.physics.DensityInitAnchor(svr, **kw)¶ Initialize only density.
FIXME: Give me doctests.
inout¶
-
class
solvcon.parcel.gas.inout.MeshInfoHook(cse, show_bclist=False, perffn=None, **kw)¶ Print mesh information.
-
class
solvcon.parcel.gas.inout.ProgressHook(cse, linewidth=50, **kw)¶ Print simulation progess.
-
class
solvcon.parcel.gas.inout.FillAnchor(svr, mappers=None, **kw)¶ Fill the specified arrays of a
GasSolverwith corresponding value.
-
class
solvcon.parcel.gas.inout.CflAnchor(svr, rsteps=None, **kw)¶ Counting CFL numbers. Use
MeshSolver.marchretto return results. Overridespostmarch()method.Pair with
CflHook.
-
__init__(svr, rsteps=None, **kw)¶ >>> from solvcon.testing import create_trivial_2d_blk >>> from solvcon.solver import MeshSolver >>> svr = MeshSolver(create_trivial_2d_blk()) >>> ank = CflAnchor(svr) Traceback (most recent call last): ... TypeError: int() argument must be a string... >>> ank = CflAnchor(svr, 1) >>> ank.rsteps 1
-
-
class
solvcon.parcel.gas.inout.CflHook(cse, name='cfl', cflmin=0.0, cflmax=1.0, fullstop=True, rsteps=None, **kw)¶ Makes sure CFL number is bounded and print averaged CFL number over time. Reports CFL information per time step and on finishing. Overrides (i)
postmarch()and (ii)postloop()methods.Pair with
CflAnchor.
-
class
solvcon.parcel.gas.inout.MarchSaveAnchor(svr, anames=None, compressor=None, fpdtype=None, psteps=None, vtkfn_tmpl=None, **kw)¶ Save solution data into VTK XML format for a solver.
-
class
solvcon.parcel.gas.inout.PMarchSave(cse, anames=None, compressor='gz', fpdtype=None, altdir='', altsym='', vtkfn_tmpl=None, **kw)¶ Save the geometry and variables in a case when time marching in parallel VTK XML format.