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.
point_moment_condition_3d.h
Go to the documentation of this file.
1 // KRATOS ___| | | |
2 // \___ \ __| __| | | __| __| | | __| _` | |
3 // | | | | | ( | | | | ( | |
4 // _____/ \__|_| \__,_|\___|\__|\__,_|_| \__,_|_| MECHANICS
5 //
6 // License: BSD License
7 // license: StructuralMechanicsApplication/license.txt
8 //
9 // Main authors: Philipp Bucher
10 //
11 
12 #pragma once
13 
14 // System includes
15 
16 // External includes
17 
18 // Project includes
20 
21 namespace Kratos
22 {
23 
26 
30 
34 
38 
42 
43 class KRATOS_API(STRUCTURAL_MECHANICS_APPLICATION) PointMomentCondition3D
44  : public BaseLoadCondition
45 {
46 public:
47 
50 
51  // Counted pointer of PointMomentCondition3D
53 
57 
60  IndexType NewId,
61  GeometryType::Pointer pGeometry
62  );
63 
65  IndexType NewId,
66  GeometryType::Pointer pGeometry,
67  PropertiesType::Pointer pProperties
68  );
69 
71  ~PointMomentCondition3D() override;
72 
76 
77 
81 
89  Condition::Pointer Create(
90  IndexType NewId,
91  NodesArrayType const& ThisNodes,
92  PropertiesType::Pointer pProperties
93  ) const override;
94 
102  Condition::Pointer Create(
103  IndexType NewId,
104  GeometryType::Pointer pGeom,
105  PropertiesType::Pointer pProperties
106  ) const override;
107 
114  Condition::Pointer Clone (
115  IndexType NewId,
116  NodesArrayType const& ThisNodes
117  ) const override;
118 
124  void EquationIdVector(
125  EquationIdVectorType& rResult,
126  const ProcessInfo& rCurrentProcessInfo
127  ) const override;
128 
134  void GetDofList(
135  DofsVectorType& ElementalDofList,
136  const ProcessInfo& rCurrentProcessInfo
137  ) const override;
138 
144  void GetValuesVector(
145  Vector& rValues,
146  int Step = 0
147  ) const override;
148 
154  void GetFirstDerivativesVector(
155  Vector& rValues,
156  int Step = 0
157  ) const override;
158 
164  void GetSecondDerivativesVector(
165  Vector& rValues,
166  int Step = 0
167  ) const override;
168 
169 
177  int Check( const ProcessInfo& rCurrentProcessInfo ) const override;
178 
179 
183 
184 
188 
189 
193 
195  std::string Info() const override
196  {
197  std::stringstream buffer;
198  buffer << "PointMomentCondition3D #" << Id();
199  return buffer.str();
200  }
201 
203 
204  void PrintInfo(std::ostream& rOStream) const override
205  {
206  rOStream << "PointMomentCondition3D #" << Id();
207  }
208 
210  void PrintData(std::ostream& rOStream) const override
211  {
212  pGetGeometry()->PrintData(rOStream);
213  }
214 
218 
219 protected:
220 
223 
227 
231 
235 
244  void CalculateAll(
245  MatrixType& rLeftHandSideMatrix,
246  VectorType& rRightHandSideVector,
247  const ProcessInfo& rCurrentProcessInfo,
248  const bool CalculateStiffnessMatrixFlag,
249  const bool CalculateResidualVectorFlag
250  ) override;
251 
255  virtual double GetPointMomentIntegrationWeight() const;
256 
260 
264 
268 
269  // A protected default constructor necessary for serialization
271 
272 private:
275 
276 
280 
281 
282 
286 
290 
291 
295 
296 
300 
304 
305  friend class Serializer;
306 
307  void save( Serializer& rSerializer ) const override
308  {
310  }
311 
312  void load( Serializer& rSerializer ) override
313  {
315  }
316 
317 }; // class PointMomentCondition3D.
318 
322 
323 
327 
328 } // namespace Kratos.
This is the base class of all the load conditions on StructuralMechanicsApplication.
Definition: base_load_condition.h:54
std::vector< std::size_t > EquationIdVectorType
Definition: condition.h:98
std::vector< DofType::Pointer > DofsVectorType
Definition: condition.h:100
std::size_t IndexType
Definition: flags.h:74
Definition: point_moment_condition_3d.h:45
void PrintInfo(std::ostream &rOStream) const override
Print information about this object.
Definition: point_moment_condition_3d.h:204
PointMomentCondition3D()
Definition: point_moment_condition_3d.h:270
std::string Info() const override
Turn back information as a string.
Definition: point_moment_condition_3d.h:195
void PrintData(std::ostream &rOStream) const override
Print object's data.
Definition: point_moment_condition_3d.h:210
KRATOS_CLASS_INTRUSIVE_POINTER_DEFINITION(PointMomentCondition3D)
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
#define KRATOS_SERIALIZE_SAVE_BASE_CLASS(Serializer, BaseType)
Definition: define.h:812
#define KRATOS_SERIALIZE_LOAD_BASE_CLASS(Serializer, BaseType)
Definition: define.h:815
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