1
- #include " Truss/Element/CSQuad .hpp"
1
+ #include " Truss/Element/Quad4 .hpp"
2
2
#include " Truss/Common/Resources.hpp"
3
3
#include " Truss/Utils/GaussianQuadrature.hpp"
4
4
5
5
namespace Truss ::Element
6
6
{
7
- void CSQuad ::Build (Resources& resources)
7
+ void Quad4 ::Build (Resources& resources)
8
8
{
9
9
Node1 = &resources.Nodes .at (Node1Key);
10
10
Node2 = &resources.Nodes .at (Node2Key);
@@ -14,34 +14,35 @@ namespace Truss::Element
14
14
Section = std::static_pointer_cast<Section::Section_CSQuad>(section).get ();
15
15
}
16
16
17
- std::vector<ID> CSQuad ::GetNodeIds () const
17
+ std::vector<ID> Quad4 ::GetNodeIds () const
18
18
{
19
19
return {Node1->Id , Node2->Id , Node3->Id , Node4->Id };
20
20
}
21
21
22
- MatrixX<Numeric> CSQuad ::GetStiffnessGlobal () const
22
+ MatrixX<Numeric> Quad4 ::GetStiffnessGlobal () const
23
23
{
24
24
return {};
25
25
}
26
26
27
- StressVector CSQuad ::CalculateStress (const VectorX<Numeric>& displacement) const
27
+ StressVector Quad4 ::CalculateStress (const VectorX<Numeric>& displacement) const
28
28
{
29
29
return {};
30
30
}
31
31
32
- MatrixX<Numeric> CSQuad ::GetStiffnessLocal () const
32
+ MatrixX<Numeric> Quad4 ::GetStiffnessLocal () const
33
33
{
34
34
// TODO: integrate B^TScalar D B
35
35
return {};
36
36
}
37
37
38
- Eigen::Matrix<Numeric, 3 , 24 > CSQuad ::GetBMatrix () const
38
+ Eigen::Matrix<Numeric, 3 , 24 > Quad4 ::GetBMatrix (const VectorX<Numeric>& x, const VectorX<Numeric>& y ) const
39
39
{
40
- // TODO: is a function about x,y
40
+ Eigen::Matrix<Numeric, 3 , 24 > result = Eigen::Matrix<Numeric, 3 , 24 >::Zero ();
41
+ // result(Eigen::all, {0, 1}) <<
41
42
return {};
42
43
}
43
44
44
- Matrix3x3<Numeric> CSQuad ::GetDMatrix () const
45
+ Matrix3x3<Numeric> Quad4 ::GetDMatrix () const
45
46
{
46
47
Numeric v = Section->Mat ->PoissonRation ;
47
48
Numeric E = Section->Mat ->YoungsModules ;
0 commit comments