13 #if !defined(KRATOS_INCOMPRESSIBLE_POTENTIAL_FLOW_ELEMENT_H)
14 #define KRATOS_INCOMPRESSIBLE_POTENTIAL_FLOW_ELEMENT_H
20 #include "utilities/geometry_utilities.h"
28 template <
int Dim,
int NumNodes>
32 template <
unsigned int TNumNodes,
unsigned int TDim>
46 static constexpr
int TDim = Dim;
81 GeometryType::Pointer pGeometry,
82 PropertiesType::Pointer pProperties)
83 :
Element(NewId, pGeometry, pProperties){}
116 PropertiesType::Pointer pProperties)
const override;
119 GeometryType::Pointer pGeom,
120 PropertiesType::Pointer pProperties)
const override;
145 std::vector<double>& rValues,
149 std::vector<int>& rValues,
167 std::string
Info()
const override;
170 void PrintInfo(std::ostream& rOStream)
const override;
173 void PrintData(std::ostream& rOStream)
const override;
189 void GetDofListNormalElement(
DofsVectorType& rElementalDofList)
const;
191 void GetDofListKuttaElement(
DofsVectorType& rElementalDofList)
const;
193 void GetDofListWakeElement(
DofsVectorType& rElementalDofList)
const;
195 void CalculateLocalSystemNormalElement(
MatrixType& rLeftHandSideMatrix,
199 void CalculateLocalSystemWakeElement(
MatrixType& rLeftHandSideMatrix,
207 void ComputeLHSGaussPointContribution(
const double weight,
216 void AssignLocalSystemSubdividedElement(
MatrixType& rLeftHandSideMatrix,
223 void AssignLocalSystemWakeElement(
MatrixType& rLeftHandSideMatrix,
228 void AssignLocalSystemWakeNode(
MatrixType& rLeftHandSideMatrix,
232 unsigned int&
row)
const;
234 void ComputeElementInternalEnergy();
242 void save(
Serializer& rSerializer)
const override;
Base class for all Elements.
Definition: element.h:60
std::vector< DofType::Pointer > DofsVectorType
Definition: element.h:100
std::vector< std::size_t > EquationIdVectorType
Definition: element.h:98
std::size_t IndexType
Definition: flags.h:74
Definition: incompressible_potential_flow_element.h:30
IncompressiblePotentialFlowElement(IndexType NewId, GeometryType::Pointer pGeometry, PropertiesType::Pointer pProperties)
Definition: incompressible_potential_flow_element.h:80
IncompressiblePotentialFlowElement & operator=(IncompressiblePotentialFlowElement &&rOther)=delete
Move operator.
static constexpr int TNumNodes
Definition: incompressible_potential_flow_element.h:45
std::string Info() const override
Turn back information as a string.
Definition: incompressible_potential_flow_element.cpp:260
IncompressiblePotentialFlowElement(IncompressiblePotentialFlowElement const &rOther)=delete
Element::Pointer Create(IndexType NewId, NodesArrayType const &ThisNodes, PropertiesType::Pointer pProperties) const override
It creates a new element pointer.
Definition: incompressible_potential_flow_element.cpp:25
void PrintData(std::ostream &rOStream) const override
Print object's data.
Definition: incompressible_potential_flow_element.cpp:274
IncompressiblePotentialFlowElement(IncompressiblePotentialFlowElement &&rOther)=delete
static constexpr int TDim
Definition: incompressible_potential_flow_element.h:46
void CalculateRightHandSide(VectorType &rRightHandSideVector, const ProcessInfo &rCurrentProcessInfo) override
Definition: incompressible_potential_flow_element.cpp:68
~IncompressiblePotentialFlowElement() override
Definition: incompressible_potential_flow_element.h:98
void GetDofList(DofsVectorType &rElementalDofList, const ProcessInfo &rCurrentProcessInfo) const override
Definition: incompressible_potential_flow_element.cpp:114
KRATOS_CLASS_INTRUSIVE_POINTER_DEFINITION(IncompressiblePotentialFlowElement)
int Check(const ProcessInfo &rCurrentProcessInfo) const override
Definition: incompressible_potential_flow_element.cpp:151
IncompressiblePotentialFlowElement(IndexType NewId, GeometryType::Pointer pGeometry)
Definition: incompressible_potential_flow_element.h:74
IncompressiblePotentialFlowElement & operator=(IncompressiblePotentialFlowElement const &rOther)=delete
Assignment operator.
void CalculateOnIntegrationPoints(const Variable< double > &rVariable, std::vector< double > &rValues, const ProcessInfo &rCurrentProcessInfo) override
Definition: incompressible_potential_flow_element.cpp:178
void FinalizeSolutionStep(const ProcessInfo &rCurrentProcessInfo) override
Definition: incompressible_potential_flow_element.cpp:142
Element::Pointer Clone(IndexType NewId, NodesArrayType const &ThisNodes) const override
It creates a new element pointer and clones the previous element data.
Definition: incompressible_potential_flow_element.cpp:45
void CalculateLocalSystem(MatrixType &rLeftHandSideMatrix, VectorType &rRightHandSideVector, const ProcessInfo &rCurrentProcessInfo) override
Definition: incompressible_potential_flow_element.cpp:55
void CalculateLeftHandSide(MatrixType &rLeftHandSideMatrix, const ProcessInfo &rCurrentProcessInfo) override
Definition: incompressible_potential_flow_element.cpp:77
IncompressiblePotentialFlowElement(IndexType NewId=0)
Default constuctor.
Definition: incompressible_potential_flow_element.h:63
Element BaseType
Definition: incompressible_potential_flow_element.h:44
IncompressiblePotentialFlowElement(IndexType NewId, const NodesArrayType &ThisNodes)
Definition: incompressible_potential_flow_element.h:68
void PrintInfo(std::ostream &rOStream) const override
Print information about this object.
Definition: incompressible_potential_flow_element.cpp:268
void EquationIdVector(EquationIdVectorType &rResult, const ProcessInfo &CurrentProcessInfo) const override
Definition: incompressible_potential_flow_element.cpp:86
Definition: amatrix_interface.h:41
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
AMatrix::MatrixRow< const TExpressionType > row(AMatrix::MatrixExpression< TExpressionType, TCategory > const &TheExpression, std::size_t RowIndex)
Definition: amatrix_interface.h:649
lhs
Definition: generate_frictional_mortar_condition.py:297
data
Definition: mesh_to_mdpa_converter.py:59
def load(f)
Definition: ode_solve.py:307
Definition: incompressible_potential_flow_element.h:34
array_1d< double, TNumNodes > N
Definition: incompressible_potential_flow_element.h:39
array_1d< double, TNumNodes > potentials
Definition: incompressible_potential_flow_element.h:35
BoundedMatrix< double, TNumNodes, TDim > DN_DX
Definition: incompressible_potential_flow_element.h:38
array_1d< double, TNumNodes > distances
Definition: incompressible_potential_flow_element.h:35
double vol
Definition: incompressible_potential_flow_element.h:36