13 #if !defined(KRATOS_COMPRESSIBLE_POTENTIAL_FLOW_ELEMENT_H)
14 #define KRATOS_COMPRESSIBLE_POTENTIAL_FLOW_ELEMENT_H
23 #include "utilities/geometry_utilities.h"
46 template <
int Dim,
int NumNodes>
50 template <
unsigned int TNumNodes,
unsigned int TDim>
65 static constexpr
int TDim = Dim;
106 GeometryType::Pointer pGeometry,
107 PropertiesType::Pointer pProperties)
108 :
Element(NewId, pGeometry, pProperties)
145 PropertiesType::Pointer pProperties)
const override;
148 GeometryType::Pointer pGeom,
149 PropertiesType::Pointer pProperties)
const override;
174 std::vector<double>& rValues,
178 std::vector<int>& rValues,
196 std::string
Info()
const override;
199 void PrintInfo(std::ostream& rOStream)
const override;
202 void PrintData(std::ostream& rOStream)
const override;
224 void GetDofListNormalElement(
DofsVectorType& rElementalDofList)
const;
226 void GetDofListKuttaElement(
DofsVectorType& rElementalDofList)
const;
228 void GetDofListWakeElement(
DofsVectorType& rElementalDofList)
const;
230 void CalculateLeftHandSideNormalElement(
MatrixType& rLeftHandSideMatrix,
233 void CalculateRightHandSideNormalElement(
VectorType& rRightHandSideVector,
236 void CalculateLeftHandSideWakeElement(
MatrixType& rLeftHandSideMatrix,
239 void CalculateRightHandSideWakeElement(
VectorType& rRightHandSideVector,
252 void CalculateLeftHandSideSubdividedElement(
Matrix& lhs_positive,
256 void CalculateVolumesSubdividedElement(
double& rUpper_vol,
260 void ComputeLHSGaussPointContribution(
const double weight,
264 void AssignLeftHandSideSubdividedElement(
Matrix& rLeftHandSideMatrix,
272 void AssignLeftHandSideWakeElement(
MatrixType& rLeftHandSideMatrix,
278 void AssignLeftHandSideWakeNode(
MatrixType& rLeftHandSideMatrix,
283 unsigned int row)
const;
285 void AssignRightHandSideWakeNode(
VectorType& rRightHandSideVector,
290 unsigned int& rRow)
const;
292 void ComputeElementInternalEnergy();
304 void save(
Serializer& rSerializer)
const override;
Definition: compressible_potential_flow_element.h:48
double ComputeDensityDerivative(const double density, const ProcessInfo &rCurrentProcessInfo) const
Definition: compressible_potential_flow_element.cpp:858
std::string Info() const override
Turn back information as a string.
Definition: compressible_potential_flow_element.cpp:273
CompressiblePotentialFlowElement(IndexType NewId=0)
Default constuctor.
Definition: compressible_potential_flow_element.h:82
static constexpr int TDim
Definition: compressible_potential_flow_element.h:65
Element::Pointer Create(IndexType NewId, NodesArrayType const &ThisNodes, PropertiesType::Pointer pProperties) const override
It creates a new element pointer.
Definition: compressible_potential_flow_element.cpp:26
void CalculateRightHandSide(VectorType &rRightHandSideVector, const ProcessInfo &rCurrentProcessInfo) override
Definition: compressible_potential_flow_element.cpp:63
KRATOS_CLASS_INTRUSIVE_POINTER_DEFINITION(CompressiblePotentialFlowElement)
CompressiblePotentialFlowElement(CompressiblePotentialFlowElement &&rOther)=delete
CompressiblePotentialFlowElement(IndexType NewId, GeometryType::Pointer pGeometry, PropertiesType::Pointer pProperties)
Definition: compressible_potential_flow_element.h:105
void CalculateLeftHandSide(MatrixType &rLeftHandSideMatrix, const ProcessInfo &rCurrentProcessInfo) override
Definition: compressible_potential_flow_element.cpp:76
CompressiblePotentialFlowElement(CompressiblePotentialFlowElement const &rOther)=delete
~CompressiblePotentialFlowElement() override
Definition: compressible_potential_flow_element.h:125
void CalculateLocalSystem(MatrixType &rLeftHandSideMatrix, VectorType &rRightHandSideVector, const ProcessInfo &rCurrentProcessInfo) override
Definition: compressible_potential_flow_element.cpp:55
void CalculateOnIntegrationPoints(const Variable< double > &rVariable, std::vector< double > &rValues, const ProcessInfo &rCurrentProcessInfo) override
Definition: compressible_potential_flow_element.cpp:181
CompressiblePotentialFlowElement & operator=(CompressiblePotentialFlowElement &&rOther)=delete
Move operator.
CompressiblePotentialFlowElement & operator=(CompressiblePotentialFlowElement const &rOther)=delete
Assignment operator.
void GetDofList(DofsVectorType &rElementalDofList, const ProcessInfo &rCurrentProcessInfo) const override
Definition: compressible_potential_flow_element.cpp:117
void EquationIdVector(EquationIdVectorType &rResult, const ProcessInfo &CurrentProcessInfo) const override
Definition: compressible_potential_flow_element.cpp:89
void PrintInfo(std::ostream &rOStream) const override
Print information about this object.
Definition: compressible_potential_flow_element.cpp:281
void FinalizeSolutionStep(const ProcessInfo &rCurrentProcessInfo) override
Definition: compressible_potential_flow_element.cpp:145
static constexpr int TNumNodes
Definition: compressible_potential_flow_element.h:64
Element BaseType
Definition: compressible_potential_flow_element.h:63
void PrintData(std::ostream &rOStream) const override
Print object's data.
Definition: compressible_potential_flow_element.cpp:287
Element::Pointer Clone(IndexType NewId, NodesArrayType const &ThisNodes) const override
It creates a new element pointer and clones the previous element data.
Definition: compressible_potential_flow_element.cpp:45
double ComputeDensity(const ProcessInfo &rCurrentProcessInfo) const
Definition: compressible_potential_flow_element.cpp:819
CompressiblePotentialFlowElement(IndexType NewId, const NodesArrayType &ThisNodes)
Definition: compressible_potential_flow_element.h:89
int Check(const ProcessInfo &rCurrentProcessInfo) const override
Definition: compressible_potential_flow_element.cpp:154
CompressiblePotentialFlowElement(IndexType NewId, GeometryType::Pointer pGeometry)
Definition: compressible_potential_flow_element.h:97
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: 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
float density
Definition: face_heat.py:56
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: compressible_potential_flow_element.h:52
array_1d< double, TNumNodes > N
Definition: compressible_potential_flow_element.h:57
double vol
Definition: compressible_potential_flow_element.h:54
array_1d< double, TNumNodes > potentials
Definition: compressible_potential_flow_element.h:53
BoundedMatrix< double, TNumNodes, TDim > DN_DX
Definition: compressible_potential_flow_element.h:56
array_1d< double, TNumNodes > distances
Definition: compressible_potential_flow_element.h:53