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: S. Gilles |
13 |
|
|
// |
14 |
|
|
|
15 |
|
|
#ifndef ___FELISCE__PressureDataIncompressible__ |
16 |
|
|
# define ___FELISCE__PressureDataIncompressible__ |
17 |
|
|
|
18 |
|
|
// System includes |
19 |
|
|
|
20 |
|
|
// External includes |
21 |
|
|
|
22 |
|
|
// Project includes |
23 |
|
|
#include "Hyperelasticity/pressureData.hpp" |
24 |
|
|
|
25 |
|
|
namespace felisce { |
26 |
|
|
|
27 |
|
|
// Forward declarations. |
28 |
|
|
class ListVariable; |
29 |
|
|
class ListCurrentFiniteElement; |
30 |
|
|
class CurrentFiniteElement; |
31 |
|
|
|
32 |
|
|
namespace Private { |
33 |
|
|
|
34 |
|
|
namespace Hyperelasticity { |
35 |
|
|
|
36 |
|
|
class PressureDataIncompressible |
37 |
|
|
: public PressureData |
38 |
|
|
{ |
39 |
|
|
public: |
40 |
|
|
/// Pointer definition of PressureData |
41 |
|
|
FELISCE_CLASS_POINTER_DEFINITION(PressureDataIncompressible); |
42 |
|
|
|
43 |
|
|
// Constructor. |
44 |
|
|
PressureDataIncompressible(); |
45 |
|
|
|
46 |
|
|
// Destructor. |
47 |
|
✗ |
~PressureDataIncompressible() override = default; |
48 |
|
|
|
49 |
|
|
/*! |
50 |
|
|
* \brief Init the data related to pressure. |
51 |
|
|
* |
52 |
|
|
* \param[in] list_variable LinearProblem::m_listVariable expected here. |
53 |
|
|
* \param[in] list_finite_element LinearProblem::m_listCurrentFiniteElement expected here. |
54 |
|
|
*/ |
55 |
|
|
void Init(const ListVariable& list_variable, ListCurrentFiniteElement& list_finite_element) override; |
56 |
|
|
|
57 |
|
|
// Return the index related to pressure. |
58 |
|
|
int IndexPressure() const override; |
59 |
|
|
|
60 |
|
|
// If the formulation is compressible or not |
61 |
|
|
bool IsCompressible() const override; |
62 |
|
|
|
63 |
|
|
// Return the finite element related to pressure. |
64 |
|
|
CurrentFiniteElement* FiniteElementPressure() const override; |
65 |
|
|
|
66 |
|
|
protected: |
67 |
|
|
|
68 |
|
|
// Index related to pressure. |
69 |
|
|
int m_iPressure; |
70 |
|
|
|
71 |
|
|
// Finite element related to pressure. |
72 |
|
|
CurrentFiniteElement* m_fePressure; |
73 |
|
|
|
74 |
|
|
}; |
75 |
|
|
|
76 |
|
|
} // namespace Hyperelasticity |
77 |
|
|
|
78 |
|
|
} // namespace Private |
79 |
|
|
|
80 |
|
|
} // namespace felisce |
81 |
|
|
|
82 |
|
|
#endif /* defined(___FELISCE__PressureDataIncompressible__) */ |
83 |
|
|
|