Piecewise linear spatial reconstruction.
More...
#include <plm1d.hpp>
|
| PLM1D (bool second_order_time=false, bool slope_limiter_flag=true) |
| Class constructor. More...
|
|
Primitive | operator() (vector< double > const &vp, vector< Primitive > const &hv, double interface_speed, size_t i, int dir, double dt) const |
| Returns the hydrodynamic state on the left or the right side of the interface position (=vertexes). More...
|
|
Piecewise linear spatial reconstruction.
Definition at line 13 of file plm1d.hpp.
◆ PLM1D()
PLM1D::PLM1D |
( |
bool |
second_order_time = false , |
|
|
bool |
slope_limiter_flag = true |
|
) |
| |
Class constructor.
- Parameters
-
second_order_time | Toggles using characteristic decomposition to achieve second order in time |
slope_limiter_flag | Toggles slope limiters |
Definition at line 69 of file plm1d.cpp.
◆ operator()()
Primitive PLM1D::operator() |
( |
vector< double > const & |
vp, |
|
|
vector< Primitive > const & |
hv, |
|
|
double |
interface_speed, |
|
|
size_t |
i, |
|
|
int |
dir, |
|
|
double |
dt |
|
) |
| const |
|
virtual |
Returns the hydrodynamic state on the left or the right side of the interface position (=vertexes).
- Parameters
-
vp | Pointer to vertex positions |
hv | Pointer to hydrodynamic variables |
i | Vertex index |
interface_speed | Speed of the interface between cells |
dir | Direction (0 for left of the boundary, 1 for right ofthe boundary) *** ( positive direction is from the left to the right). |
dt | Time step |
- Returns
- Hydrodynamic variables on the left or right side of the interface
Implements SpatialReconstruction1D.
Definition at line 75 of file plm1d.cpp.
The documentation for this class was generated from the following files: