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.
water_fixed_velocity_2d.h
Go to the documentation of this file.
1 #if !defined(KRATOS_WATER_FIXED_VELOCITY_CONDITION_H_INCLUDED )
2 #define KRATOS_WATER_FIXED_VELOCITY_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 {
17  : public Condition
18  {
19  public:
22 
25 
27  WaterFixedVelocity2D(IndexType NewId, GeometryType::Pointer pGeometry);
28 
29  WaterFixedVelocity2D(IndexType NewId, GeometryType::Pointer pGeometry, PropertiesType::Pointer pProperties);
30 
32  virtual ~WaterFixedVelocity2D();
33 
34 
35  Condition::Pointer Create(IndexType NewId, NodesArrayType const& ThisNodes, PropertiesType::Pointer pProperties) const;
36 
37  void CalculateLocalSystem(MatrixType& rLeftHandSideMatrix, VectorType& rRightHandSideVector, ProcessInfo& rCurrentProcessInfo);
38 
39  void CalculateRightHandSide(VectorType& rRightHandSideVector, ProcessInfo& rCurrentProcessInfo);
40 
41  //virtual void CalculateLeftHandSide(MatrixType& rLeftHandSideMatrix, ProcessInfo& rCurrentProcessInfo);
42 
43  void EquationIdVector(EquationIdVectorType& rResult, ProcessInfo& rCurrentProcessInfo);
44 
45  void GetDofList(DofsVectorType& ConditionalDofList,ProcessInfo& CurrentProcessInfo);
46 
47  protected:
48 
49 
50  private:
51 
52  friend class Serializer;
53 
54  // A private default constructor necessary for serialization
56  {
57  }
58 
59 
60  }; // Class WaterFixedVelocity2D
61 
62 } //namespace kratos
63 #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
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
Definition: water_fixed_velocity_2d.h:18
void CalculateRightHandSide(VectorType &rRightHandSideVector, ProcessInfo &rCurrentProcessInfo)
Definition: water_fixed_velocity_2d.cpp:34
void CalculateLocalSystem(MatrixType &rLeftHandSideMatrix, VectorType &rRightHandSideVector, ProcessInfo &rCurrentProcessInfo)
Definition: water_fixed_velocity_2d.cpp:53
KRATOS_CLASS_POINTER_DEFINITION(WaterFixedVelocity2D)
Counted pointer of WaterFixedVelocity2D.
void GetDofList(DofsVectorType &ConditionalDofList, ProcessInfo &CurrentProcessInfo)
Definition: water_fixed_velocity_2d.cpp:100
void EquationIdVector(EquationIdVectorType &rResult, ProcessInfo &rCurrentProcessInfo)
Definition: water_fixed_velocity_2d.cpp:82
Condition::Pointer Create(IndexType NewId, NodesArrayType const &ThisNodes, PropertiesType::Pointer pProperties) const
It creates a new condition pointer.
Definition: water_fixed_velocity_2d.cpp:23
virtual ~WaterFixedVelocity2D()
Destructor.
Definition: water_fixed_velocity_2d.cpp:28
REF: G. R. Cowper, GAUSSIAN QUADRATURE FORMULAS FOR TRIANGLES.
Definition: mesh_condition.cpp:21