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_load_from_DEM_condition_2d.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: Ignasi de Pouplana
11 //
12 
13 // System includes
14 #if !defined(KRATOS_LINE_LOAD_FROM_DEM_CONDITION_2D_H_INCLUDED )
15 #define KRATOS_LINE_LOAD_FROM_DEM_CONDITION_2D_H_INCLUDED
16 
17 // Project includes
18 #include "includes/serializer.h"
19 #include "includes/define.h"
20 #include "geometries/geometry.h"
21 #include "utilities/math_utils.h"
23 
24 // Application includes
26 
27 
28 namespace Kratos
29 {
30 
33 
37 
41 
45 
49 
53 template<std::size_t TDim>
54 class KRATOS_API(DEM_STRUCTURES_COUPLING_APPLICATION) LineLoadFromDEMCondition2D
55  : public LineLoadCondition<TDim>
56 {
57 public:
60 
63 
64  typedef std::size_t IndexType;
66  typedef Node NodeType;
69  typedef Vector VectorType;
70  typedef Matrix MatrixType;
71 
74 
78 
79  // Constructor void
81  : LineLoadCondition<TDim>() {}
82 
83  // Constructor using an array of nodes
84  LineLoadFromDEMCondition2D( IndexType NewId, GeometryType::Pointer pGeometry )
85  : LineLoadCondition<TDim>( NewId, pGeometry ) {}
86 
87  // Constructor using an array of nodes with properties
88  LineLoadFromDEMCondition2D( IndexType NewId, GeometryType::Pointer pGeometry, PropertiesType::Pointer pProperties )
89  : LineLoadCondition<TDim>( NewId, pGeometry, pProperties ) {}
90 
91  // Destructor
93 
97 
98 
102 
110  Condition::Pointer Create(
111  IndexType NewId,
112  NodesArrayType const& ThisNodes,
113  PropertiesType::Pointer pProperties
114  ) const override;
115 
123  Condition::Pointer Create(
124  IndexType NewId,
125  GeometryType::Pointer pGeom,
126  PropertiesType::Pointer pProperties
127  ) const override;
128 
135  Condition::Pointer Clone (
136  IndexType NewId,
137  NodesArrayType const& ThisNodes
138  ) const override;
139 
143  GeometryData::IntegrationMethod GetIntegrationMethod() const override;
144 
148 
149 
153 
154 
158 
159 
163 
164 
166 
167 protected:
170 
171 
175 
176 
180 
181 
185 
194  void CalculateAll(
195  MatrixType& rLeftHandSideMatrix,
196  VectorType& rRightHandSideVector,
197  const ProcessInfo& rCurrentProcessInfo,
198  const bool CalculateStiffnessMatrixFlag,
199  const bool CalculateResidualVectorFlag
200  ) override;
201 
202  virtual void InterpolateLineLoad(array_1d<double,3>& r_surface_load,
203  const Matrix& n_container,
204  const unsigned int& number_of_nodes,
205  const unsigned int& g_point);
206 
210 
211 
215 
216 
220 
221 
223 
224 private:
227 
231 
235 
239 
240 
244 
245 
249 
253 
254  friend class Serializer;
255 
256  void save( Serializer& rSerializer ) const override
257  {
259  }
260 
261  void load( Serializer& rSerializer ) override
262  {
264  }
265 
266 
270 
272  //LineLoadFromDEMCondition2D& operator=(const LineLoadFromDEMCondition2D& rOther);
273 
275  //LineLoadFromDEMCondition2D(const LineLoadFromDEMCondition2D& rOther);
276 
277 
279 
280 }; // Class LineLoadFromDEMCondition2D
281 
285 
286 
290 
292 
293 } // namespace Kratos.
294 
295 #endif // KRATOS_LINE_LOAD_FROM_DEM_CONDITION_2D_H_INCLUDED defined
296 
297 
std::size_t IndexType
Definition: flags.h:74
IntegrationMethod
Definition: geometry_data.h:76
Geometry base class.
Definition: geometry.h:71
Line load condition for 3D and 2D geometries.
Definition: line_load_condition.hpp:41
Definition: line_load_from_DEM_condition_2d.h:56
Geometry< NodeType > GeometryType
Definition: line_load_from_DEM_condition_2d.h:67
LineLoadFromDEMCondition2D()
Definition: line_load_from_DEM_condition_2d.h:80
Vector VectorType
Definition: line_load_from_DEM_condition_2d.h:69
Matrix MatrixType
Definition: line_load_from_DEM_condition_2d.h:70
LineLoadFromDEMCondition2D(IndexType NewId, GeometryType::Pointer pGeometry)
Definition: line_load_from_DEM_condition_2d.h:84
std::size_t IndexType
Definition: line_load_from_DEM_condition_2d.h:64
KRATOS_CLASS_INTRUSIVE_POINTER_DEFINITION(LineLoadFromDEMCondition2D)
Counted pointer of LineLoadFromDEMCondition2D.
LineLoadCondition< TDim > BaseType
We define the base class LineLoadCondition.
Definition: line_load_from_DEM_condition_2d.h:62
Geometry< NodeType >::PointsArrayType NodesArrayType
Definition: line_load_from_DEM_condition_2d.h:68
~LineLoadFromDEMCondition2D() override
Definition: line_load_from_DEM_condition_2d.h:92
Node NodeType
Definition: line_load_from_DEM_condition_2d.h:66
LineLoadFromDEMCondition2D(IndexType NewId, GeometryType::Pointer pGeometry, PropertiesType::Pointer pProperties)
Definition: line_load_from_DEM_condition_2d.h:88
Properties PropertiesType
Definition: line_load_from_DEM_condition_2d.h:65
This class defines the node.
Definition: node.h:65
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
Properties encapsulates data shared by different Elements or Conditions. It can store any type of dat...
Definition: properties.h:69
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
std::size_t IndexType
The definition of the index type.
Definition: key_hash.h:35
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
ModelPart::NodesContainerType NodesArrayType
Definition: gid_gauss_point_container.h:42
def load(f)
Definition: ode_solve.py:307