13 #ifndef KRATOS_POTENTIAL_WALL_CONDITION_H
14 #define KRATOS_POTENTIAL_WALL_CONDITION_H
60 template <
unsigned int TDim,
unsigned int TNumNodes = TDim>
70 static constexpr
int NumNodes = TNumNodes;
71 static constexpr
int Dim = TDim;
138 GeometryType::Pointer pGeometry,
139 PropertiesType::Pointer pProperties)
140 :
Condition(NewId, pGeometry, pProperties)
179 PropertiesType::Pointer pProperties)
const override;
182 Condition::GeometryType::Pointer pGeom,
183 PropertiesType::Pointer pProperties)
const override;
188 void Initialize(
const ProcessInfo& rCurrentProcessInfo)
override;
190 void CalculateLeftHandSide(
MatrixType& rLeftHandSideMatrix,
193 void CalculateRightHandSide(
VectorType& rRightHandSideVector,
196 void CalculateLocalSystem(
MatrixType& rLeftHandSideMatrix,
200 void EquationIdVector(EquationIdVectorType& rResult,
201 const ProcessInfo& rCurrentProcessInfo)
const override;
203 void GetDofList(DofsVectorType& ConditionDofList,
const ProcessInfo& CurrentProcessInfo)
const override;
205 void FinalizeNonLinearIteration(
const ProcessInfo& rCurrentProcessInfo)
override;
215 int Check(
const ProcessInfo& rCurrentProcessInfo)
const override;
222 std::string
Info()
const override;
225 void PrintInfo(std::ostream& rOStream)
const override;
228 void PrintData(std::ostream& rOStream)
const override;
274 bool mInitializeWasPerformed =
false;
288 void save(
Serializer& rSerializer)
const override;
303 void FindParentElement(std::vector<IndexType>& NodeIds,
304 std::vector<IndexType>& ElementNodeIds,
337 template <
unsigned int TDim,
unsigned int TNumNodes>
345 template <
unsigned int TDim,
unsigned int TNumNodes>
350 rOStream << std::endl;
std::string Info() const override
Turn back information as a string.
Definition: periodic_interface_process.hpp:93
Base class for all Conditions.
Definition: condition.h:59
Condition & operator=(Condition const &rOther)
Assignment operator.
Definition: condition.h:181
std::size_t IndexType
Definition: flags.h:74
Geometry base class.
Definition: geometry.h:71
This class is a wrapper for a pointer to a data that is located in a different rank.
Definition: global_pointer.h:44
This object defines an indexed object.
Definition: indexed_object.h:54
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
A sorted associative container similar to an STL set, but uses a vector to store pointers to its data...
Definition: pointer_vector_set.h:72
Implements a wall condition for the potential flow formulation.
Definition: potential_wall_condition.h:62
Geometry< NodeType >::PointsArrayType NodesArrayType
Definition: potential_wall_condition.h:79
PotentialWallCondition(IndexType NewId, GeometryType::Pointer pGeometry)
Constructor using Geometry.
Definition: potential_wall_condition.h:126
~PotentialWallCondition() override
Destructor.
Definition: potential_wall_condition.h:151
Element::Pointer ElementPointerType
Definition: potential_wall_condition.h:97
void PrintData(std::ostream &rOStream) const override
Print object's data.
Definition: potential_wall_condition.cpp:221
PotentialWallCondition(PotentialWallCondition const &rOther)=delete
Copy constructor.
PotentialWallCondition(IndexType NewId, const NodesArrayType &ThisNodes)
Constructor using an array of nodes.
Definition: potential_wall_condition.h:116
PointerVectorSet< Dof< double >, IndexedObject > DofsArrayType
Definition: potential_wall_condition.h:93
PotentialWallCondition & operator=(PotentialWallCondition &&rOther)
Move operator.
Definition: potential_wall_condition.h:167
Element::WeakPointer ElementWeakPointerType
Definition: potential_wall_condition.h:95
Vector VectorType
Definition: potential_wall_condition.h:81
PotentialWallCondition(IndexType NewId, GeometryType::Pointer pGeometry, PropertiesType::Pointer pProperties)
Constructor using Properties.
Definition: potential_wall_condition.h:137
std::vector< Dof< double >::Pointer > DofsVectorType
Definition: potential_wall_condition.h:91
PotentialWallCondition(IndexType NewId=0)
Default constructor.
Definition: potential_wall_condition.h:107
PotentialWallCondition & operator=(PotentialWallCondition const &rOther)
Assignment operator.
Definition: potential_wall_condition.h:160
Node NodeType
Definition: potential_wall_condition.h:73
Properties PropertiesType
Definition: potential_wall_condition.h:75
void PrintInfo(std::ostream &rOStream) const override
Print information about this object.
Definition: potential_wall_condition.cpp:215
KRATOS_CLASS_INTRUSIVE_POINTER_DEFINITION(PotentialWallCondition)
Pointer definition of PotentialWallCondition.
Matrix MatrixType
Definition: potential_wall_condition.h:83
Geometry< NodeType > GeometryType
Definition: potential_wall_condition.h:77
PotentialWallCondition(PotentialWallCondition &&rOther)=delete
Move constructor.
std::vector< std::size_t > EquationIdVectorType
Definition: potential_wall_condition.h:89
std::size_t IndexType
Definition: potential_wall_condition.h:85
std::size_t SizeType
Definition: potential_wall_condition.h:87
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
std::size_t IndexType
The definition of the index type.
Definition: key_hash.h:35
Modeler::Pointer Create(const std::string &ModelerName, Model &rModel, const Parameters ModelParameters)
Checks if the modeler is registered.
Definition: modeler_factory.cpp:30
void GetSortedIds(std::vector< size_t > &Ids, const GeometryType &rGeom)
Definition: potential_flow_utilities.cpp:921
REF: G. R. Cowper, GAUSSIAN QUADRATURE FORMULAS FOR TRIANGLES.
Definition: mesh_condition.cpp:21
ModelPart::NodesContainerType NodesArrayType
Definition: gid_gauss_point_container.h:42
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