39 #ifndef KRATOS_FS_PERIODIC_CONDITION_H
40 #define KRATOS_FS_PERIODIC_CONDITION_H
102 template<
unsigned int TDim >
161 GeometryType::Pointer pGeometry);
170 GeometryType::Pointer pGeometry,
171 PropertiesType::Pointer pProperties);
195 PropertiesType::Pointer pProperties)
const override;
198 Condition::Pointer
Create(
200 GeometryType::Pointer pGeom,
201 PropertiesType::Pointer pProperties)
const override;
225 const ProcessInfo& rCurrentProcessInfo)
const override;
233 const ProcessInfo& CurrentProcessInfo)
const override;
257 std::string
Info()
const override
259 std::stringstream buffer;
260 buffer <<
"FSPeriodicCondition #" <<
Id();
267 rOStream <<
"FSPeriodicCondition #" <<
Id();
344 void save(
Serializer& rSerializer)
const override;
391 template<
unsigned int TDim >
399 template<
unsigned int TDim >
404 rOStream <<
" : " << std::endl;
Base class for all Conditions.
Definition: condition.h:59
void PrintData(std::ostream &rOStream) const override
Print object's data.
Definition: condition.h:1085
std::vector< std::size_t > EquationIdVectorType
Definition: condition.h:98
std::vector< DofType::Pointer > DofsVectorType
Definition: condition.h:100
Condition used to assign periodic boundary conditions when using a fractional step fluid solver.
Definition: fs_periodic_condition.h:104
Node NodeType
Definition: fs_periodic_condition.h:116
void GetVelocityDofList(DofsVectorType &rElementalDofList, const ProcessInfo &rCurrentProcessInfo) const
Vector VectorType
Definition: fs_periodic_condition.h:124
Geometry< NodeType >::PointsArrayType NodesArrayType
Definition: fs_periodic_condition.h:122
Matrix MatrixType
Definition: fs_periodic_condition.h:126
std::string Info() const override
Turn back information as a string.
Definition: fs_periodic_condition.h:257
int Check(const ProcessInfo &rCurrentProcessInfo) const override
Check input to ensure that it makes sense.
Definition: fs_periodic_condition.cpp:62
Geometry< NodeType > GeometryType
Definition: fs_periodic_condition.h:120
std::size_t IndexType
Definition: fs_periodic_condition.h:128
Condition::Pointer Create(IndexType NewId, NodesArrayType const &ThisNodes, PropertiesType::Pointer pProperties) const override
Create a new FSPeriodicCondition instance.
Definition: fs_periodic_condition.cpp:50
void CalculateRightHandSide(VectorType &rRightHandSideVector, const ProcessInfo &rCurrentProcessInfo) override
Definition: fs_periodic_condition.cpp:85
void PrintInfo(std::ostream &rOStream) const override
Print information about this object.
Definition: fs_periodic_condition.h:265
void GetValuesVector(Vector &Values, int Step=0) const override
Returns the values of the unknowns for each node.
Definition: fs_periodic_condition.cpp:129
void CalculateLeftHandSide(MatrixType &rLeftHandSideMatrix, const ProcessInfo &rCurrentProcessInfo) override
Definition: fs_periodic_condition.cpp:79
std::vector< Dof< double >::Pointer > DofsVectorType
Definition: fs_periodic_condition.h:134
KRATOS_CLASS_INTRUSIVE_POINTER_DEFINITION(FSPeriodicCondition)
Pointer definition of FSPeriodicCondition.
PointerVectorSet< Dof< double >, IndexedObject > DofsArrayType
Definition: fs_periodic_condition.h:136
void GetDofList(DofsVectorType &ElementalDofList, const ProcessInfo &CurrentProcessInfo) const override
Returns a list of the element's Dofs.
Definition: fs_periodic_condition.cpp:98
void GetPressureDofList(DofsVectorType &rElementalDofList, const ProcessInfo &rCurrentProcessInfo) const
Definition: fs_periodic_condition.cpp:202
void PrintData(std::ostream &rOStream) const override
Print object's data.
Definition: fs_periodic_condition.h:271
~FSPeriodicCondition() override
Destructor.
Definition: fs_periodic_condition.cpp:37
void CalculateLocalSystem(MatrixType &rLeftHandSideMatrix, VectorType &rRightHandSideVector, const ProcessInfo &rCurrentProcessInfo) override
Definition: fs_periodic_condition.cpp:72
std::size_t SizeType
Definition: fs_periodic_condition.h:130
FSPeriodicCondition & operator=(FSPeriodicCondition const &rOther)
Assignment operator.
Definition: fs_periodic_condition.cpp:42
FSPeriodicCondition(IndexType NewId=0)
Constructor.
Definition: fs_periodic_condition.cpp:7
void EquationIdVector(EquationIdVectorType &rResult, const ProcessInfo &rCurrentProcessInfo) const override
Provides the global indices for each one of this element's local rows.
Definition: fs_periodic_condition.cpp:92
IndexedObject IndexedObjectType
Definition: fs_periodic_condition.h:112
Condition BaseType
Definition: fs_periodic_condition.h:114
Properties PropertiesType
Definition: fs_periodic_condition.h:118
std::vector< std::size_t > EquationIdVectorType
Definition: fs_periodic_condition.h:132
std::size_t IndexType
Definition: flags.h:74
Geometry base class.
Definition: geometry.h:71
This object defines an indexed object.
Definition: indexed_object.h:54
IndexType Id() const
Definition: indexed_object.h:107
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
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
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