CppNoddy  0.92
Loading...
Searching...
No Matches
Equation.h
Go to the documentation of this file.
1/// \file Equation.h
2/// A templated class for equations that can be inherited from
3/// to allow instantiation of ODE/PDE objects using the resulting class.
4/// An equation class is simply a square residual class with one
5/// extra coordinate for the ODE_BVP solver.
6
7#ifndef EQUATION_H
8#define EQUATION_H
9
11#include <DenseVector.h>
12#include <DenseMatrix.h>
13
14namespace CppNoddy {
15
16 /// An equation object base class used in the BVP/IVP classes.
17 /// An equation object is essentially a ('square') residual object
18 /// with an independent variable
19 /// data member and access methods. By 'square' we mean that it defines
20 /// N residuals and N state variables.
21 template < typename _Type, typename _Xtype = double >
22 class Equation : public Residual_with_coords<_Type, _Xtype> {
23 public:
24 /// Constructor for equation class.
25 /// \param order The order of the system
26 Equation(const unsigned& order);
27
28 /// An empty destructor, virtual since we have virtual methods.
29 virtual ~Equation();
30
31 }
32 ; // end class
33
34} // end namespace
35
36#endif
A matrix class that constructs a DENSE matrix as an STL Vector of DenseVectors.
Specification for a templated DenseVector class – a dense, dynamic, vector object.
A specification of a (double/complex) residual class that not only defines a vector residual of a vec...
An equation object base class used in the BVP/IVP classes.
Definition: Equation.h:22
virtual ~Equation()
An empty destructor, virtual since we have virtual methods.
Definition: Equation.cpp:16
A base class to be inherited by objects that define residuals.
A collection of OO numerical routines aimed at simple (typical) applied problems in continuum mechani...

© 2012

R.E. Hewitt