Skip to content

Reconstruction

# homemade_conslaws.ReconstructionType.

Reconstruction

Determines how to reconstruct the solution at the cell interfaces from the cell averages.

source

Dispatch functions

An implementation of Reconstruction should provide the following functions:

# homemade_conslaws.reconstructFunction.

reconstruct(::Reconstruction, ::Grid, cell_averages)

Returns the left and right reconstructed values at the cell interfaces, of the same shape as cell_averages.

source

Implementations

No reconstruction

# homemade_conslaws.NoReconstructionType.

NoReconstruction

Zeroth order reconstruction, i.e. the cell averages are used as the left and right values at the cell interfaces.

source


Linear reconstruction

# homemade_conslaws.LinearReconstructionType.

LinearReconstruction{Cells}

Second order reconstruction using the minmod slope. Preallocates buffers for the left and right reconstructed values.

source