swap typedefs into class definition
This commit is contained in:
parent
52c1f472f6
commit
c3d82afed4
@ -5,28 +5,12 @@
|
|||||||
#include <tuple>
|
#include <tuple>
|
||||||
#include <vector>
|
#include <vector>
|
||||||
|
|
||||||
/*!
|
|
||||||
* Datatype to fill the sparse matrix which is used to solve the equation
|
|
||||||
* system.
|
|
||||||
*/
|
|
||||||
typedef Eigen::Triplet<double> T;
|
|
||||||
|
|
||||||
/*!
|
/*!
|
||||||
* Defines both types of boundary condition as a datatype.
|
* Defines both types of boundary condition as a datatype.
|
||||||
*/
|
*/
|
||||||
typedef int bctype;
|
typedef int bctype;
|
||||||
|
|
||||||
/*!
|
|
||||||
* A boundary condition consists of two features. A type and the according
|
|
||||||
* value. Here we can differentiate between:
|
|
||||||
*
|
|
||||||
* - Neumann boundary conditon: type BC_NEUMANN with the value defining the
|
|
||||||
* gradient
|
|
||||||
* - Dirichlet boundary condition: type BC_DIRICHLET with the actual value of
|
|
||||||
* the boundary condition
|
|
||||||
*/
|
|
||||||
typedef std::vector<std::tuple<bctype, double>> boundary_condition;
|
|
||||||
|
|
||||||
/*!
|
/*!
|
||||||
* Class implementing a solution for a 1/2/3D diffusion equation using backward
|
* Class implementing a solution for a 1/2/3D diffusion equation using backward
|
||||||
* euler.
|
* euler.
|
||||||
@ -49,6 +33,23 @@ public:
|
|||||||
*/
|
*/
|
||||||
static const int BC_FLUX;
|
static const int BC_FLUX;
|
||||||
|
|
||||||
|
/*!
|
||||||
|
* A boundary condition consists of two features. A type and the according
|
||||||
|
* value. Here we can differentiate between:
|
||||||
|
*
|
||||||
|
* - Neumann boundary conditon: type BC_NEUMANN with the value defining the
|
||||||
|
* gradient
|
||||||
|
* - Dirichlet boundary condition: type BC_DIRICHLET with the actual value of
|
||||||
|
* the boundary condition
|
||||||
|
*/
|
||||||
|
typedef std::vector<std::tuple<bctype, double>> boundary_condition;
|
||||||
|
|
||||||
|
/*!
|
||||||
|
* Datatype to fill the sparse matrix which is used to solve the equation
|
||||||
|
* system.
|
||||||
|
*/
|
||||||
|
typedef Eigen::Triplet<double> T;
|
||||||
|
|
||||||
/*!
|
/*!
|
||||||
* Create 1D-diffusion module.
|
* Create 1D-diffusion module.
|
||||||
*
|
*
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user