lasdi.physics.burgers1d

Classes

Burgers1D

Functions

residual_burgers(un, uw, c, idxn1)

Compute 1D Burgers equation residual for generating the data

jacobian(u, c, idxn1, nx)

Compute 1D Burgers equation jacobian for generating the data

solver(u0, maxk, convergence_threshold, nt, nx, Dt, Dx)

Solves 1D Burgers equation for generating the data

main()

Module Contents

class lasdi.physics.burgers1d.Burgers1D(cfg, param_name=None)

Bases: lasdi.physics.Physics

a_idx = None
w_idx = None
qdim = 1
dim = 1
offline = False
nt = None
grid_size = None
qgrid_size = None

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…

xmin = None
xmax = None
dx
tmax = None
dt
x_grid
t_grid
maxk = 10
convergence_threshold = 1e-08
initial_condition(param)
solve(param)
export()
residual(Xhist)
lasdi.physics.burgers1d.residual_burgers(un, uw, c, idxn1)

Compute 1D Burgers equation residual for generating the data from https://github.com/LLNL/gLaSDI and https://github.com/LLNL/LaSDI

lasdi.physics.burgers1d.jacobian(u, c, idxn1, nx)

Compute 1D Burgers equation jacobian for generating the data from https://github.com/LLNL/gLaSDI and https://github.com/LLNL/LaSDI

lasdi.physics.burgers1d.solver(u0, maxk, convergence_threshold, nt, nx, Dt, Dx)

Solves 1D Burgers equation for generating the data from https://github.com/LLNL/gLaSDI and https://github.com/LLNL/LaSDI

lasdi.physics.burgers1d.main()