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.
mpm_grid_point_load_condition.h
Go to the documentation of this file.
1 // | / |
2 // ' / __| _` | __| _ \ __|
3 // . \ | ( | | ( |\__ `
4 // _|\_\_| \__,_|\__|\___/ ____/
5 // Multi-Physics
6 //
7 // License: BSD License
8 // Kratos default license: kratos/license.txt
9 //
10 // Main authors: Bodhinanda Chandra
11 //
12 
13 
14 // System includes
15 #if !defined(KRATOS_MPM_GRID_POINT_LOAD_CONDITION_H_INCLUDED )
16 #define KRATOS_MPM_GRID_POINT_LOAD_CONDITION_H_INCLUDED
17 
18 // System includes
19 
20 // External includes
21 
22 // Project includes
23 #include "includes/define.h"
25 #include "includes/variables.h"
26 
27 namespace Kratos
28 {
29 
32 
36 
40 
44 
48 
50 
55 {
56 public:
59 
62 
66 
69  IndexType NewId,
70  GeometryType::Pointer pGeometry
71  );
72 
74  IndexType NewId,
75  GeometryType::Pointer pGeometry,
76  PropertiesType::Pointer pProperties
77  );
78 
80  ~MPMGridPointLoadCondition() override;
81 
85 
86 
90 
91  Condition::Pointer Create(
92  IndexType NewId,
93  GeometryType::Pointer pGeometry,
94  PropertiesType::Pointer pProperties
95  ) const override;
96 
97  Condition::Pointer Create(
98  IndexType NewId,
99  NodesArrayType const& ThisNodes,
100  PropertiesType::Pointer pProperties
101  ) const override;
102 
106 
107 
111 
112 
116 
118 // virtual String Info() const;
119 
121 // virtual void PrintInfo(std::ostream& rOStream) const;
122 
124 // virtual void PrintData(std::ostream& rOStream) const;
125 
126 
130 
131 
133 
134 protected:
137 
138 
142 
143 
147 
148 
152 
161  void CalculateAll(
162  MatrixType& rLeftHandSideMatrix,
163  VectorType& rRightHandSideVector,
164  const ProcessInfo& rCurrentProcessInfo,
165  bool CalculateStiffnessMatrixFlag,
166  bool CalculateResidualVectorFlag
167  ) override;
168 
172  virtual double GetPointLoadIntegrationWeight();
173 
177 
181 
182 
186 
187  // A protected default constructor necessary for serialization
189 
191 
192 private:
195 
199 
203 
207 
208 
212 
213 
217 
221 
222  friend class Serializer;
223 
224  void save( Serializer& rSerializer ) const override
225  {
227  }
228 
229  void load( Serializer& rSerializer ) override
230  {
232  }
233 
234 
235 }; // Class MPMGridPointLoadCondition
236 
240 
241 
245 
246 } // namespace Kratos.
247 
248 #endif // KRATOS_MPM_GRID_POINT_LOAD_CONDITION_H_INCLUDED defined
249 
250 
std::size_t IndexType
Definition: flags.h:74
Definition: mpm_grid_base_load_condition.h:50
Short class definition.
Definition: mpm_grid_point_load_condition.h:55
void CalculateAll(MatrixType &rLeftHandSideMatrix, VectorType &rRightHandSideVector, const ProcessInfo &rCurrentProcessInfo, bool CalculateStiffnessMatrixFlag, bool CalculateResidualVectorFlag) override
Definition: mpm_grid_point_load_condition.cpp:69
virtual double GetPointLoadIntegrationWeight()
Definition: mpm_grid_point_load_condition.cpp:133
MPMGridPointLoadCondition()
Definition: mpm_grid_point_load_condition.h:188
Condition::Pointer Create(IndexType NewId, GeometryType::Pointer pGeometry, PropertiesType::Pointer pProperties) const override
It creates a new condition pointer.
Definition: mpm_grid_point_load_condition.cpp:46
~MPMGridPointLoadCondition() override
Destructor.
Definition: mpm_grid_point_load_condition.cpp:62
KRATOS_CLASS_INTRUSIVE_POINTER_DEFINITION(MPMGridPointLoadCondition)
Counted pointer of MPMGridPointLoadCondition.
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
REF: G. R. Cowper, GAUSSIAN QUADRATURE FORMULAS FOR TRIANGLES.
Definition: mesh_condition.cpp:21
def load(f)
Definition: ode_solve.py:307