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.
fixed_pressure_2d.h
Go to the documentation of this file.
1 #if !defined(KRATOS_FIXED_PRESSURE_CONDITION_H_INCLUDED )
2 #define KRATOS_FIXED_PRESSURE_CONDITION_H_INCLUDED
3 
4 // External includes
5 #include "boost/smart_ptr.hpp"
6 
7 // Project includes
8 #include "includes/define.h"
9 #include "includes/serializer.h"
10 #include "includes/condition.h"
12 
13 
14 namespace Kratos
15 {
16 class FixedPressure2D : public Condition
17 {
18 public:
21 
24 
26  FixedPressure2D(IndexType NewId, GeometryType::Pointer pGeometry);
27 
28  FixedPressure2D(IndexType NewId, GeometryType::Pointer pGeometry, PropertiesType::Pointer pProperties);
29 
31  virtual ~FixedPressure2D() override;
32 
33 
34  Condition::Pointer Create(IndexType NewId, NodesArrayType const& ThisNodes, PropertiesType::Pointer pProperties) const override;
35 
36  void CalculateLocalSystem(MatrixType& rLeftHandSideMatrix, VectorType& rRightHandSideVector, const ProcessInfo& rCurrentProcessInfo) override;
37 
38  void CalculateRightHandSide(VectorType& rRightHandSideVector, const ProcessInfo& rCurrentProcessInfo) override;
39 
40  //virtual void CalculateLeftHandSide(MatrixType& rLeftHandSideMatrix, ProcessInfo& rCurrentProcessInfo) override;
41 
42  void EquationIdVector(EquationIdVectorType& rResult, const ProcessInfo& rCurrentProcessInfo) const override;
43 
44  void GetDofList(DofsVectorType& ConditionalDofList,const ProcessInfo& CurrentProcessInfo) const override;
45 
46 protected:
47 
48 
49 private:
50 
51  friend class Serializer;
52 
53  // A private default constructor necessary for serialization
55  {
56  }
57 
58 
59  }; // Class FixedPressure2D
60 
61 } //namespace kratos
62 #endif
Base class for all Conditions.
Definition: condition.h:59
std::vector< std::size_t > EquationIdVectorType
Definition: condition.h:98
std::vector< DofType::Pointer > DofsVectorType
Definition: condition.h:100
Definition: fixed_pressure_2d.h:17
virtual ~FixedPressure2D() override
Destructor.
Definition: fixed_pressure_2d.cpp:28
KRATOS_CLASS_POINTER_DEFINITION(FixedPressure2D)
Counted pointer of FixedPressure2D.
void CalculateLocalSystem(MatrixType &rLeftHandSideMatrix, VectorType &rRightHandSideVector, const ProcessInfo &rCurrentProcessInfo) override
Definition: fixed_pressure_2d.cpp:45
void CalculateRightHandSide(VectorType &rRightHandSideVector, const ProcessInfo &rCurrentProcessInfo) override
Definition: fixed_pressure_2d.cpp:34
Condition::Pointer Create(IndexType NewId, NodesArrayType const &ThisNodes, PropertiesType::Pointer pProperties) const override
It creates a new condition pointer.
Definition: fixed_pressure_2d.cpp:23
void EquationIdVector(EquationIdVectorType &rResult, const ProcessInfo &rCurrentProcessInfo) const override
Definition: fixed_pressure_2d.cpp:72
void GetDofList(DofsVectorType &ConditionalDofList, const ProcessInfo &CurrentProcessInfo) const override
Definition: fixed_pressure_2d.cpp:86
std::size_t IndexType
Definition: flags.h:74
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
REF: G. R. Cowper, GAUSSIAN QUADRATURE FORMULAS FOR TRIANGLES.
Definition: mesh_condition.cpp:21