sailfish.solvers.srhd_2d.Patch
- class sailfish.solvers.srhd_2d.Patch(setup, physics, time, conserved, mesh, index_range, num_first_order_zones, lib, xp, execution_context)[source]
Bases:
object
Buffers for the solution on a subset of the solution domain.
This class also takes care of generating initial conditions if needed, and issuing calls to the solver kernel functions.
- __init__(setup, physics, time, conserved, mesh, index_range, num_first_order_zones, lib, xp, execution_context)[source]
Methods
__init__
(setup, physics, time, conserved, ...)advance_rk
(rk_param, dt)maximum_wavespeed
()new_iteration
()recompute_primitive
()Attributes
conserved
primitive
scale_factor