12 #ifndef DAMPING_UTILITIES_H
13 #define DAMPING_UTILITIES_H
26 #include "custom_utilities/filter_function.h"
102 void CreateListOfNodesOfModelPart();
105 void CreateSearchTreeWithAllNodesOfModelPart();
108 void InitalizeDampingFactorsToHaveNoInfluence();
111 void SetDampingFactorsForAllDampingRegions();
114 FilterFunction::Pointer CreateDampingFunction( std::string damping_type )
const;
117 void ThrowWarningIfNodeNeighborsExceedLimit(
const ModelPart::NodeType& given_node,
const unsigned int number_of_neighbors )
const;
139 virtual std::string
Info()
const
141 return "DampingUtilities";
147 rOStream <<
"DampingUtilities";
218 unsigned int mBucketSize = 100;
219 unsigned int mMaxNeighborNodes = 10000;
220 NodeVector mListOfNodesOfModelPart;
221 KDTree::Pointer mpSearchTree;
Short class definition.
Definition: bucket.h:57
Short class definition.
Definition: damping_utilities.h:58
std::vector< NodeTypePointer > NodeVector
Definition: damping_utilities.h:67
Bucket< 3, NodeType, NodeVector, NodeTypePointer, NodeVectorIterator, DoubleVectorIterator > BucketType
Definition: damping_utilities.h:73
ModelPart::NodeType::Pointer NodeTypePointer
Definition: damping_utilities.h:66
std::vector< double > DoubleVector
Definition: damping_utilities.h:69
virtual std::string Info() const
Turn back information as a string.
Definition: damping_utilities.h:139
virtual void PrintData(std::ostream &rOStream) const
Print object's data.
Definition: damping_utilities.h:151
virtual ~DampingUtilities()
Destructor.
Definition: damping_utilities.h:87
ModelPart::NodeType NodeType
Definition: damping_utilities.h:65
Tree< KDTreePartition< BucketType > > KDTree
Definition: damping_utilities.h:74
array_1d< double, 3 > array_3d
Definition: damping_utilities.h:64
virtual void PrintInfo(std::ostream &rOStream) const
Print information about this object.
Definition: damping_utilities.h:145
KRATOS_CLASS_POINTER_DEFINITION(DampingUtilities)
Pointer definition of DampingUtilities.
std::vector< double >::iterator DoubleVectorIterator
Definition: damping_utilities.h:70
std::vector< NodeTypePointer >::iterator NodeVectorIterator
Definition: damping_utilities.h:68
This class aims to manage meshes for multi-physics simulations.
Definition: model_part.h:77
This class defines the node.
Definition: node.h:65
This class provides to Kratos a data structure for I/O based on the standard of JSON.
Definition: kratos_parameters.h:59
A generic tree data structure for spatial partitioning.
Definition: tree.h:190
Variable class contains all information needed to store and retrive data from a data container.
Definition: variable.h:63
REF: G. R. Cowper, GAUSSIAN QUADRATURE FORMULAS FOR TRIANGLES.
Definition: mesh_condition.cpp:21