CppNoddy
0.92
|
Define the system. More...
Public Member Functions | |
NlinAdv () | |
One dimemsional inviscid Burgers problem. More... | |
void | flux_fn (const double &x, const DenseVector< double > &q, DenseVector< double > &f) const |
Define the vector flux. More... | |
double | max_charac_speed (const DenseVector< double > &q) const |
Bound the shock speed. More... | |
std::vector< bool > | edge_values (const int face_index, const double &x, DenseVector< double > &q, const double &t) const |
Define the edge boundary conditions. More... | |
NlinAdv () | |
Two dimemsional scalar linear advection problem. More... | |
void | flux_fn_x (const DenseVector< double > &x, const DenseVector< double > &q, DenseVector< double > &f) const |
A virtual flux function for the x-derivative. More... | |
void | flux_fn_y (const DenseVector< double > &x, const DenseVector< double > &q, DenseVector< double > &f) const |
A virtual flux function for the y-derivative. More... | |
void | max_charac_speed (const DenseVector< double > &x, const DenseVector< double > &q, DenseVector< double > &c) const |
Bound the wave speed. More... | |
NlinAdv () | |
void | flux_fn_x (const DenseVector< double > &x, const DenseVector< double > &q, DenseVector< double > &f) const |
A virtual flux function for the x-derivative. More... | |
void | flux_fn_y (const DenseVector< double > &x, const DenseVector< double > &q, DenseVector< double > &f) const |
A virtual flux function for the y-derivative. More... | |
void | max_charac_speed (const DenseVector< double > &x, const DenseVector< double > &q, DenseVector< double > &c) const |
Bound the wave speed. More... | |
std::vector< bool > | edge_values (const int &face_index, const DenseVector< double > &x, DenseVector< double > &q) const |
edge conditions More... | |
NlinAdv () | |
One dimemsional inviscid Burgers problem. More... | |
void | flux_fn_y (const DenseVector< double > &x, const DenseVector< double > &q, DenseVector< double > &f) const |
Define the vector flux. More... | |
void | flux_fn_x (const DenseVector< double > &x, const DenseVector< double > &q, DenseVector< double > &f) const |
A virtual flux function for the x-derivative. More... | |
void | max_charac_speed (const DenseVector< double > &x, const DenseVector< double > &q, DenseVector< double > &c) const |
Bound the wave speed. More... | |
std::vector< bool > | edge_values (const int &face_index, const DenseVector< double > &x, DenseVector< double > &q) const |
Define the edge boundary conditions. More... | |
NlinAdv () | |
One dimemsional inviscid Burgers problem. More... | |
void | flux_fn_x (const DenseVector< double > &x, const DenseVector< double > &q, DenseVector< double > &f) const |
A virtual flux function for the x-derivative. More... | |
void | flux_fn_y (const DenseVector< double > &x, const DenseVector< double > &q, DenseVector< double > &f) const |
A virtual flux function for the y-derivative. More... | |
void | max_charac_speed (const DenseVector< double > &x, const DenseVector< double > &q, DenseVector< double > &c) const |
Bound the wave speed. More... | |
std::vector< bool > | edge_values (const int &face_index, const DenseVector< double > &x, DenseVector< double > &q) const |
Define the edge boundary conditions. More... | |
![]() | |
OneD_Hyperbolic_System (const unsigned &order) | |
virtual | ~OneD_Hyperbolic_System () |
An empty destructor, virtual since we have virtual methods. More... | |
virtual void | flux_fn (const double &x, const DenseVector< double > &q, DenseVector< double > &f) const |
A virtual flux function. More... | |
virtual void | Jac_flux_fn (const double &x, const DenseVector< double > &q, DenseMatrix< double > &J) const |
A virtual function function to define the Jacobian of the flux function. More... | |
virtual double | max_charac_speed (const DenseVector< double > &q) const |
A virtual method that is used to bound the shock speed and must be implemented by the user. More... | |
virtual bool_vec | edge_values (const int face_index, const double &x, DenseVector< double > &q, const double &t=0.0) const |
Define the edge boundary conditions. More... | |
virtual void | source_fn (const double &x, const DenseVector< double > &q, const DenseVector< double > &slope, DenseVector< double > &r) const |
unsigned | get_order () |
![]() | |
TwoD_Hyperbolic_System (const unsigned &order) | |
virtual | ~TwoD_Hyperbolic_System () |
An empty destructor, virtual since we have virtual methods. More... | |
virtual void | flux_fn_x (const DenseVector< double > &x, const DenseVector< double > &q, DenseVector< double > &f) const |
A virtual flux function for the x-derivative. More... | |
virtual void | flux_fn_y (const DenseVector< double > &x, const DenseVector< double > &q, DenseVector< double > &f) const |
A virtual flux function for the y-derivative. More... | |
virtual void | Jac_flux_fn_x (const DenseVector< double > &x, const DenseVector< double > &q, DenseMatrix< double > &J) const |
A virtual function function to define the Jacobian of the x-flux function. More... | |
virtual void | Jac_flux_fn_y (const DenseVector< double > &x, const DenseVector< double > &q, DenseMatrix< double > &J) const |
A virtual function function to define the Jacobian of the y-flux function. More... | |
virtual void | max_charac_speed (const DenseVector< double > &x, const DenseVector< double > &q, DenseVector< double > &c) const |
A virtual method that is used to bound the characteristic speed in both directions. More... | |
virtual std::vector< bool > | edge_values (const int &face_index, const DenseVector< double > &x, DenseVector< double > &q) const |
Define the edge boundary conditions. More... | |
virtual void | edge_slopes (const int &face_index, const DenseVector< double > &x, DenseVector< double > &sigma_n) const |
Define the edge boundary condition slopes. More... | |
virtual void | source_fn (const DenseVector< double > &x, const DenseVector< double > &q, DenseVector< double > &r) const |
unsigned | get_order () |
Additional Inherited Members | |
![]() | |
const std::size_t | ORDER_OF_SYSTEM |
The order of the system of equations. More... | |
![]() | |
const unsigned | ORDER_OF_SYSTEM |
The order of the system of equations. More... | |
Define the system.
Definition at line 17 of file HYPNonlinearAdvection.cpp.
|
inline |
One dimemsional inviscid Burgers problem.
Definition at line 23 of file HYPNonlinearAdvection.cpp.
|
inline |
Two dimemsional scalar linear advection problem.
Definition at line 23 of file HYP2DLinearAdvectionXY.cpp.
|
inline |
Definition at line 22 of file HYP2DNonlinearAdvectionX.cpp.
|
inline |
One dimemsional inviscid Burgers problem.
Definition at line 22 of file HYP2DNonlinearAdvectionXY.cpp.
|
inline |
One dimemsional inviscid Burgers problem.
Definition at line 23 of file HYP2DNonlinearAdvectionY.cpp.
|
inlinevirtual |
edge conditions
Reimplemented from CppNoddy::TwoD_Hyperbolic_System.
Definition at line 44 of file HYP2DNonlinearAdvectionX.cpp.
References CppNoddy::DenseVector< _Type >::size().
|
inlinevirtual |
Define the edge boundary conditions.
face_index | An index for the face: 0,1,2,3 for S,E,N,W on the TwoD_TVDLF_Mesh |
x | The global position vector |
q | Specify the unknowns specified along the face |
Reimplemented from CppNoddy::TwoD_Hyperbolic_System.
Definition at line 44 of file HYP2DNonlinearAdvectionXY.cpp.
References CppNoddy::DenseVector< _Type >::size().
|
inlinevirtual |
Define the edge boundary conditions.
face_index | An index for the face: 0,1,2,3 for S,E,N,W on the TwoD_TVDLF_Mesh |
x | The global position vector |
q | Specify the unknowns specified along the face |
Reimplemented from CppNoddy::TwoD_Hyperbolic_System.
Definition at line 45 of file HYP2DNonlinearAdvectionY.cpp.
References CppNoddy::DenseVector< _Type >::size().
|
inlinevirtual |
Define the edge boundary conditions.
face_index | An index for the face: -1=left +1=right for OneD_TVDLF_Mesh |
x | The position vector along the face |
q | The unknowns specified along the face |
t | A time for unsteady edge conditions |
Reimplemented from CppNoddy::OneD_Hyperbolic_System.
Definition at line 40 of file HYPNonlinearAdvection.cpp.
References CppNoddy::DenseVector< _Type >::size().
|
inlinevirtual |
Define the vector flux.
Reimplemented from CppNoddy::OneD_Hyperbolic_System.
Definition at line 27 of file HYPNonlinearAdvection.cpp.
References f.
|
inlinevirtual |
A virtual flux function for the x-derivative.
x | The vector position |
q | The unknowns |
f | The flux function |
Reimplemented from CppNoddy::TwoD_Hyperbolic_System.
Definition at line 26 of file HYP2DLinearAdvectionXY.cpp.
References f.
|
inlinevirtual |
A virtual flux function for the x-derivative.
x | The vector position |
q | The unknowns |
f | The flux function |
Reimplemented from CppNoddy::TwoD_Hyperbolic_System.
Definition at line 25 of file HYP2DNonlinearAdvectionX.cpp.
References f.
|
inlinevirtual |
A virtual flux function for the x-derivative.
x | The vector position |
q | The unknowns |
f | The flux function |
Reimplemented from CppNoddy::TwoD_Hyperbolic_System.
Definition at line 31 of file HYP2DNonlinearAdvectionXY.cpp.
References f.
|
inlinevirtual |
A virtual flux function for the x-derivative.
x | The vector position |
q | The unknowns |
f | The flux function |
Reimplemented from CppNoddy::TwoD_Hyperbolic_System.
Definition at line 26 of file HYP2DNonlinearAdvectionY.cpp.
References f.
|
inlinevirtual |
A virtual flux function for the y-derivative.
x | The vector position |
q | The unknowns |
f | The flux function |
Reimplemented from CppNoddy::TwoD_Hyperbolic_System.
Definition at line 31 of file HYP2DLinearAdvectionXY.cpp.
References f.
|
inlinevirtual |
A virtual flux function for the y-derivative.
x | The vector position |
q | The unknowns |
f | The flux function |
Reimplemented from CppNoddy::TwoD_Hyperbolic_System.
Definition at line 30 of file HYP2DNonlinearAdvectionX.cpp.
References f.
|
inlinevirtual |
Define the vector flux.
Reimplemented from CppNoddy::TwoD_Hyperbolic_System.
Definition at line 26 of file HYP2DNonlinearAdvectionXY.cpp.
References f.
|
inlinevirtual |
A virtual flux function for the y-derivative.
x | The vector position |
q | The unknowns |
f | The flux function |
Reimplemented from CppNoddy::TwoD_Hyperbolic_System.
Definition at line 31 of file HYP2DNonlinearAdvectionY.cpp.
References f.
|
inlinevirtual |
Bound the shock speed.
Reimplemented from CppNoddy::OneD_Hyperbolic_System.
Definition at line 33 of file HYPNonlinearAdvection.cpp.
|
inlinevirtual |
Bound the wave speed.
Reimplemented from CppNoddy::TwoD_Hyperbolic_System.
Definition at line 37 of file HYP2DLinearAdvectionXY.cpp.
|
inlinevirtual |
Bound the wave speed.
Reimplemented from CppNoddy::TwoD_Hyperbolic_System.
Definition at line 36 of file HYP2DNonlinearAdvectionX.cpp.
|
inlinevirtual |
Bound the wave speed.
Reimplemented from CppNoddy::TwoD_Hyperbolic_System.
Definition at line 37 of file HYP2DNonlinearAdvectionXY.cpp.
|
inlinevirtual |
Bound the wave speed.
Reimplemented from CppNoddy::TwoD_Hyperbolic_System.
Definition at line 38 of file HYP2DNonlinearAdvectionY.cpp.
© 2012
R.E. Hewitt