CppNoddy
0.92
|
A templated object for real/complex vector system of unsteady equations. More...
#include <PDE_IBVP.h>
Public Member Functions | |
PDE_IBVP (Equation_2matrix< _Type > *equation_ptr, const DenseVector< double > &nodes, Residual_with_coords< _Type > *ptr_to_left_residual, Residual_with_coords< _Type > *ptr_to_right_residual) | |
The class is defined by a vector function for the system. More... | |
~PDE_IBVP () | |
Destructor. More... | |
void | step2 (const double &dt) |
A Crank-Nicolson 'time' stepper. More... | |
void | assemble_matrix_problem (BandedMatrix< _Type > &a, DenseVector< _Type > &b, const double &dt) |
Assembles the matrix problem for a BVP solve at the current time level. More... | |
double & | coord () |
Return a reference to the current value of the 'timelike/parabolic' coordinate. More... | |
OneD_Node_Mesh< _Type > & | solution () |
OneD_Node_Mesh< _Type > & | previous_solution () |
double & | tolerance () |
Access method to the tolerance. More... | |
int & | max_itns () |
Access method to the maximum number of iterations. More... | |
Equation_2matrix< _Type > * | get_p_equation () |
Residual_with_coords< _Type > * | get_p_left () |
Residual_with_coords< _Type > * | get_p_right () |
A templated object for real/complex vector system of unsteady equations.
Definition at line 37 of file PDE_IBVP.h.
CppNoddy::PDE_IBVP< _Type >::PDE_IBVP | ( | Equation_2matrix< _Type > * | equation_ptr, |
const DenseVector< double > & | nodes, | ||
Residual_with_coords< _Type > * | ptr_to_left_residual, | ||
Residual_with_coords< _Type > * | ptr_to_right_residual | ||
) |
The class is defined by a vector function for the system.
equation_ptr | A pointer to an inherited Equation object. |
nodes | A vector that defines the nodal positions. |
ptr_to_left_residual | A pointer to a residual object that defines the LHS boundary conditions. |
ptr_to_right_residual | A pointer to a residual object that defines the RHS boundary conditions. |
Definition at line 34 of file PDE_IBVP.cpp.
References CppNoddy::PDE_IBVP< _Type >::coord().
CppNoddy::PDE_IBVP< _Type >::~PDE_IBVP |
Destructor.
Definition at line 61 of file PDE_IBVP.cpp.
void CppNoddy::PDE_IBVP< _Type >::assemble_matrix_problem | ( | BandedMatrix< _Type > & | a, |
DenseVector< _Type > & | b, | ||
const double & | dt | ||
) |
Assembles the matrix problem for a BVP solve at the current time level.
a | The LHS (banded) matrix. |
b | The RHS (dense) vector. |
dt | The 'time step' to be taken. |
Definition at line 143 of file PDE_IBVP.cpp.
References CppNoddy::BandedMatrix< _Type >::assign(), CppNoddy::Utility::dot(), CppNoddy::BandedMatrix< _Type >::get_elt_iter(), and CppNoddy::BandedMatrix< _Type >::noffdiag().
|
inline |
Return a reference to the current value of the 'timelike/parabolic' coordinate.
Definition at line 65 of file PDE_IBVP.h.
Referenced by main(), and CppNoddy::PDE_IBVP< _Type >::PDE_IBVP().
|
inline |
Definition at line 87 of file PDE_IBVP.h.
|
inline |
Definition at line 91 of file PDE_IBVP.h.
|
inline |
Definition at line 95 of file PDE_IBVP.h.
|
inline |
Access method to the maximum number of iterations.
Definition at line 83 of file PDE_IBVP.h.
|
inline |
Definition at line 132 of file PDE_IBVP.h.
|
inline |
Definition at line 127 of file PDE_IBVP.h.
Referenced by main().
void CppNoddy::PDE_IBVP< _Type >::step2 | ( | const double & | dt | ) |
A Crank-Nicolson 'time' stepper.
Definition at line 72 of file PDE_IBVP.cpp.
References CppNoddy::DenseVector< _Type >::inf_norm(), and CppNoddy::BandedLinearSystem< _Type >::solve().
Referenced by main().
|
inline |
Access method to the tolerance.
Definition at line 77 of file PDE_IBVP.h.
© 2012
R.E. Hewitt