add: Boundary.hpp Simulation.hpp | adding basic outline

This commit is contained in:
philippun 2023-07-13 11:29:53 +02:00
parent 16640fe122
commit a6a704a176
3 changed files with 74 additions and 2 deletions

71
include/tug/Boundary.hpp Normal file
View File

@ -0,0 +1,71 @@
#include <Eigen/Core>
using namespace Eigen;
enum BC_TYPE {
BC_TYPE_CLOSED,
BC_TYPE_CONSTANT
};
enum BC_SIDE {
BC_SIDE_LEFT,
BC_SIDE_RIGHT,
BC_SIDE_TOP,
BC_SIDE_BOTTOM
};
class Boundary {
public:
/**
* @brief Construct a new Boundary object
*
* @param dim
*/
Boundary(int dim);
/**
* @brief Construct a new Boundary object
*
* @param dim
* @param type
*/
Boundary(int dim, BC_TYPE type);
/**
* @brief Set the Boundary Condition Type object
*
* @param type
*/
void setBoundaryConditionType(BC_TYPE type);
/**
* @brief Get the Boundary Condition Type object
*
* @return auto
*/
auto getBoundaryConditionType();
/**
* @brief Set the Boundary Condition Value object
*
* @param side
* @param values
*/
void setBoundaryConditionValue(BC_SIDE side, VectorXd values);
/**
* @brief Get the Boundary Condition Value object
*
* @param side
* @return auto
*/
auto getBoundaryConditionValue(BC_SIDE side);
private:
int dim;
BC_TYPE type;
VectorXd left, right, top, bottom;
};

View File

@ -1,4 +1,3 @@
#include <iostream>
#include <Eigen/Core>
using namespace Eigen;
@ -49,7 +48,7 @@ class Grid {
* @param alpha_y
*/
void setAlpha(Matrix2d alpha_x, Matrix2d alpha_y);
private:

View File

@ -0,0 +1,2 @@