Line |
Branch |
Exec |
Source |
1 |
|
|
// ______ ______ _ _ _____ ______ |
2 |
|
|
// | ____| ____| | (_)/ ____| | ____| |
3 |
|
|
// | |__ | |__ | | _| (___ ___| |__ |
4 |
|
|
// | __| | __| | | | |\___ \ / __| __| |
5 |
|
|
// | | | |____| |____| |____) | (__| |____ |
6 |
|
|
// |_| |______|______|_|_____/ \___|______| |
7 |
|
|
// Finite Elements for Life Sciences and Engineering |
8 |
|
|
// |
9 |
|
|
// License: LGL2.1 License |
10 |
|
|
// FELiScE default license: LICENSE in root folder |
11 |
|
|
// |
12 |
|
|
// Main authors: E. Schenone |
13 |
|
|
// |
14 |
|
|
|
15 |
|
|
#ifndef _ALPMODEL_HPP |
16 |
|
|
#define _ALPMODEL_HPP |
17 |
|
|
|
18 |
|
|
// System includes |
19 |
|
|
|
20 |
|
|
// External includes |
21 |
|
|
#include "Core/NoThirdPartyWarning/Petsc/vec.hpp" |
22 |
|
|
|
23 |
|
|
// Project includes |
24 |
|
|
#include "Model/model.hpp" |
25 |
|
|
#include "Solver/eigenProblem.hpp" |
26 |
|
|
#include "Solver/eigenProblemALP.hpp" |
27 |
|
|
#include "Solver/cardiacFunction.hpp" |
28 |
|
|
|
29 |
|
|
namespace felisce { |
30 |
|
|
/*! |
31 |
|
|
\file ALPModel.hpp |
32 |
|
|
\authors E. Schenone |
33 |
|
|
\date 10/12/2012 |
34 |
|
|
\brief ALP model class manages Approximated Lax Pairs decomposition. |
35 |
|
|
*/ |
36 |
|
|
class ALPModel: |
37 |
|
|
public Model { |
38 |
|
|
public: |
39 |
|
|
//! Construtor. |
40 |
|
|
ALPModel(); |
41 |
|
|
//! Destructor. |
42 |
|
|
~ALPModel() override; |
43 |
|
|
//! Initializations |
44 |
|
1 |
void initializeDerivedModel() override {} |
45 |
|
|
void initializeEigenProblem(std::vector<EigenProblemALP*> eigenPb); |
46 |
|
|
virtual void preAssembleMatrix(const int iProblem); |
47 |
|
✗ |
virtual void postAssembleMatrix(const int iProblem) { |
48 |
|
|
IGNORE_UNUSED_ARGUMENT(iProblem); |
49 |
|
|
} |
50 |
|
|
void updateTime(const FlagMatrixRHS flagMatrixRHS=FlagMatrixRHS::matrix_and_rhs) override; |
51 |
|
|
virtual void writeSolution(); |
52 |
|
|
void solveEigenProblem(); |
53 |
|
|
void readInitialData(); |
54 |
|
|
void optimizePotential(); |
55 |
|
|
//! Manage time iteration. |
56 |
|
|
void forward() override; |
57 |
|
|
//! Acces functions. |
58 |
|
|
EigenProblemALP* eigenProblem() { |
59 |
|
|
return m_eigenProblem[0]; |
60 |
|
|
} |
61 |
|
|
EigenProblemALP* eigenProblem(int iProblem) { |
62 |
|
|
return m_eigenProblem[iProblem]; |
63 |
|
|
} |
64 |
|
|
protected: |
65 |
|
|
std::vector<EigenProblemALP*> m_eigenProblem; |
66 |
|
|
int m_method; |
67 |
|
|
}; |
68 |
|
|
} |
69 |
|
|
|
70 |
|
|
|
71 |
|
|
#endif |
72 |
|
|
|