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.
infinite_domain_condition.hpp
Go to the documentation of this file.
1 //
2 // Project Name: KratosDamApplication $
3 // Last Modified by: $Author: Lorenzo Gracia $
4 // Date: $Date: January 2016 $
5 // Revision: $Revision: 1.0 $
6 //
7 
8 #if !defined(KRATOS_INFINITE_DOMAIN_CONDITION_H_INCLUDED )
9 #define KRATOS_INFINITE_DOMAIN_CONDITION_H_INCLUDED
10 
11 // System includes
12 #include <cmath>
13 
14 // Project includes
16 #include "includes/define.h"
17 #include "includes/condition.h"
18 #include "includes/serializer.h"
19 #include "includes/process_info.h"
20 
21 // Application includes
23 
24 namespace Kratos
25 {
26 
27 template< unsigned int TDim, unsigned int TNumNodes >
28 class InfiniteDomainCondition : public FreeSurfaceCondition<TDim,TNumNodes>
29 {
30 public:
31 
33 
34  typedef std::size_t IndexType;
36  typedef Node NodeType;
39  typedef Vector VectorType;
40  typedef Matrix MatrixType;
42 
43 //----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
44 
45  // Default constructor
47 
48  // Constructor 1
49  InfiniteDomainCondition( IndexType NewId, GeometryType::Pointer pGeometry ) : FreeSurfaceCondition<TDim,TNumNodes>(NewId, pGeometry) {}
50 
51  // Constructor 2
52  InfiniteDomainCondition( IndexType NewId, GeometryType::Pointer pGeometry, PropertiesType::Pointer pProperties ) : FreeSurfaceCondition<TDim,TNumNodes>(NewId, pGeometry, pProperties)
53  {
54  }
55 
56  // Destructor
58 
59 //----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
60 
61  Condition::Pointer Create(IndexType NewId,NodesArrayType const& ThisNodes,PropertiesType::Pointer pProperties ) const override;
62 
63 //----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
64 
65 protected:
66 
67  // Member Variables
68 
69 //----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
70 
71 
72  void CalculateLHS( MatrixType& rLeftHandSideMatrix, const ProcessInfo& rCurrentProcessInfo ) override;
73 
74  void CalculateRHS( VectorType& rRightHandSideVector, const ProcessInfo& rCurrentProcessInfo ) override;
75 
76 //----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
77 
78 private:
79 
80  // Serialization
81 
82  friend class Serializer;
83 
84  void save(Serializer& rSerializer) const override
85  {
87  }
88 
89  void load(Serializer& rSerializer) override
90  {
92  }
93 
94 }; // class InfiniteDomainCondition.
95 
96 } // namespace Kratos.
97 
98 #endif // KRATOS_INFINITE_DOMAIN_CONDITION_H_INCLUDED defined
Base class for all Conditions.
Definition: condition.h:59
std::size_t IndexType
Definition: flags.h:74
Definition: free_surface_condition.hpp:28
Geometry base class.
Definition: geometry.h:71
Definition: infinite_domain_condition.hpp:29
std::size_t IndexType
Definition: infinite_domain_condition.hpp:34
KRATOS_CLASS_POINTER_DEFINITION(InfiniteDomainCondition)
virtual ~InfiniteDomainCondition()
Definition: infinite_domain_condition.hpp:57
Matrix MatrixType
Definition: infinite_domain_condition.hpp:40
Geometry< NodeType > GeometryType
Definition: infinite_domain_condition.hpp:37
void CalculateRHS(VectorType &rRightHandSideVector, const ProcessInfo &rCurrentProcessInfo) override
Definition: infinite_domain_condition.cpp:76
Vector VectorType
Definition: infinite_domain_condition.hpp:39
void CalculateLHS(MatrixType &rLeftHandSideMatrix, const ProcessInfo &rCurrentProcessInfo) override
Definition: infinite_domain_condition.cpp:23
Properties PropertiesType
Definition: infinite_domain_condition.hpp:35
Geometry< NodeType >::PointsArrayType NodesArrayType
Definition: infinite_domain_condition.hpp:38
InfiniteDomainCondition(IndexType NewId, GeometryType::Pointer pGeometry)
Definition: infinite_domain_condition.hpp:49
Condition::Pointer Create(IndexType NewId, NodesArrayType const &ThisNodes, PropertiesType::Pointer pProperties) const override
It creates a new condition pointer.
Definition: infinite_domain_condition.cpp:15
InfiniteDomainCondition(IndexType NewId, GeometryType::Pointer pGeometry, PropertiesType::Pointer pProperties)
Definition: infinite_domain_condition.hpp:52
InfiniteDomainCondition()
Definition: infinite_domain_condition.hpp:46
Node NodeType
Definition: infinite_domain_condition.hpp:36
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
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