KratosMultiphysics
KRATOS Multiphysics (Kratos) is a framework for building parallel, multi-disciplinary simulation software, aiming at modularity, extensibility, and high performance. Kratos is written in C++, and counts with an extensive Python interface.
|
Template struct for entity identifier. More...
#include <entities_utilities.h>
Public Member Functions | |
Life Cycle | |
EntitityIdentifier ()=default | |
Default constructor. More... | |
EntitityIdentifier (const std::string &rName) | |
Constructor. More... | |
EntitityIdentifier (const EntitityIdentifier &rOther) | |
Copy constructor. More... | |
Operators | |
EntitityIdentifier & | operator= (const EntitityIdentifier &rOther) |
Assignment operator. More... | |
Operations | |
bool | IsInitialized () const |
Checks if the object is initialized. More... | |
bool | HasPrototypeEntity (const GeometryType &rGeometry) const |
Get the prototype entity. More... | |
const TEntity & | GetPrototypeEntity (typename GeometryType::Pointer pGeometry) const |
Get the prototype entity. More... | |
const TEntity & | GetPrototypeEntity (const GeometryType &rGeometry) const |
Get the prototype entity. More... | |
Input and output | |
std::string | Info () const |
Turn back information as a string. More... | |
void | PrintInfo (std::ostream &rOStream) const |
Print information about this object. More... | |
void | PrintData (std::ostream &rOStream) const |
Print object's data. More... | |
Type Definitions | |
using | GeometryType = typename TEntity::GeometryType |
Geometry type definition. More... | |
constexpr static std::size_t | LengthArray = static_cast<std::size_t>(GeometryData::KratosGeometryType::NumberOfGeometryTypes) |
Length of array definition. More... | |
KRATOS_CLASS_POINTER_DEFINITION (EntitityIdentifier) | |
Pointer definition of ReplaceElementsAndConditionsProcess. More... | |
Template struct for entity identifier.
This struct is used to identify and retrieve entity types based on their names and definitions.
TEntity | The entity type. |
using Kratos::EntitiesUtilities::EntitityIdentifier< TEntity >::GeometryType = typename TEntity::GeometryType |
Geometry type definition.
|
default |
Default constructor.
Kratos::EntitiesUtilities::EntitityIdentifier< TEntity >::EntitityIdentifier | ( | const std::string & | rName | ) |
Constructor.
rName | The name of the entity. |
|
inline |
Copy constructor.
const TEntity & Kratos::EntitiesUtilities::EntitityIdentifier< TEntity >::GetPrototypeEntity | ( | const GeometryType & | rGeometry | ) | const |
Get the prototype entity.
rGeometry | The reference to the geometry. |
const TEntity & Kratos::EntitiesUtilities::EntitityIdentifier< TEntity >::GetPrototypeEntity | ( | typename GeometryType::Pointer | pGeometry | ) | const |
Get the prototype entity.
pGeometry | The pointer to the geometry. |
bool Kratos::EntitiesUtilities::EntitityIdentifier< TEntity >::HasPrototypeEntity | ( | const GeometryType & | rGeometry | ) | const |
Get the prototype entity.
rGeometry | The reference to the geometry. |
|
inline |
Turn back information as a string.
bool Kratos::EntitiesUtilities::EntitityIdentifier< TEntity >::IsInitialized |
Checks if the object is initialized.
Kratos::EntitiesUtilities::EntitityIdentifier< TEntity >::KRATOS_CLASS_POINTER_DEFINITION | ( | EntitityIdentifier< TEntity > | ) |
Pointer definition of ReplaceElementsAndConditionsProcess.
|
inline |
Assignment operator.
void Kratos::EntitiesUtilities::EntitityIdentifier< TEntity >::PrintData | ( | std::ostream & | rOStream | ) | const |
Print object's data.
|
inline |
Print information about this object.
|
staticconstexpr |
Length of array definition.