CppNoddy
0.92
|
Define the harmonic equation by inheriting the Equation base class. More...
Public Member Functions | |
Harmonic_equation () | |
The harmonic equation is a 2nd order ODE. More... | |
void | residual_fn (const DenseVector< _Type > &z, DenseVector< _Type > &g) const |
The Berman equation. More... | |
void | matrix0 (const DenseVector< _Type > &x, DenseMatrix< _Type > &m) const |
Define the matrix in terms of the current state vector. More... | |
Harmonic_equation () | |
The eqn is a 3rd order complex nonlinear ODE because the eigenvalue is an unknown. More... | |
void | residual_fn (const DenseVector< D_complex > &z, DenseVector< D_complex > &g) const |
Define the harmonic eqn. More... | |
void | matrix0 (const DenseVector< D_complex > &z, DenseMatrix< D_complex > &m) const |
matrix to multiply the BVP coordinate More... | |
Harmonic_equation () | |
The harmonic equation is 2nd order. More... | |
void | residual_fn (const DenseVector< double > &z, DenseVector< double > &f) const |
We implement the equation as 2 first-order ODEs. More... | |
![]() | |
Equation_1matrix (const unsigned &order) | |
Constructor for equation class. More... | |
virtual | ~Equation_1matrix () |
An empty destructor, virtual since we have virtual methods. More... | |
void | update (const DenseVector< _Type > &state) |
Update the Equation object for the current set of state variables. More... | |
const DenseMatrix< _Type > & | matrix0 () const |
Return a handle to the matrix. More... | |
virtual void | get_jacobian_of_matrix0_mult_vector (const DenseVector< _Type > &state, const DenseVector< _Type > &vec, DenseMatrix< _Type > &h) const |
Return the product of the Jacobian-of-the-matrix and a vector 'vec' when the equation has a given 'state'. More... | |
![]() | |
Residual_with_coords (const unsigned &order, const unsigned &ncoords) | |
Constructor for a 'square' residual object that is, N residuals for N unknowns. More... | |
Residual_with_coords (const unsigned &order, const unsigned &nvars, const unsigned &ncoords) | |
Constructor for a 'non-square' residual object that is, there are less residual constraints than unknowns. More... | |
virtual | ~Residual_with_coords () |
An empty destructor. More... | |
_Xtype & | coord (const unsigned &i) |
General handle access to the coordinates. More... | |
const _Xtype & | coord (const unsigned &i) const |
General handle access to the coordinates. More... | |
![]() | |
Residual (const unsigned &order) | |
Constructor for a 'square' residual object that is, N residuals for N unknowns. More... | |
Residual (const unsigned &order, const unsigned &nvars) | |
Constructor for a 'non-square' residual object that is, there are less residual constraints than unknowns. More... | |
virtual | ~Residual () |
An empty destructor, virtual since we have virtual methods. More... | |
void | update (const DenseVector< _Type > &state) |
Update the Residual object for the current set of state variables. More... | |
const DenseVector< _Type > & | residual () const |
Return a handle to the residuals corresponding to the last update state. More... | |
const DenseMatrix< _Type > & | jacobian () const |
Retrun a handle to the Jacobian of the residual corresponding to the last update state. More... | |
_Type & | delta () |
const _Type & | delta () const |
unsigned | get_order () const |
Get the order of the residual vector. More... | |
unsigned | get_number_of_vars () const |
Get the number of variables that this residual condition is defined for. More... | |
virtual void | residual_fn (const DenseVector< _Type > &state, DenseVector< _Type > &f) const |
A blank virtual residual function method. More... | |
![]() | |
Equation_1matrix (const unsigned &order) | |
Constructor for equation class. More... | |
virtual | ~Equation_1matrix () |
An empty destructor, virtual since we have virtual methods. More... | |
void | update (const DenseVector< D_complex > &state) |
Update the Equation object for the current set of state variables. More... | |
const DenseMatrix< D_complex > & | matrix0 () const |
Return a handle to the matrix. More... | |
virtual void | get_jacobian_of_matrix0_mult_vector (const DenseVector< D_complex > &state, const DenseVector< D_complex > &vec, DenseMatrix< D_complex > &h) const |
Return the product of the Jacobian-of-the-matrix and a vector 'vec' when the equation has a given 'state'. More... | |
![]() | |
Residual_with_coords (const unsigned &order, const unsigned &ncoords) | |
Constructor for a 'square' residual object that is, N residuals for N unknowns. More... | |
Residual_with_coords (const unsigned &order, const unsigned &nvars, const unsigned &ncoords) | |
Constructor for a 'non-square' residual object that is, there are less residual constraints than unknowns. More... | |
virtual | ~Residual_with_coords () |
An empty destructor. More... | |
_Xtype & | coord (const unsigned &i) |
General handle access to the coordinates. More... | |
const _Xtype & | coord (const unsigned &i) const |
General handle access to the coordinates. More... | |
![]() | |
Equation (const unsigned &order) | |
Constructor for equation class. More... | |
virtual | ~Equation () |
An empty destructor, virtual since we have virtual methods. More... | |
Public Attributes | |
double | lambda |
A parameter. More... | |
Additional Inherited Members | |
virtual void | matrix0 (const DenseVector< _Type > &x, DenseMatrix< _Type > &m) const |
Define the matrix in terms of the current state vector. More... | |
![]() | |
virtual void | jacobian (const DenseVector< _Type > &state, DenseMatrix< _Type > &jac) const |
Because the residual evaluation at the current state is assumed to have already been done by the 'update' method, this routine is protected. More... | |
virtual void | matrix0 (const DenseVector< D_complex > &x, DenseMatrix< D_complex > &m) const |
Define the matrix in terms of the current state vector. More... | |
![]() | |
std::vector< _Xtype > | coords |
The coordinates stored for this residual. More... | |
![]() | |
DenseMatrix< _Type > | JAC_AT_LAST_STATE |
Jacobian for the last state vector. More... | |
DenseVector< _Type > | FN_AT_LAST_STATE |
Residual for the last state vector. More... | |
DenseVector< _Type > | LAST_STATE |
The last state vector. More... | |
_Type | DELTA |
A default step for FD computation of the Jacobian. More... | |
unsigned | ORDER_OF_SYSTEM |
The order of the system of equations. More... | |
unsigned | NUMBER_OF_VARS |
The number of elements in the state vector. More... | |
![]() | |
std::vector< _Xtype > | coords |
The coordinates stored for this residual. More... | |
Define the harmonic equation by inheriting the Equation base class.
Define the harmonic equation by inheriting Equation base class.
Definition at line 25 of file BVPHarmonic.cpp.
|
inline |
The harmonic equation is a 2nd order ODE.
Definition at line 30 of file BVPHarmonic.cpp.
|
inline |
The eqn is a 3rd order complex nonlinear ODE because the eigenvalue is an unknown.
Definition at line 38 of file EVPHarmonicLocal.cpp.
|
inline |
The harmonic equation is 2nd order.
Definition at line 21 of file IVPHarmonic.cpp.
|
inlinevirtual |
Define the matrix in terms of the current state vector.
x | The current state vector. |
m | The matrix. |
Reimplemented from CppNoddy::Equation_1matrix< _Type, _Xtype >.
Definition at line 39 of file BVPHarmonic.cpp.
|
inlinevirtual |
matrix to multiply the BVP coordinate
Reimplemented from CppNoddy::Equation_1matrix< D_complex >.
Definition at line 51 of file EVPHarmonicLocal.cpp.
References Utils_Fill::fill_identity(), and m.
|
inlinevirtual |
The Berman equation.
Reimplemented from CppNoddy::Residual< _Type >.
Definition at line 33 of file BVPHarmonic.cpp.
References f, fd, CppNoddy::Example::g(), and CppNoddy::Example::z().
|
inline |
Define the harmonic eqn.
Definition at line 41 of file EVPHarmonicLocal.cpp.
References f, fd, CppNoddy::Example::g(), CppNoddy::Example::Harmonic_equation< _Type, _Xtype >::lambda, and CppNoddy::Example::z().
|
inline |
We implement the equation as 2 first-order ODEs.
Definition at line 26 of file IVPHarmonic.cpp.
References f, CppNoddy::Example::Harmonic_equation< _Type, _Xtype >::lambda, and CppNoddy::Example::z().
double CppNoddy::Example::Harmonic_equation< _Type, _Xtype >::lambda |
A parameter.
Definition at line 33 of file IVPHarmonic.cpp.
Referenced by main(), and CppNoddy::Example::Harmonic_equation< _Type, _Xtype >::residual_fn().
© 2012
R.E. Hewitt