Skip to main content

hydrogym.firedrake.utils.modeling

petsc_to_scipy

def petsc_to_scipy(petsc_mat)

Convert the PETSc matrix to a scipy CSR matrix

system_to_scipy

def system_to_scipy(sys)

Convert the LTI system tuple (A, M, B) to scipy/numpy arrays

snapshots_to_numpy

@ignore_deprecation_warnings
def snapshots_to_numpy(flow, filename, save_prefix, m)

Load from CheckpointFile in filename and project to the mesh in flow