13 #if !defined(KRATOS_INCOMPRESSIBLE_POTENTIAL_FLOW_VELOCITY_ELEMENT_H_INCLUDED)
14 #define KRATOS_INCOMPRESSIBLE_POTENTIAL_FLOW_VELOCITY_ELEMENT_H_INCLUDED
31 template <
unsigned int TDim,
unsigned int TNumNodes>
88 GeometryType::Pointer pGeometry)
98 GeometryType::Pointer pGeometry,
99 PropertiesType::Pointer pProperties)
100 :
BaseType(NewId, pGeometry, pProperties)
137 PropertiesType::Pointer pProperties)
const override
140 return Kratos::make_intrusive<IncompressiblePotentialFlowVelocityElement>(
154 GeometryType::Pointer pGeom,
155 PropertiesType::Pointer pProperties)
const override
158 return Kratos::make_intrusive<IncompressiblePotentialFlowVelocityElement>(
159 NewId, pGeom, pProperties);
175 return Kratos::make_intrusive<IncompressiblePotentialFlowVelocityElement>(
192 std::string
Info()
const override
194 std::stringstream buffer;
195 buffer <<
"IncompressiblePotentialFlowVelocityElement #" << this->
Id();
201 rOStream <<
"IncompressiblePotentialFlowVelocityElement #" << this->
Id();
212 void save(
Serializer& rSerializer)
const override
236 template <
unsigned int TDim,
unsigned int TNumNodes>
238 std::istream& rIStream,
242 template <
unsigned int TDim,
unsigned int TNumNodes>
244 std::ostream& rOStream,
248 rOStream <<
" : " << std::endl;
Base class for all Elements.
Definition: element.h:60
void PrintData(std::ostream &rOStream) const override
Print object's data.
Definition: element.h:1135
PropertiesType::Pointer pGetProperties()
returns the pointer to the property of the element. Does not throw an error, to allow copying of elem...
Definition: element.h:1014
std::size_t IndexType
Definition: flags.h:74
This defines the geometrical object, base definition of the element and condition entities.
Definition: geometrical_object.h:58
GeometryType & GetGeometry()
Returns the reference of the geometry.
Definition: geometrical_object.h:158
Geometry base class.
Definition: geometry.h:71
PointerVector< TPointType > PointsArrayType
Definition: geometry.h:118
GeometryData::ShapeFunctionsGradientsType ShapeFunctionsGradientsType
Definition: geometry.h:189
Definition: incompressible_potential_flow_velocity_element.h:34
void PrintInfo(std::ostream &rOStream) const override
Print information about this object.
Definition: incompressible_potential_flow_velocity_element.h:199
void CalculateOnIntegrationPoints(const Variable< array_1d< double, 3 >> &rVariable, std::vector< array_1d< double, 3 >> &rValues, const ProcessInfo &rCurrentProcessInfo) override
Definition: incompressible_potential_flow_velocity_element.cpp:32
IncompressiblePotentialFlowVelocityElement(IndexType NewId=0)
Definition: incompressible_potential_flow_velocity_element.h:67
std::string Info() const override
Turn back information as a string.
Definition: incompressible_potential_flow_velocity_element.h:192
Element::Pointer Create(IndexType NewId, NodesArrayType const &ThisNodes, PropertiesType::Pointer pProperties) const override
Definition: incompressible_potential_flow_velocity_element.h:134
Element::Pointer Create(IndexType NewId, GeometryType::Pointer pGeom, PropertiesType::Pointer pProperties) const override
Definition: incompressible_potential_flow_velocity_element.h:152
IncompressiblePotentialFlowVelocityElement(IndexType NewId, GeometryType::Pointer pGeometry, PropertiesType::Pointer pProperties)
Definition: incompressible_potential_flow_velocity_element.h:96
KRATOS_CLASS_INTRUSIVE_POINTER_DEFINITION(IncompressiblePotentialFlowVelocityElement)
Element::Pointer Clone(IndexType NewId, NodesArrayType const &ThisNodes) const override
Definition: incompressible_potential_flow_velocity_element.h:170
IncompressiblePotentialFlowVelocityElement(IndexType NewId, GeometryType::Pointer pGeometry)
Definition: incompressible_potential_flow_velocity_element.h:86
IncompressiblePotentialFlowVelocityElement(IndexType NewId, const NodesArrayType &ThisNodes)
Definition: incompressible_potential_flow_velocity_element.h:76
~IncompressiblePotentialFlowVelocityElement() override=default
const Variable< double > & GetVariable() const override
Definition: incompressible_potential_flow_velocity_element.cpp:71
IncompressiblePotentialFlowVelocityElement(IncompressiblePotentialFlowVelocityElement const &rOther)
Definition: incompressible_potential_flow_velocity_element.h:107
IndexType Id() const
Definition: indexed_object.h:107
Definition: amatrix_interface.h:41
Definition: laplace_element.h:33
This class defines the node.
Definition: node.h:65
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
Properties encapsulates data shared by different Elements or Conditions. It can store any type of dat...
Definition: properties.h:69
The serialization consists in storing the state of an object into a storage format like data file or ...
Definition: serializer.h:123
#define KRATOS_SERIALIZE_SAVE_BASE_CLASS(Serializer, BaseType)
Definition: define.h:812
#define KRATOS_CATCH(MoreInfo)
Definition: define.h:110
#define KRATOS_TRY
Definition: define.h:109
#define KRATOS_SERIALIZE_LOAD_BASE_CLASS(Serializer, BaseType)
Definition: define.h:815
REF: G. R. Cowper, GAUSSIAN QUADRATURE FORMULAS FOR TRIANGLES.
Definition: mesh_condition.cpp:21
std::istream & operator>>(std::istream &rIStream, LinearMasterSlaveConstraint &rThis)
input stream function
std::ostream & operator<<(std::ostream &rOStream, const LinearMasterSlaveConstraint &rThis)
output stream function
Definition: linear_master_slave_constraint.h:432
def load(f)
Definition: ode_solve.py:307