13 #if !defined(KRATOS_INCOMPRESSIBLE_POTENTIAL_FLOW_VELOCITY_INLET_CONDITION_H_INCLUDED)
14 #define KRATOS_INCOMPRESSIBLE_POTENTIAL_FLOW_VELOCITY_INLET_CONDITION_H_INCLUDED
40 unsigned int TNumNodes = TDim>
93 GeometryType::Pointer pGeometry)
106 GeometryType::Pointer pGeometry,
107 PropertiesType::Pointer pProperties)
108 :
BaseType(NewId, pGeometry, pProperties)
147 PropertiesType::Pointer pProperties)
const override
149 return Kratos::make_intrusive<IncompressiblePotentialFlowVelocityInletCondition>(
155 GeometryType::Pointer pGeom,
156 PropertiesType::Pointer pProperties)
const override
158 return Kratos::make_intrusive<IncompressiblePotentialFlowVelocityInletCondition>(
159 NewId, pGeom, pProperties);
174 Condition::Pointer p_new_condition =
Create(
177 p_new_condition->SetData(this->
GetData());
178 p_new_condition->SetFlags(this->
GetFlags());
180 return p_new_condition;
189 const ProcessInfo& rCurrentProcessInfo)
const override;
198 const ProcessInfo& CurrentProcessInfo)
const override;
202 int Step = 0)
const override;
224 std::string
Info()
const override;
227 void PrintInfo(std::ostream& rOStream)
const override;
230 void PrintData(std::ostream& rOStream)
const override;
240 void save(
Serializer& rSerializer)
const override;
253 template <
unsigned int TDim,
unsigned int TNumNodes>
255 std::istream& rIStream,
262 template <
unsigned int TDim,
unsigned int TNumNodes>
264 std::ostream& rOStream,
268 rOStream << std::endl;
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
Condition & operator=(Condition const &rOther)
Assignment operator.
Definition: condition.h:181
PropertiesType::Pointer pGetProperties()
returns the pointer to the property of the condition. Does not throw an error, to allow copying of co...
Definition: condition.h:964
Condition(IndexType NewId=0)
Definition: condition.h:123
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
Flags & GetFlags()
Returns the flags of the object.
Definition: geometrical_object.h:176
GeometryType & GetGeometry()
Returns the reference of the geometry.
Definition: geometrical_object.h:158
DataValueContainer & GetData()
Definition: geometrical_object.h:212
IntegrationMethod
Definition: geometry_data.h:76
Geometry base class.
Definition: geometry.h:71
GeometryData::ShapeFunctionsGradientsType ShapeFunctionsGradientsType
Definition: geometry.h:189
Definition: incompressible_potential_flow_velocity_inlet_condition.h:42
void CalculateLeftHandSide(MatrixType &rLeftHandSideMatrix, const ProcessInfo &rCurrentProcessInfo) override
Definition: incompressible_potential_flow_velocity_inlet_condition.cpp:135
Matrix MatrixType
Definition: incompressible_potential_flow_velocity_inlet_condition.h:56
void PrintInfo(std::ostream &rOStream) const override
Print information about this object.
Definition: incompressible_potential_flow_velocity_inlet_condition.cpp:208
std::string Info() const override
Turn back information as a string.
Definition: incompressible_potential_flow_velocity_inlet_condition.cpp:200
Condition::Pointer Create(IndexType NewId, NodesArrayType const &ThisNodes, PropertiesType::Pointer pProperties) const override
Create a new IncompressiblePotentialFlowVelocityInletCondition object.
Definition: incompressible_potential_flow_velocity_inlet_condition.h:144
Condition::Pointer Clone(IndexType NewId, NodesArrayType const &rThisNodes) const override
Definition: incompressible_potential_flow_velocity_inlet_condition.h:170
void CalculateLocalSystem(MatrixType &rLeftHandSideMatrix, VectorType &rRightHandSideVector, const ProcessInfo &rCurrentProcessInfo) override
Definition: incompressible_potential_flow_velocity_inlet_condition.cpp:122
void CalculateRightHandSide(VectorType &rRightHandSideVector, const ProcessInfo &rCurrentProcessInfo) override
Definition: incompressible_potential_flow_velocity_inlet_condition.cpp:151
GeometryData::IntegrationMethod GetIntegrationMethod() const override
Definition: incompressible_potential_flow_velocity_inlet_condition.cpp:116
void GetValuesVector(VectorType &rValues, int Step=0) const override
Definition: incompressible_potential_flow_velocity_inlet_condition.cpp:99
void PrintData(std::ostream &rOStream) const override
Print object's data.
Definition: incompressible_potential_flow_velocity_inlet_condition.cpp:215
IncompressiblePotentialFlowVelocityInletCondition(IndexType NewId, GeometryType::Pointer pGeometry, PropertiesType::Pointer pProperties)
Constructor using Properties.
Definition: incompressible_potential_flow_velocity_inlet_condition.h:104
IncompressiblePotentialFlowVelocityInletCondition(IndexType NewId, const NodesArrayType &ThisNodes)
Constructor using an array of nodes.
Definition: incompressible_potential_flow_velocity_inlet_condition.h:79
IncompressiblePotentialFlowVelocityInletCondition(IndexType NewId, GeometryType::Pointer pGeometry)
Constructor using Geometry.
Definition: incompressible_potential_flow_velocity_inlet_condition.h:91
void EquationIdVector(EquationIdVectorType &rResult, const ProcessInfo &rCurrentProcessInfo) const override
Definition: incompressible_potential_flow_velocity_inlet_condition.cpp:71
int Check(const ProcessInfo &rCurrentProcessInfo) const override
Definition: incompressible_potential_flow_velocity_inlet_condition.cpp:34
void Initialize(const ProcessInfo &rCurrentProcessInfo) override
Definition: incompressible_potential_flow_velocity_inlet_condition.cpp:57
Condition::Pointer Create(IndexType NewId, GeometryType::Pointer pGeom, PropertiesType::Pointer pProperties) const override
It creates a new condition pointer.
Definition: incompressible_potential_flow_velocity_inlet_condition.h:153
KRATOS_CLASS_INTRUSIVE_POINTER_DEFINITION(IncompressiblePotentialFlowVelocityInletCondition)
Pointer definition of IncompressiblePotentialFlowVelocityInletCondition.
IncompressiblePotentialFlowVelocityInletCondition & operator=(IncompressiblePotentialFlowVelocityInletCondition const &rOther)
Assignment operator.
Definition: incompressible_potential_flow_velocity_inlet_condition.h:127
void GetDofList(DofsVectorType &ConditionDofList, const ProcessInfo &CurrentProcessInfo) const override
Returns a list of the element's Dofs.
Definition: incompressible_potential_flow_velocity_inlet_condition.cpp:85
~IncompressiblePotentialFlowVelocityInletCondition() override=default
Destructor.
IncompressiblePotentialFlowVelocityInletCondition(IncompressiblePotentialFlowVelocityInletCondition const &rOther)
Copy constructor.
Definition: incompressible_potential_flow_velocity_inlet_condition.h:113
IncompressiblePotentialFlowVelocityInletCondition(IndexType NewId=0)
Default constructor.
Definition: incompressible_potential_flow_velocity_inlet_condition.h:68
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
REF: G. R. Cowper, GAUSSIAN QUADRATURE FORMULAS FOR TRIANGLES.
Definition: mesh_condition.cpp:21
Internals::Matrix< double, AMatrix::dynamic, 1 > Vector
Definition: amatrix_interface.h:472
Internals::Matrix< double, AMatrix::dynamic, AMatrix::dynamic > Matrix
Definition: amatrix_interface.h:470
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