sailfish.solvers.cbdgam_2d.Patch
- class sailfish.solvers.cbdgam_2d.Patch(time, primitive, mesh, index_range, physics, options, buffer_outer_radius, buffer_surface_density, buffer_surface_pressure, lib, xp, execution_context)[source]
Bases:
objectHolds the array buffer state for the solution on a subset of the solution domain.
- __init__(time, primitive, mesh, index_range, physics, options, buffer_outer_radius, buffer_surface_density, buffer_surface_pressure, lib, xp, execution_context)[source]
Methods
__init__(time, primitive, mesh, index_range, ...)advance_rk(rk_param, dt)maximum_wavespeed()new_iteration()point_mass_source_term(which_mass[, ...])recompute_conserved()Attributes
Return two 2d arrays, one with the cell-center X coordinates, and the other with the cell-center Y coordinates.
primitive- property cell_center_coordinate_arrays
Return two 2d arrays, one with the cell-center X coordinates, and the other with the cell-center Y coordinates. The arrays are either numpy or cupy arrays, allocated for the device this patch is assigned to.