Class UnknownManager
Defined in File unknown_manager.h
Class Documentation
-
class UnknownManager
General object for the management of unknowns in mesh-based mathematical model.
Public Functions
-
inline explicit UnknownManager(UnknownStorageType storage_type = UnknownStorageType::NODAL) noexcept
-
inline UnknownManager(std::initializer_list<std::pair<UnknownType, unsigned int>> unknown_info_list, UnknownStorageType storage_type = UnknownStorageType::NODAL) noexcept
-
inline explicit UnknownManager(const std::vector<Unknown> &unknown_info_list, UnknownStorageType storage_type = UnknownStorageType::NODAL) noexcept
-
inline UnknownManager(std::initializer_list<Unknown> unknowns, UnknownStorageType storage_type = UnknownStorageType::NODAL) noexcept
-
UnknownManager(const UnknownManager &other) = default
-
UnknownManager &operator=(const UnknownManager &other) = default
-
inline size_t GetNumberOfUnknowns() const
-
inline void SetDOFStorageType(const UnknownStorageType storage_type)
-
inline UnknownStorageType GetDOFStorageType() const
-
inline void Clear()
-
unsigned int AddUnknown(UnknownType unk_type, unsigned int dimension = 0)
Adds an unknown to the manager. This method will figure out where the last unknown ends and where to begin the next one.
-
unsigned int MapUnknown(int unknown_id, unsigned int component = 0) const
Maps the unknown’s component within the storage of a node.
-
unsigned int GetTotalUnknownStructureSize() const
Determines the total number of components over all unknowns.
-
void SetUnknownNumOffBlockConnections(int unknown_id, int num_conn)
Sets the number of off block connections for the given unknown. All the components will be set to the same amount.
-
void SetUnknownComponentNumOffBlockConnections(int unknown_id, unsigned int component, int num_conn)
Sets the number of off block connections for the given unknown-component pair.
-
void SetUnknownName(int unknown_id, const std::string &unk_name)
Sets a unk_name for the indicated unknown.
-
void SetUnknownComponentName(int unknown_id, unsigned int component, const std::string &component_name)
Sets the component_name to be associated with each component of the unknown.
-
~UnknownManager() = default
Public Static Functions
-
static inline UnknownManager GetUnitaryUnknownManager()
-
inline explicit UnknownManager(UnknownStorageType storage_type = UnknownStorageType::NODAL) noexcept