13 #ifndef KRATOS_MONOLITHIC_DEM_COUPLED_WALL_CONDITION_H
14 #define KRATOS_MONOLITHIC_DEM_COUPLED_WALL_CONDITION_H
73 template<
unsigned int TDim,
unsigned int TNumNodes = TDim >
135 GeometryType::Pointer pGeometry):
147 GeometryType::Pointer pGeometry,
148 PropertiesType::Pointer pProperties):
190 GeometryType::Pointer pGeom,
191 PropertiesType::Pointer pProperties)
const override
193 return Kratos::make_intrusive< MonolithicDEMCoupledWallCondition >(NewId, pGeom, pProperties);
204 const SizeType BlockSize = (rCurrentProcessInfo[FRACTIONAL_STEP] == 1) ? TDim + 1 : TDim;
205 const SizeType LocalSize = BlockSize * TNumNodes;
207 if (rLeftHandSideMatrix.size1() != LocalSize)
208 rLeftHandSideMatrix.
resize(LocalSize,LocalSize);
210 if (rRightHandSideVector.size() != LocalSize)
211 rRightHandSideVector.
resize(LocalSize);
224 const SizeType BlockSize = (rCurrentProcessInfo[FRACTIONAL_STEP] == 1) ? TDim + 1 : TDim;
225 const SizeType LocalSize = BlockSize * TNumNodes;
227 if (rLeftHandSideMatrix.size1() != LocalSize)
228 rLeftHandSideMatrix.
resize(LocalSize,LocalSize);
239 if (rCurrentProcessInfo[FRACTIONAL_STEP] == 1){
240 const SizeType BlockSize = TDim + 1;
241 const SizeType LocalSize = BlockSize * TNumNodes;
243 if (rRightHandSideVector.size() != LocalSize)
244 rRightHandSideVector.
resize(LocalSize);
250 const unsigned int BlockSize = TDim;
251 const SizeType LocalSize = BlockSize * TNumNodes;
253 if (rRightHandSideVector.size() != LocalSize)
254 rRightHandSideVector.
resize(LocalSize);
328 virtual std::string
Info()
const override
330 std::stringstream buffer;
331 buffer <<
"MonolithicDEMCoupledWallCondition" << TDim <<
"D";
336 virtual void PrintInfo(std::ostream& rOStream)
const override
338 rOStream <<
"MonolithicDEMCoupledWallCondition";
342 virtual void PrintData(std::ostream& rOStream)
const override{}
404 virtual void save(
Serializer& rSerializer)
const override
456 template<
unsigned int TDim,
unsigned int TNumNodes >
464 template<
unsigned int TDim,
unsigned int TNumNodes >
469 rOStream << std::endl;
Base class for all Conditions.
Definition: condition.h:59
std::size_t SizeType
Definition: condition.h:94
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
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
void resize(std::size_t NewSize1, std::size_t NewSize2, bool preserve=0)
Definition: amatrix_interface.h:224
Implements a wall condition for the monolithic formulation.
Definition: monolithic_dem_coupled_wall_condition.h:75
std::size_t SizeType
Definition: monolithic_dem_coupled_wall_condition.h:95
PointerVectorSet< Dof< double >, IndexedObject > DofsArrayType
Definition: monolithic_dem_coupled_wall_condition.h:101
Geometry< NodeType > GeometryType
Definition: monolithic_dem_coupled_wall_condition.h:85
void CalculateLeftHandSide(MatrixType &rLeftHandSideMatrix, const ProcessInfo &rCurrentProcessInfo) override
Return a matrix of the correct size, filled with zeros (for compatibility with time schemes).
Definition: monolithic_dem_coupled_wall_condition.h:222
std::size_t IndexType
Definition: monolithic_dem_coupled_wall_condition.h:93
void GetDofList(DofsVectorType &ConditionDofList, const ProcessInfo &CurrentProcessInfo) const override
Returns a list of the element's Dofs.
Properties PropertiesType
Definition: monolithic_dem_coupled_wall_condition.h:83
MonolithicDEMCoupledWallCondition & operator=(MonolithicDEMCoupledWallCondition const &rOther)
Assignment operator.
Definition: monolithic_dem_coupled_wall_condition.h:168
void CalculateRightHandSide(VectorType &rRightHandSideVector, const ProcessInfo &rCurrentProcessInfo) override
Return local right hand side of the correct size, filled with zeros (for compatibility with time sche...
Definition: monolithic_dem_coupled_wall_condition.h:237
Node NodeType
Definition: monolithic_dem_coupled_wall_condition.h:81
virtual void PrintInfo(std::ostream &rOStream) const override
Print information about this object.
Definition: monolithic_dem_coupled_wall_condition.h:336
MonolithicDEMCoupledWallCondition(IndexType NewId, const NodesArrayType &ThisNodes)
Constructor using an array of nodes.
Definition: monolithic_dem_coupled_wall_condition.h:123
std::vector< Dof< double >::Pointer > DofsVectorType
Definition: monolithic_dem_coupled_wall_condition.h:99
Vector VectorType
Definition: monolithic_dem_coupled_wall_condition.h:89
MonolithicDEMCoupledWallCondition(IndexType NewId, GeometryType::Pointer pGeometry)
Constructor using Geometry.
Definition: monolithic_dem_coupled_wall_condition.h:134
Matrix MatrixType
Definition: monolithic_dem_coupled_wall_condition.h:91
void EquationIdVector(EquationIdVectorType &rResult, const ProcessInfo &rCurrentProcessInfo) const override
Provides the global indices for each one of this element's local rows.
Condition::Pointer Create(IndexType NewId, GeometryType::Pointer pGeom, PropertiesType::Pointer pProperties) const override
It creates a new condition pointer.
Definition: monolithic_dem_coupled_wall_condition.h:189
virtual ~MonolithicDEMCoupledWallCondition()
Destructor.
Definition: monolithic_dem_coupled_wall_condition.h:160
KRATOS_CLASS_INTRUSIVE_POINTER_DEFINITION(MonolithicDEMCoupledWallCondition)
Geometry< NodeType >::PointsArrayType NodesArrayType
Definition: monolithic_dem_coupled_wall_condition.h:87
void CalculateLocalSystem(MatrixType &rLeftHandSideMatrix, VectorType &rRightHandSideVector, const ProcessInfo &rCurrentProcessInfo) override
Return local contributions of the correct size, filled with zeros (for compatibility with time scheme...
Definition: monolithic_dem_coupled_wall_condition.h:200
virtual void PrintData(std::ostream &rOStream) const override
Print object's data.
Definition: monolithic_dem_coupled_wall_condition.h:342
Condition::Pointer Create(IndexType NewId, NodesArrayType const &ThisNodes, PropertiesType::Pointer pProperties) const override
Create a new MonolithicDEMCoupledWallCondition object.
Definition: monolithic_dem_coupled_wall_condition.h:185
virtual std::string Info() const override
Turn back information as a string.
Definition: monolithic_dem_coupled_wall_condition.h:328
MonolithicDEMCoupledWallCondition(IndexType NewId=0)
Default constructor.
Definition: monolithic_dem_coupled_wall_condition.h:113
MonolithicDEMCoupledWallCondition(IndexType NewId, GeometryType::Pointer pGeometry, PropertiesType::Pointer pProperties)
Constructor using Properties.
Definition: monolithic_dem_coupled_wall_condition.h:146
std::vector< std::size_t > EquationIdVectorType
Definition: monolithic_dem_coupled_wall_condition.h:97
MonolithicDEMCoupledWallCondition(MonolithicDEMCoupledWallCondition const &rOther)
Copy constructor.
Definition: monolithic_dem_coupled_wall_condition.h:154
Implements a wall condition for the monolithic formulation.
Definition: monolithic_wall_condition.h:70
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
#define KRATOS_SERIALIZE_SAVE_BASE_CLASS(Serializer, BaseType)
Definition: define.h:812
#define KRATOS_SERIALIZE_LOAD_BASE_CLASS(Serializer, BaseType)
Definition: define.h:815
Modeler::Pointer Create(const std::string &ModelerName, Model &rModel, const Parameters ModelParameters)
Checks if the modeler is registered.
Definition: modeler_factory.cpp:30
REF: G. R. Cowper, GAUSSIAN QUADRATURE FORMULAS FOR TRIANGLES.
Definition: mesh_condition.cpp:21
KratosZeroVector< double > ZeroVector
Definition: amatrix_interface.h:561
KratosZeroMatrix< double > ZeroMatrix
Definition: amatrix_interface.h:559
std::istream & operator>>(std::istream &rIStream, LinearMasterSlaveConstraint &rThis)
input stream function
T & noalias(T &TheMatrix)
Definition: amatrix_interface.h:484
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