lasdi.physics

Submodules

Classes

Physics

OfflineFOM

Package Contents

class lasdi.physics.Physics(cfg, param_name=None)
dim
qdim
grid_size = []
qgrid_size = []

numpy nd-array, assuming the shape of: - 1d: (space_dim[0],) - 2d: (2, space_dim[0], space_dim[1]) - 3d: (3, space_dim[0], space_dim[1], space_dim[2]) - higher dimension…

x_grid
nt
dt
t_grid
offline = False
param_name = None
initial_condition(param)
solve(param)
export()
generate_solutions(params)

Given 2d-array of params, generate solutions of size params.shape[0]. params.shape[1] must match the required size of parameters for the specific physics.

residual(Xhist)
class lasdi.physics.OfflineFOM(cfg, param_name=None)

Bases: Physics

offline = True
parser
dim
qdim
grid_size
qgrid_size

numpy nd-array, assuming the shape of: - 1d: (space_dim[0],) - 2d: (2, space_dim[0], space_dim[1]) - 3d: (3, space_dim[0], space_dim[1], space_dim[2]) - higher dimension…

x_grid = None
nt
dt
t_grid
generate_solutions(params)

Given 2d-array of params, generate solutions of size params.shape[0]. params.shape[1] must match the required size of parameters for the specific physics.

export()