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_elastic_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: August 2017 $
6 // Revision: $Revision: 0.0 $
7 //
8 //
9 
10 #if !defined(KRATOS_POINT_ELASTIC_CONDITION_H_INCLUDED)
11 #define KRATOS_POINT_ELASTIC_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) PointElasticCondition
41  : public ElasticCondition
42 {
43 public:
44 
47  // Counted pointer of PointElasticCondition
50 
53 
55  PointElasticCondition( IndexType NewId, GeometryType::Pointer pGeometry );
56 
57  PointElasticCondition( IndexType NewId, GeometryType::Pointer pGeometry, PropertiesType::Pointer pProperties );
58 
61 
63  ~PointElasticCondition() 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 Elastic Condition #" << Id();
124  return buffer.str();
125  }
126 
128 
129  void PrintInfo(std::ostream& rOStream) const override
130  {
131  rOStream << "Point Elastic 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 CalculateExternalStiffness(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 PointElasticCondition.
243 
244 } // namespace Kratos.
245 
246 #endif // KRATOS_POINT_ELASTIC_CONDITION_H_INCLUDED defined
Elastic Condition for 3D and 2D geometries. (base class)
Definition: elastic_condition.hpp:45
std::size_t IndexType
Definition: flags.h:74
Point Load Condition for 3D and 2D geometries. (base class)
Definition: point_elastic_condition.hpp:42
KRATOS_CLASS_INTRUSIVE_POINTER_DEFINITION(PointElasticCondition)
void PrintData(std::ostream &rOStream) const override
Print object's data.
Definition: point_elastic_condition.hpp:136
void PrintInfo(std::ostream &rOStream) const override
Print information about this object.
Definition: point_elastic_condition.hpp:129
PointElasticCondition()
Definition: point_elastic_condition.hpp:152
std::string Info() const override
Turn back information as a string.
Definition: point_elastic_condition.hpp:120
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