|
|
| Mesh () |
| Default constructor. More...
|
|
| Mesh (Mesh const &rOther) |
| Copy constructor. More...
|
|
| Mesh (typename NodesContainerType::Pointer NewNodes, typename PropertiesContainerType::Pointer NewProperties, typename ElementsContainerType::Pointer NewElements, typename ConditionsContainerType::Pointer NewConditions, typename MasterSlaveConstraintContainerType::Pointer NewMasterSlaveConditions) |
| Components constructor. More...
|
|
| ~Mesh () override |
| Destructor. More...
|
|
|
Mesh | Clone () |
|
void | Clear () |
|
|
SizeType | WorkingSpaceDimension () const |
|
|
SizeType | NumberOfNodes () const |
|
void | AddNode (typename NodeType::Pointer pNewNode) |
|
NodeType::Pointer | pGetNode (IndexType NodeId) |
|
const NodeType::Pointer | pGetNode (const IndexType NodeId) const |
|
NodeType & | GetNode (IndexType NodeId) |
|
const NodeType & | GetNode (IndexType NodeId) const |
|
void | RemoveNode (IndexType NodeId) |
|
void | RemoveNode (NodeType &ThisNode) |
|
void | RemoveNode (typename NodeType::Pointer pThisNode) |
|
NodeIterator | NodesBegin () |
|
NodeConstantIterator | NodesBegin () const |
|
NodeIterator | NodesEnd () |
|
NodeConstantIterator | NodesEnd () const |
|
NodesContainerType & | Nodes () |
|
const NodesContainerType & | Nodes () const |
|
NodesContainerType::Pointer | pNodes () |
|
void | SetNodes (typename NodesContainerType::Pointer pOtherNodes) |
|
NodesContainerType::ContainerType & | NodesArray () |
|
bool | HasNode (IndexType NodeId) const |
|
|
SizeType | NumberOfProperties () const |
|
void | AddProperties (typename PropertiesType::Pointer pNewProperties) |
|
PropertiesType::Pointer | pGetProperties (IndexType PropertiesId) |
|
PropertiesType & | GetProperties (IndexType PropertiesId) |
|
void | RemoveProperties (IndexType PropertiesId) |
|
void | RemoveProperties (PropertiesType &ThisProperties) |
|
void | RemoveProperties (typename PropertiesType::Pointer pThisProperties) |
|
PropertiesIterator | PropertiesBegin () |
|
PropertiesConstantIterator | PropertiesBegin () const |
|
PropertiesIterator | PropertiesEnd () |
|
PropertiesConstantIterator | PropertiesEnd () const |
|
PropertiesContainerType & | Properties () |
|
const PropertiesContainerType & | Properties () const |
|
PropertiesContainerType::Pointer | pProperties () |
|
void | SetProperties (typename PropertiesContainerType::Pointer pOtherProperties) |
|
PropertiesContainerType::ContainerType & | PropertiesArray () |
|
bool | HasProperties (IndexType NodeId) const |
|
|
SizeType | NumberOfElements () const |
|
void | AddElement (typename ElementType::Pointer pNewElement) |
|
ElementType::Pointer | pGetElement (IndexType ElementId) |
|
const ElementType::Pointer | pGetElement (const IndexType ElementId) const |
|
ElementType & | GetElement (IndexType ElementId) |
|
const ElementType & | GetElement (IndexType ElementId) const |
|
void | RemoveElement (IndexType ElementId) |
|
void | RemoveElement (ElementType &ThisElement) |
|
void | RemoveElement (typename ElementType::Pointer pThisElement) |
|
ElementIterator | ElementsBegin () |
|
ElementConstantIterator | ElementsBegin () const |
|
ElementIterator | ElementsEnd () |
|
ElementConstantIterator | ElementsEnd () const |
|
ElementsContainerType & | Elements () |
|
const ElementsContainerType & | Elements () const |
|
ElementsContainerType::Pointer | pElements () |
|
void | SetElements (typename ElementsContainerType::Pointer pOtherElements) |
|
ElementsContainerType::ContainerType & | ElementsArray () |
|
bool | HasElement (IndexType ElementId) const |
|
|
SizeType | NumberOfConditions () const |
|
void | AddCondition (typename ConditionType::Pointer pNewCondition) |
|
ConditionType::Pointer | pGetCondition (IndexType ConditionId) |
|
const ConditionType::Pointer | pGetCondition (const IndexType ConditionId) const |
|
ConditionType & | GetCondition (IndexType ConditionId) |
|
const ConditionType & | GetCondition (IndexType ConditionId) const |
|
void | RemoveCondition (IndexType ConditionId) |
|
void | RemoveCondition (ConditionType &ThisCondition) |
|
void | RemoveCondition (typename ConditionType::Pointer pThisCondition) |
|
ConditionIterator | ConditionsBegin () |
|
ConditionConstantIterator | ConditionsBegin () const |
|
ConditionIterator | ConditionsEnd () |
|
ConditionConstantIterator | ConditionsEnd () const |
|
ConditionsContainerType & | Conditions () |
|
const ConditionsContainerType & | Conditions () const |
|
ConditionsContainerType::Pointer | pConditions () |
|
void | SetConditions (typename ConditionsContainerType::Pointer pOtherConditions) |
|
ConditionsContainerType::ContainerType & | ConditionsArray () |
|
bool | HasCondition (IndexType ConditionId) const |
|
|
SizeType | NumberOfMasterSlaveConstraints () const |
|
void | AddMasterSlaveConstraint (typename MasterSlaveConstraintType::Pointer pNewMasterSlaveConstraint) |
|
MasterSlaveConstraintType::Pointer | pGetMasterSlaveConstraint (IndexType MasterSlaveConstraintId) |
|
MasterSlaveConstraintType & | GetMasterSlaveConstraint (IndexType MasterSlaveConstraintId) |
|
const MasterSlaveConstraintType & | GetMasterSlaveConstraint (IndexType MasterSlaveConstraintId) const |
|
void | RemoveMasterSlaveConstraint (IndexType MasterSlaveConstraintId) |
|
void | RemoveMasterSlaveConstraint (MasterSlaveConstraintType &ThisMasterSlaveConstraint) |
|
void | RemoveMasterSlaveConstraint (typename MasterSlaveConstraintType::Pointer pThisMasterSlaveConstraint) |
|
MasterSlaveConstraintIteratorType | MasterSlaveConstraintsBegin () |
|
MasterSlaveConstraintConstantIteratorType | MasterSlaveConstraintsBegin () const |
|
MasterSlaveConstraintIteratorType | MasterSlaveConstraintsEnd () |
|
MasterSlaveConstraintConstantIteratorType | MasterSlaveConstraintsEnd () const |
|
MasterSlaveConstraintContainerType & | MasterSlaveConstraints () |
|
const MasterSlaveConstraintContainerType & | MasterSlaveConstraints () const |
|
MasterSlaveConstraintContainerType::Pointer | pMasterSlaveConstraints () |
|
MasterSlaveConstraintContainerType::ContainerType & | MasterSlaveConstraintsArray () |
|
bool | HasMasterSlaveConstraint (IndexType MasterSlaveConstraintId) const |
|
|
std::string | Info () const override |
| Turn back information as a string. More...
|
|
void | PrintInfo (std::ostream &rOStream) const override |
| Print information about this object. More...
|
|
void | PrintData (std::ostream &rOStream) const override |
| Print object's data. More...
|
|
virtual void | PrintInfo (std::ostream &rOStream, std::string const &PrefixString) const |
| Print information about this object. More...
|
|
virtual void | PrintData (std::ostream &rOStream, std::string const &PrefixString) const |
| Print object's data. More...
|
|
| DataValueContainer () |
| Default constructor. More...
|
|
| DataValueContainer (DataValueContainer const &rOther) |
| Copy constructor. More...
|
|
virtual | ~DataValueContainer () |
| Destructor. More...
|
|
template<class TDataType > |
const TDataType & | operator() (const VariableData &rThisVariable) const |
| Accessor operator for retrieving a data value by a VariableData. More...
|
|
template<class TDataType > |
TDataType & | operator() (const Variable< TDataType > &rThisVariable) |
| Accessor operator for retrieving a data value by a Variable. More...
|
|
template<class TDataType > |
const TDataType & | operator() (const Variable< TDataType > &rThisVariable) const |
| Accessor operator for retrieving a data value by a Variable (const version). More...
|
|
template<class TDataType > |
TDataType & | operator[] (const VariableData &rThisVariable) |
| Index operator for retrieving a data value by a VariableData. More...
|
|
template<class TDataType > |
const TDataType & | operator[] (const VariableData &rThisVariable) const |
| Index operator for retrieving a data value by a VariableData (const version). More...
|
|
template<class TDataType > |
TDataType & | operator[] (const Variable< TDataType > &rThisVariable) |
| Index operator for retrieving a data value by a Variable. More...
|
|
template<class TDataType > |
const TDataType & | operator[] (const Variable< TDataType > &rThisVariable) const |
| Index operator for retrieving a data value by a Variable (const version). More...
|
|
iterator | begin () |
| Iterator pointing to the beginning of the container. More...
|
|
const_iterator | begin () const |
| Const iterator pointing to the beginning of the container. More...
|
|
iterator | end () |
| Iterator pointing to the end of the container. More...
|
|
const_iterator | end () const |
| Const iterator pointing to the end of the container. More...
|
|
DataValueContainer & | operator= (const DataValueContainer &rOther) |
| Assignment operator for copying data from another DataValueContainer. More...
|
|
template<class TDataType > |
TDataType & | GetValue (const Variable< TDataType > &rThisVariable) |
| Gets the value associated with a given variable. More...
|
|
template<class TDataType > |
const TDataType & | GetValue (const Variable< TDataType > &rThisVariable) const |
| Gets the value associated with a given variable (const version). More...
|
|
SizeType | Size () |
| Gets the size of the data container. More...
|
|
template<class TDataType > |
void | SetValue (const Variable< TDataType > &rThisVariable, TDataType const &rValue) |
| Sets the value for a given variable. More...
|
|
template<class TDataType > |
void | Erase (const Variable< TDataType > &rThisVariable) |
| Erases the value associated with a given variable. More...
|
|
void | Clear () |
| Clears the entire data container. More...
|
|
void | Merge (const DataValueContainer &rOther, const Flags Options) |
| Merges this data container with another data container. More...
|
|
template<class TDataType > |
bool | Has (const Variable< TDataType > &rThisVariable) const |
| Checks if the data container has a value associated with a given variable. More...
|
|
bool | IsEmpty () const |
| Checks if the data container is empty. More...
|
|
| KRATOS_DEFINE_LOCAL_FLAG (OVERWRITE_OLD_VALUES) |
| Define local flag. More...
|
|
| KRATOS_CLASS_POINTER_DEFINITION (DataValueContainer) |
| Pointer definition of DataValueContainer. More...
|
|
Flags & | operator= (Flags const &rOther) |
| Assignment operator. More...
|
|
| operator bool () const |
|
Flags | operator~ () const |
|
bool | operator! () const |
|
void | AssignFlags (Flags const &rOther) |
|
void | Set (const Flags ThisFlag) |
|
void | Set (const Flags ThisFlag, bool Value) |
|
void | Reset (const Flags ThisFlag) |
|
void | Flip (const Flags ThisFlag) |
|
void | SetPosition (IndexType Position, bool Value=true) |
|
bool | GetPosition (IndexType Position) const |
|
void | FlipPosition (IndexType Position) |
|
void | ClearPosition (IndexType Position) |
|
void | Clear () |
|
Flags | AsFalse () const |
|
bool | Is (Flags const &rOther) const |
|
bool | IsDefined (Flags const &rOther) const |
|
bool | IsNot (Flags const &rOther) const |
|
bool | IsNotDefined (Flags const &rOther) const |
|
| KRATOS_CLASS_POINTER_DEFINITION (Flags) |
| Pointer definition of Flags. More...
|
|
const Flags & | operator|= (const Flags &Other) |
|
const Flags & | operator&= (const Flags &Other) |
|
| Flags () |
| Default constructor. More...
|
|
| Flags (Flags const &rOther) |
| Copy constructor. More...
|
|
virtual | ~Flags () |
| Destructor. More...
|
|
|
using | IndexType = std::size_t |
|
using | SizeType = std::size_t |
|
using | NodeType = TNodeType |
|
using | PropertiesType = TPropertiesType |
|
using | GeometryType = Geometry< NodeType > |
|
using | ElementType = TElementType |
|
using | ConditionType = TConditionType |
|
using | MasterSlaveConstraintType = MasterSlaveConstraint |
|
using | MeshType = Mesh< TNodeType, TPropertiesType, TElementType, TConditionType > |
|
using | NodesContainerType = PointerVectorSet< NodeType, IndexedObject, std::less< typename IndexedObject::result_type >, std::equal_to< typename IndexedObject::result_type >, typename NodeType::Pointer, std::vector< typename NodeType::Pointer > > |
| Type alias for the container of nodes. More...
|
|
using | NodeIterator = typename NodesContainerType::iterator |
| Iterator for nodes in the container. Provides direct references to nodes. More...
|
|
using | NodeConstantIterator = typename NodesContainerType::const_iterator |
| Const iterator for nodes in the container. Provides direct references to nodes. More...
|
|
using | PropertiesContainerType = PointerVectorSet< PropertiesType, IndexedObject > |
| Type alias for the container of properties. More...
|
|
using | PropertiesIterator = typename PropertiesContainerType::iterator |
| Iterator for properties in the container. Provides direct references to properties. More...
|
|
using | PropertiesConstantIterator = typename PropertiesContainerType::const_iterator |
| Const iterator for properties in the container. Provides direct references to properties. More...
|
|
using | ElementsContainerType = PointerVectorSet< ElementType, IndexedObject, std::less< typename IndexedObject::result_type >, std::equal_to< typename IndexedObject::result_type >, typename ElementType::Pointer, std::vector< typename ElementType::Pointer > > |
| Type alias for the container of elements. More...
|
|
using | ElementIterator = typename ElementsContainerType::iterator |
| Iterator for elements in the container. Provides direct references to elements. More...
|
|
using | ElementConstantIterator = typename ElementsContainerType::const_iterator |
| Const iterator for elements in the container. Provides direct references to elements. More...
|
|
using | ConditionsContainerType = PointerVectorSet< ConditionType, IndexedObject, std::less< typename IndexedObject::result_type >, std::equal_to< typename IndexedObject::result_type >, typename ConditionType::Pointer, std::vector< typename ConditionType::Pointer > > |
| Type alias for the container of conditions. More...
|
|
using | ConditionIterator = typename ConditionsContainerType::iterator |
| Iterator for conditions in the container. Provides direct references to conditions. More...
|
|
using | ConditionConstantIterator = typename ConditionsContainerType::const_iterator |
| Const iterator for conditions in the container. Provides direct references to conditions. More...
|
|
using | MasterSlaveConstraintContainerType = PointerVectorSet< MasterSlaveConstraintType, IndexedObject > |
| Type alias for the container of master-slave constraints. More...
|
|
using | MasterSlaveConstraintIteratorType = typename MasterSlaveConstraintContainerType::iterator |
| Iterator for master-slave constraints in the container. Provides direct references to constraints. More...
|
|
using | MasterSlaveConstraintConstantIteratorType = typename MasterSlaveConstraintContainerType::const_iterator |
| Const iterator for master-slave constraints in the container. Provides direct references to constraints. More...
|
|
| KRATOS_CLASS_POINTER_DEFINITION (Mesh) |
| Pointer definition of Mesh. More...
|
|
template<class TNodeType, class TPropertiesType, class TElementType, class TConditionType>
class Kratos::Mesh< TNodeType, TPropertiesType, TElementType, TConditionType >
Mesh is the second level of abstraction in the data structure which hold Nodes, Elements and Conditions and their Properties.
Mesh is the second level of abstraction in the data structure which hold Nodes, Elements and Conditions and their Properties. In other words, Mesh is a complete pack of all type of entities without any additional data associated with them. So a set of Elements and Conditions with their Nodes and Properties can be grouped together as a Mesh and send to procedures like mesh refinement, material optimization, mesh movement or any other procedure which works on entities without needing additional data for their processes.
- Author
- Pooyan Dadvand