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_load_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_POINT_LOAD_CONDITION_H_INCLUDED)
11 #define KRATOS_POINT_LOAD_CONDITION_H_INCLUDED
12 
13 // System includes
14 
15 // External includes
16 
17 // Project includes
19 
20 
21 namespace Kratos
22 {
37 
39 
40 class KRATOS_API(SOLID_MECHANICS_APPLICATION) PointLoadCondition
41  : public LoadCondition
42 {
43 public:
44 
47  // Counted pointer of PointLoadCondition
50 
53 
55  PointLoadCondition( IndexType NewId, GeometryType::Pointer pGeometry );
56 
57  PointLoadCondition( IndexType NewId, GeometryType::Pointer pGeometry, PropertiesType::Pointer pProperties );
58 
60  PointLoadCondition( PointLoadCondition const& rOther);
61 
63  ~PointLoadCondition() override;
64 
68 
69 
73 
81  Condition::Pointer Create(IndexType NewId,
82  NodesArrayType const& ThisNodes,
83  PropertiesType::Pointer pProperties ) const override;
84 
85 
93  Condition::Pointer Clone(IndexType NewId,
94  NodesArrayType const& ThisNodes) const override;
95 
96 
97  //************************************************************************************
98  //************************************************************************************
106  int Check( const ProcessInfo& rCurrentProcessInfo ) const override;
107 
117 
119 
120  std::string Info() const override
121  {
122  std::stringstream buffer;
123  buffer << "Point Load Condition #" << Id();
124  return buffer.str();
125  }
126 
128 
129  void PrintInfo(std::ostream& rOStream) const override
130  {
131  rOStream << "Point Load Condition #" << Id();
132  }
133 
135 
136  void PrintData(std::ostream& rOStream) const override
137  {
138  pGetGeometry()->PrintData(rOStream);
139  }
140 
145 
146 protected:
159 
163  void InitializeConditionVariables(ConditionVariables& rVariables,
164  const ProcessInfo& rCurrentProcessInfo) override;
165 
166 
170  void CalculateKinematics(ConditionVariables& rVariables,
171  const double& rPointNumber) override;
172 
176  void CalculateExternalLoad(ConditionVariables& rVariables) override;
177 
178 
182  void CalculateConditionSystem(LocalSystemComponents& rLocalSystem,
183  const ProcessInfo& rCurrentProcessInfo) override;
184 
185 
189 
190 
194 
195 
199 
200 
202 
203 private:
206 
207 
211 
215 
216 
220 
221 
225 
226 
230 
234 
235  friend class Serializer;
236 
237  void save(Serializer& rSerializer) const override;
238 
239  void load(Serializer& rSerializer) override;
240 
241 
242 }; // class PointLoadCondition.
243 
244 } // namespace Kratos.
245 
246 #endif // KRATOS_POINT_LOAD_CONDITION_H_INCLUDED defined
std::size_t IndexType
Definition: flags.h:74
Condition for basic load types.
Definition: load_condition.h:36
Point Load Condition for 3D and 2D geometries. (base class)
Definition: point_load_condition.hpp:42
std::string Info() const override
Turn back information as a string.
Definition: point_load_condition.hpp:120
void PrintInfo(std::ostream &rOStream) const override
Print information about this object.
Definition: point_load_condition.hpp:129
PointLoadCondition()
Definition: point_load_condition.hpp:152
void PrintData(std::ostream &rOStream) const override
Print object's data.
Definition: point_load_condition.hpp:136
KRATOS_CLASS_INTRUSIVE_POINTER_DEFINITION(PointLoadCondition)
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
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