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.
U_Pw_discharge_condition.hpp
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 and Danilo Cavalcanti
11 //
12 
13 
14 #if !defined(KRATOS_U_PW_DISCHARGE_CONDITION_H_INCLUDED )
15 #define KRATOS_U_PW_DISCHARGE_CONDITION_H_INCLUDED
16 
17 // Project includes
18 #include "includes/serializer.h"
19 
20 // Application includes
21 #include "custom_conditions/U_Pw_condition.hpp"
23 
24 namespace Kratos
25 {
26 
27 template< unsigned int TDim, unsigned int TNumNodes >
28 class KRATOS_API(POROMECHANICS_APPLICATION) UPwDischargeCondition : public UPwCondition<TDim,TNumNodes>
29 {
30 
31 public:
32 
34 
35  typedef std::size_t IndexType;
37  typedef Node NodeType;
40  typedef Vector VectorType;
41  typedef Matrix MatrixType;
43 
44 //----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
45 
46  // Default constructor
47  UPwDischargeCondition() : UPwCondition<TDim,TNumNodes>() {}
48 
49  // Constructor 1
50  UPwDischargeCondition( IndexType NewId, GeometryType::Pointer pGeometry ) : UPwCondition<TDim,TNumNodes>(NewId, pGeometry) {}
51 
52  // Constructor 2
53  UPwDischargeCondition( IndexType NewId, GeometryType::Pointer pGeometry, PropertiesType::Pointer pProperties ) : UPwCondition<TDim,TNumNodes>(NewId, pGeometry, pProperties) {}
54 
55  // Destructor
56  ~UPwDischargeCondition() override {}
57 
58 //----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
59 
60  Condition::Pointer Create(IndexType NewId,NodesArrayType const& ThisNodes,PropertiesType::Pointer pProperties ) const override;
61 
62 //----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
63 
64 protected:
65 
66  // Member Variables
67 
68 //----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
69 
70  void CalculateRHS( VectorType& rRightHandSideVector, const ProcessInfo& CurrentProcessInfo ) override;
71 
72 //----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
73 
74 private:
75 
76  // Member Variables
77 
78 //----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
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 UPwDischargeCondition.
95 
96 } // namespace Kratos.
97 
98 #endif // KRATOS_U_PW_DISCHARGE_CONDITION_H_INCLUDED defined
Base class for all Conditions.
Definition: condition.h:59
std::size_t IndexType
Definition: flags.h:74
Geometry base class.
Definition: geometry.h:71
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
Definition: U_Pw_condition.hpp:37
Definition: U_Pw_discharge_condition.hpp:29
UPwDischargeCondition(IndexType NewId, GeometryType::Pointer pGeometry, PropertiesType::Pointer pProperties)
Definition: U_Pw_discharge_condition.hpp:53
UPwDischargeCondition(IndexType NewId, GeometryType::Pointer pGeometry)
Definition: U_Pw_discharge_condition.hpp:50
Geometry< NodeType >::PointsArrayType NodesArrayType
Definition: U_Pw_discharge_condition.hpp:39
KRATOS_CLASS_POINTER_DEFINITION(UPwDischargeCondition)
~UPwDischargeCondition() override
Definition: U_Pw_discharge_condition.hpp:56
Node NodeType
Definition: U_Pw_discharge_condition.hpp:37
Properties PropertiesType
Definition: U_Pw_discharge_condition.hpp:36
Vector VectorType
Definition: U_Pw_discharge_condition.hpp:40
UPwDischargeCondition()
Definition: U_Pw_discharge_condition.hpp:47
Matrix MatrixType
Definition: U_Pw_discharge_condition.hpp:41
Geometry< NodeType > GeometryType
Definition: U_Pw_discharge_condition.hpp:38
std::size_t IndexType
Definition: U_Pw_discharge_condition.hpp:35
#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
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