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_velocity_3d.h
Go to the documentation of this file.
1 #if !defined(KRATOS_FIXED_VELOCITY_CONDITION_3D_H_INCLUDED )
2 #define KRATOS_FIXED_VELOCITY_CONDITION_3D_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 
17 class FixedVelocity3D : public Condition
18 {
19 public:
22 
25 
27  FixedVelocity3D(IndexType NewId, GeometryType::Pointer pGeometry);
28 
29  FixedVelocity3D(IndexType NewId, GeometryType::Pointer pGeometry, PropertiesType::Pointer pProperties);
30 
32  virtual ~FixedVelocity3D() override;
33 
34 
35  Condition::Pointer Create(IndexType NewId, NodesArrayType const& ThisNodes, PropertiesType::Pointer pProperties) const override;
36 
37  void CalculateLocalSystem(MatrixType& rLeftHandSideMatrix, VectorType& rRightHandSideVector, const ProcessInfo& rCurrentProcessInfo) override;
38 
39  void CalculateRightHandSide(VectorType& rRightHandSideVector, const ProcessInfo& rCurrentProcessInfo) override;
40 
41  //virtual void CalculateLeftHandSide(MatrixType& rLeftHandSideMatrix, ProcessInfo& rCurrentProcessInfo) override;
42 
43  void EquationIdVector(EquationIdVectorType& rResult, const ProcessInfo& rCurrentProcessInfo) const override;
44 
45  void GetDofList(DofsVectorType& ConditionalDofList,const ProcessInfo& CurrentProcessInfo) const override;
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 FixedVelocity3D
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
Definition: fixed_velocity_3d.h:18
void GetDofList(DofsVectorType &ConditionalDofList, const ProcessInfo &CurrentProcessInfo) const override
Definition: fixed_velocity_3d.cpp:100
void CalculateLocalSystem(MatrixType &rLeftHandSideMatrix, VectorType &rRightHandSideVector, const ProcessInfo &rCurrentProcessInfo) override
Definition: fixed_velocity_3d.cpp:53
void CalculateRightHandSide(VectorType &rRightHandSideVector, const ProcessInfo &rCurrentProcessInfo) override
Definition: fixed_velocity_3d.cpp:34
KRATOS_CLASS_POINTER_DEFINITION(FixedVelocity3D)
Counted pointer of FixedVelocity3D.
virtual ~FixedVelocity3D() override
Destructor.
Definition: fixed_velocity_3d.cpp:28
Condition::Pointer Create(IndexType NewId, NodesArrayType const &ThisNodes, PropertiesType::Pointer pProperties) const override
It creates a new condition pointer.
Definition: fixed_velocity_3d.cpp:23
void EquationIdVector(EquationIdVectorType &rResult, const ProcessInfo &rCurrentProcessInfo) const override
Definition: fixed_velocity_3d.cpp:82
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