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.
|
#include <kratos_components.h>
Public Member Functions | |
Life Cycle | |
KratosComponents ()=default | |
Default constructor. More... | |
virtual | ~KratosComponents ()=default |
Destructor. More... | |
Input and output | |
virtual std::string | Info () const |
Turn back information as a string. More... | |
virtual void | PrintInfo (std::ostream &rOStream) const |
Print information about this object. More... | |
virtual void | PrintData (std::ostream &rOStream) const |
Print object's data. More... | |
Static Public Member Functions | |
Operations | |
static void | Add (const std::string &rName, VariableData &rComponent) |
Adds a new element to the msComponents map. More... | |
static void | Remove (const std::string &rName) |
Remove a component from the list by name. More... | |
static std::size_t | Size () |
Get the size of the components. More... | |
static VariableData & | Get (const std::string &rName) |
Retrieves the VariableData with the specified name. More... | |
static VariableData * | pGet (const std::string &rName) |
Retrieves the variable data associated with the given name. More... | |
static void | Register () |
Registers the function. More... | |
Access | |
static ComponentsContainerType & | GetComponents () |
Retrieves the ComponentsContainer. More... | |
static ComponentsContainerType * | pGetComponents () |
Returns a pointer to the ComponentsContainerType object. More... | |
Inquiry | |
static bool | Has (const std::string &rName) |
Checks if the specified name exists in the set of components. More... | |
Type Definitions | |
using | ComponentsContainerType = std::map< std::string, VariableData * > |
The map type used to store the components // TODO: Replace std::map with faster alternative. More... | |
using | ValueType = ComponentsContainerType::value_type |
Component type. More... | |
KRATOS_CLASS_POINTER_DEFINITION (KratosComponents) | |
Pointer definition of KratosComponents. More... | |
using Kratos::KratosComponents< VariableData >::ComponentsContainerType = std::map<std::string, VariableData*> |
The map type used to store the components // TODO: Replace std::map with faster alternative.
using Kratos::KratosComponents< VariableData >::ValueType = ComponentsContainerType::value_type |
Component type.
|
default |
Default constructor.
|
virtualdefault |
Destructor.
|
inlinestatic |
Adds a new element to the msComponents map.
rName | the name of the element to add |
rComponent | the VariableData object to add |
|
inlinestatic |
Retrieves the VariableData with the specified name.
This function retrieves the VariableData associated with the provided name from the msComponents container.
rName | The name of the VariableData to retrieve. |
|
inlinestatic |
Retrieves the ComponentsContainer.
This function returns a reference to the ComponentsContainer, which stores all the components.
|
inlinestatic |
Checks if the specified name exists in the set of components.
rName | the name to check |
|
inlinevirtual |
Turn back information as a string.
Kratos::KratosComponents< VariableData >::KRATOS_CLASS_POINTER_DEFINITION | ( | KratosComponents< VariableData > | ) |
Pointer definition of KratosComponents.
|
inlinestatic |
Retrieves the variable data associated with the given name.
rName | the name of the variable |
|
inlinestatic |
Returns a pointer to the ComponentsContainerType object.
|
inlinevirtual |
Print object's data.
|
inlinevirtual |
Print information about this object.
|
inlinestatic |
Registers the function.
|
inlinestatic |
Remove a component from the list by name.
rName | the name of the component to remove |
|
inlinestatic |
Get the size of the components.