KratosMultiphysics
KRATOS Multiphysics (Kratos) is a framework for building parallel, multi-disciplinary simulation software, aiming at modularity, extensibility, and high performance. Kratos is written in C++, and counts with an extensive Python interface.
line_moment_condition.hpp
Go to the documentation of this file.
1 //
2 // Project Name: KratosSolidMechanicsApplication $
3 // Created by: $Author: JMCarbonell $
4 // Last modified by: $Co-Author: $
5 // Date: $Date: July 2013 $
6 // Revision: $Revision: 0.0 $
7 //
8 //
9 
10 #if !defined(KRATOS_LINE_MOMENT_CONDITION_H_INCLUDED)
11 #define KRATOS_LINE_MOMENT_CONDITION_H_INCLUDED
12 
13 // System includes
14 
15 // External includes
16 
17 // Project includes
19 
20 namespace Kratos
21 {
36 
38 
39 class KRATOS_API(SOLID_MECHANICS_APPLICATION) LineMomentCondition
40  : public MomentCondition
41 {
42 public:
43 
46  // Counted pointer of LineMomentCondition
49 
52 
54  LineMomentCondition( IndexType NewId, GeometryType::Pointer pGeometry );
55 
56  LineMomentCondition( IndexType NewId, GeometryType::Pointer pGeometry, PropertiesType::Pointer pProperties );
57 
60 
62  ~LineMomentCondition() override;
63 
67 
68 
72 
80  Condition::Pointer Create(IndexType NewId,
81  NodesArrayType const& ThisNodes,
82  PropertiesType::Pointer pProperties ) const override;
83 
84 
92  Condition::Pointer Clone(IndexType NewId,
93  NodesArrayType const& ThisNodes) const override;
94 
95 
96 
97  //************* COMPUTING METHODS
98 
99 
107  int Check( const ProcessInfo& rCurrentProcessInfo ) const override;
108 
122 
123 protected:
136 
140  void InitializeConditionVariables(ConditionVariables& rVariables,
141  const ProcessInfo& rCurrentProcessInfo) override;
142 
146  void CalculateKinematics(ConditionVariables& rVariables,
147  const double& rPointNumber) override;
148 
152  void CalculateExternalMoment(ConditionVariables& rVariables) override;
153 
154 
158  void CalculateAndAddKuug(MatrixType& rLeftHandSideMatrix,
159  ConditionVariables& rVariables,
160  double& rIntegrationWeight) override;
161 
162 
166 
167 
171 
172 
176 
177 
179 
180 private:
183 
184 
188 
192 
193 
197 
198 
202 
203 
207 
211 
212  friend class Serializer;
213 
214  void save(Serializer& rSerializer) const override;
215 
216  void load(Serializer& rSerializer) override;
217 
218 
219 }; // class LineMomentCondition.
220 
221 } // namespace Kratos.
222 
223 #endif // KRATOS_LINE_MOMENT_CONDITION_H_INCLUDED defined
std::size_t IndexType
Definition: flags.h:74
Line load condition for 3D and 2D geometries.
Definition: line_moment_condition.hpp:41
LineMomentCondition()
Definition: line_moment_condition.hpp:129
KRATOS_CLASS_INTRUSIVE_POINTER_DEFINITION(LineMomentCondition)
Load Condition for 3D and 2D geometries. (base class)
Definition: moment_condition.hpp:45
PointerVector is a container like stl vector but using a vector to store pointers to its data.
Definition: pointer_vector.h:72
ProcessInfo holds the current value of different solution parameters.
Definition: process_info.h:59
The serialization consists in storing the state of an object into a storage format like data file or ...
Definition: serializer.h:123
Matrix MatrixType
Definition: geometrical_transformation_utilities.h:55
Modeler::Pointer Create(const std::string &ModelerName, Model &rModel, const Parameters ModelParameters)
Checks if the modeler is registered.
Definition: modeler_factory.cpp:30
REF: G. R. Cowper, GAUSSIAN QUADRATURE FORMULAS FOR TRIANGLES.
Definition: mesh_condition.cpp:21
def load(f)
Definition: ode_solve.py:307