13 #if !defined(KRATOS_INCOMPRESSIBLE_PERTURBATION_POTENTIAL_FLOW_ELEMENT_H)
14 #define KRATOS_INCOMPRESSIBLE_PERTURBATION_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;
143 std::vector<double>& rValues,
147 std::vector<int>& rValues,
165 std::string
Info()
const override;
168 void PrintInfo(std::ostream& rOStream)
const override;
171 void PrintData(std::ostream& rOStream)
const override;
185 void GetDofListNormalElement(
DofsVectorType& rElementalDofList)
const;
187 void GetDofListKuttaElement(
DofsVectorType& rElementalDofList)
const;
189 void GetDofListWakeElement(
DofsVectorType& rElementalDofList)
const;
191 void CalculateLeftHandSideNormalElement(
MatrixType& rLeftHandSideMatrix,
194 void CalculateRightHandSideNormalElement(
VectorType& rRightHandSideVector,
197 void CalculateLeftHandSideWakeElement(
MatrixType& rLeftHandSideMatrix,
205 void CalculateRightHandSideWakeElement(
VectorType& rRightHandSideVector,
216 void CalculateVolumesSubdividedElement(
double& rUpper_vol,
220 void ComputeLHSGaussPointContribution(
const double weight,
224 void AssignLeftHandSideSubdividedElement(
MatrixType& rLeftHandSideMatrix,
231 void AssignLeftHandSideWakeElement(
MatrixType& rLeftHandSideMatrix,
236 void AssignLeftHandSideWakeNode(
MatrixType& rLeftHandSideMatrix,
240 unsigned int&
row)
const;
242 void AssignRightHandSideWakeNode(
VectorType& rRightHandSideVector,
247 unsigned int& rRow)
const;
255 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_perturbation_potential_flow_element.h:30
void PrintData(std::ostream &rOStream) const override
Print object's data.
Definition: incompressible_perturbation_potential_flow_element.cpp:273
IncompressiblePerturbationPotentialFlowElement(IndexType NewId, const NodesArrayType &ThisNodes)
Definition: incompressible_perturbation_potential_flow_element.h:68
IncompressiblePerturbationPotentialFlowElement(IndexType NewId, GeometryType::Pointer pGeometry)
Definition: incompressible_perturbation_potential_flow_element.h:74
IncompressiblePerturbationPotentialFlowElement(IncompressiblePerturbationPotentialFlowElement &&rOther)=delete
std::string Info() const override
Turn back information as a string.
Definition: incompressible_perturbation_potential_flow_element.cpp:259
IncompressiblePerturbationPotentialFlowElement & operator=(IncompressiblePerturbationPotentialFlowElement const &rOther)=delete
Assignment operator.
IncompressiblePerturbationPotentialFlowElement(IndexType NewId, GeometryType::Pointer pGeometry, PropertiesType::Pointer pProperties)
Definition: incompressible_perturbation_potential_flow_element.h:80
IncompressiblePerturbationPotentialFlowElement(IncompressiblePerturbationPotentialFlowElement const &rOther)=delete
KRATOS_CLASS_INTRUSIVE_POINTER_DEFINITION(IncompressiblePerturbationPotentialFlowElement)
Element BaseType
Definition: incompressible_perturbation_potential_flow_element.h:44
int Check(const ProcessInfo &rCurrentProcessInfo) const override
Definition: incompressible_perturbation_potential_flow_element.cpp:148
Element::Pointer Create(IndexType NewId, NodesArrayType const &ThisNodes, PropertiesType::Pointer pProperties) const override
It creates a new element pointer.
Definition: incompressible_perturbation_potential_flow_element.cpp:25
void GetDofList(DofsVectorType &rElementalDofList, const ProcessInfo &rCurrentProcessInfo) const override
Definition: incompressible_perturbation_potential_flow_element.cpp:117
~IncompressiblePerturbationPotentialFlowElement() override
Definition: incompressible_perturbation_potential_flow_element.h:98
void EquationIdVector(EquationIdVectorType &rResult, const ProcessInfo &CurrentProcessInfo) const override
Definition: incompressible_perturbation_potential_flow_element.cpp:89
Element::Pointer Clone(IndexType NewId, NodesArrayType const &ThisNodes) const override
It creates a new element pointer and clones the previous element data.
Definition: incompressible_perturbation_potential_flow_element.cpp:45
void PrintInfo(std::ostream &rOStream) const override
Print information about this object.
Definition: incompressible_perturbation_potential_flow_element.cpp:267
static constexpr int TDim
Definition: incompressible_perturbation_potential_flow_element.h:46
void CalculateLeftHandSide(MatrixType &rLeftHandSideMatrix, const ProcessInfo &rCurrentProcessInfo) override
Definition: incompressible_perturbation_potential_flow_element.cpp:76
void CalculateOnIntegrationPoints(const Variable< double > &rVariable, std::vector< double > &rValues, const ProcessInfo &rCurrentProcessInfo) override
Definition: incompressible_perturbation_potential_flow_element.cpp:175
void CalculateLocalSystem(MatrixType &rLeftHandSideMatrix, VectorType &rRightHandSideVector, const ProcessInfo &rCurrentProcessInfo) override
Definition: incompressible_perturbation_potential_flow_element.cpp:55
static constexpr int TNumNodes
Definition: incompressible_perturbation_potential_flow_element.h:45
IncompressiblePerturbationPotentialFlowElement(IndexType NewId=0)
Default constuctor.
Definition: incompressible_perturbation_potential_flow_element.h:63
void CalculateRightHandSide(VectorType &rRightHandSideVector, const ProcessInfo &rCurrentProcessInfo) override
Definition: incompressible_perturbation_potential_flow_element.cpp:63
IncompressiblePerturbationPotentialFlowElement & operator=(IncompressiblePerturbationPotentialFlowElement &&rOther)=delete
Move operator.
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_perturbation_potential_flow_element.h:34
array_1d< double, TNumNodes > distances
Definition: incompressible_perturbation_potential_flow_element.h:35
array_1d< double, TNumNodes > potentials
Definition: incompressible_perturbation_potential_flow_element.h:35
array_1d< double, TNumNodes > N
Definition: incompressible_perturbation_potential_flow_element.h:39
BoundedMatrix< double, TNumNodes, TDim > DN_DX
Definition: incompressible_perturbation_potential_flow_element.h:38
double vol
Definition: incompressible_perturbation_potential_flow_element.h:36