Finite Element Domain Decomposition Library
FEDDLib
Loading...
Searching...
No Matches
AssembleFE_NonLinElas2_decl.hpp
1#ifndef AssembleFE_NonLinElas2_DECL_hpp
2#define AssembleFE_NonLinElas2_DECL_hpp
3
4#include "feddlib/core/AceFemAssembly/AssembleFE.hpp"
5#include "feddlib/core/FEDDCore.hpp"
6#include "feddlib/core/LinearAlgebra/Matrix.hpp"
7#include "feddlib/core/LinearAlgebra/MultiVector.hpp"
8
9namespace FEDD {
10
11template <class SC = default_sc, class LO = default_lo, class GO = default_go, class NO = default_no>
12class AssembleFE_NonLinElas2 : public AssembleFE<SC,LO,GO,NO> {
13 public:
14
15 typedef Matrix<SC,LO,GO,NO> Matrix_Type;
16 typedef Teuchos::RCP<Matrix_Type> MatrixPtr_Type;
17
18 typedef SmallMatrix<SC> SmallMatrix_Type;
19 typedef Teuchos::RCP<SmallMatrix_Type> SmallMatrixPtr_Type;
20
21 typedef MultiVector<SC,LO,GO,NO> MultiVector_Type;
22 typedef Teuchos::RCP<MultiVector_Type> MultiVectorPtr_Type;
23
24 typedef AssembleFE<SC,LO,GO,NO> AssembleFE_Type;
25
26
31 void assembleJacobian() override;
32
37 void assembleRHS() override;
38
43 void assembleJacobianBlock(LO i) override {};
48 void updateParameter(std::string type, double value) override;
49
50 protected:
51 AssembleFE_NonLinElas2(int flag, vec2D_dbl_Type nodesRefConfig, ParameterListPtr_Type parameters, tuple_disk_vec_ptr_Type tuple);
52 private:
53 void assemblyNonLinElas(SmallMatrixPtr_Type &elementMatrix);
54
55 friend class AssembleFEFactory<SC,LO,GO,NO>; // Must have for specfic classes
56
57
58 double E_ ;
59 double lambda_;
60 double poissonRatio_;
61 std::string FEType_ ; // FEType of Disk
62
63 int dofs_ ; // Degrees of freedom per node
64
65 int numNodes_ ; // Number of nodes of element
66
67 int dofsElement_; // "Dimension of return matrix"
68
69 };
70
71}
72#endif
73
This class allows for constructing AssembleFE objects.
Definition AssembleFEFactory_decl.hpp:37
void updateParameter(std::string type, double value) override
Update the parameter read from the ParameterList.
Definition AssembleFE_NonLinElas2_def.hpp:175
void assembleJacobianBlock(LO i) override
Assemble the element Jacobian matrix.
Definition AssembleFE_NonLinElas2_decl.hpp:43
void assembleRHS() override
Assemble the element right hand side vector.
Definition AssembleFE_NonLinElas2_def.hpp:134
AssembleFE_NonLinElas2(int flag, vec2D_dbl_Type nodesRefConfig, ParameterListPtr_Type parameters, tuple_disk_vec_ptr_Type tuple)
Constructor for AssembleFE_NonLinElas2.
Definition AssembleFE_NonLinElas2_def.hpp:23
void assembleJacobian() override
Assemble the element Jacobian matrix.
Definition AssembleFE_NonLinElas2_def.hpp:50
AssembleFE(int flag, vec2D_dbl_Type nodesRefConfig, ParameterListPtr_Type parameters, tuple_disk_vec_ptr_Type tuple)
Definition AssembleFE_def.hpp:10
Definition Matrix_decl.hpp:32
Definition MultiVector_decl.hpp:36
This class represents a templated small Matrix of type T. Primarily created for 2x2 and 3x3 matrices....
Definition SmallMatrix.hpp:22
Adaptive Mesh Refinement.
Definition AdaptiveMeshRefinement.cpp:5