Reconstruction
#
homemade_conslaws.Reconstruction
— Type.
Reconstruction
Determines how to reconstruct the solution at the cell interfaces from the cell averages.
Dispatch functions
An implementation of Reconstruction
should provide the following functions:
#
homemade_conslaws.reconstruct
— Function.
reconstruct(::Reconstruction, ::Grid, cell_averages)
Returns the left and right reconstructed values at the cell interfaces, of the same shape as cell_averages
.
Implementations
No reconstruction
#
homemade_conslaws.NoReconstruction
— Type.
NoReconstruction
Zeroth order reconstruction, i.e. the cell averages are used as the left and right values at the cell interfaces.
Linear reconstruction
#
homemade_conslaws.LinearReconstruction
— Type.
LinearReconstruction{Cells}
Second order reconstruction using the minmod slope. Preallocates buffers for the left and right reconstructed values.