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.
Classes | Typedefs | Functions
Kratos::ModelPartHelperUtils Namespace Reference

Classes

class  SetReduction
 
class  ContainerEntityMapReduction
 

Typedefs

using NodeIdsType = std::vector< IndexType >
 
template<class TEntityType >
using EntityPointerType = typename TEntityType::Pointer
 
template<class TContainerType >
using ContainerEntityValueType = typename TContainerType::value_type
 
template<class TContainerType >
using ContainerEntityPointerType = typename ContainerEntityValueType< TContainerType >::Pointer
 

Functions

void AppendModelPartNames (std::stringstream &rOutputStream, const std::vector< ModelPart * > &rModelParts)
 
template<class TContainerType >
void UpdateEntityIdsSetFromContainer (std::set< IndexType > &rOutput, const TContainerType &rContainer)
 
template<class TContainerType >
void UpdateEntityGeometryNodeIdsSetFromContainer (std::set< NodeIdsType > &rOutput, const TContainerType &rContainer)
 
template<class TContainerType >
void UpdateEntityIdEntityPtrMapWithCommonEntitiesFromContainerAndEntityIdsSet (std::map< IndexType, ContainerEntityPointerType< TContainerType >> &rOutput, const std::set< IndexType > &rEntityIdsSet, TContainerType &rContainer)
 
template<class TContainerType >
void UpdateEntityIdEntityPtrMapWithCommonEntitiesFromContainerAndEntityGeometryNodeIdsSet (std::map< IndexType, ContainerEntityPointerType< TContainerType >> &rOutput, const std::set< NodeIdsType > &rEntityGeometryNodeIdsSet, TContainerType &rContainer)
 
template<class TContainerType >
void UpdateNeighbourMaps (std::map< IndexType, std::vector< ContainerEntityPointerType< TContainerType >>> &rOutput, const std::set< IndexType > &rNodeIdsSet, TContainerType &rContainer)
 
template<class TEntityPointerType >
void UpdateEntityIdEntityPtrMapFromNeighbourMap (std::map< IndexType, TEntityPointerType > &rOutput, const std::map< IndexType, std::vector< TEntityPointerType >> &rNodeIdNeighbourEntityPtrsMap)
 
template<class TEntityPointerType >
void UpdateNodeIdNodePtrMapFromEntityIdEntityPtrMap (std::map< IndexType, ModelPart::NodeType::Pointer > &rOutput, const std::map< IndexType, TEntityPointerType > &rInput)
 
std::string GetExaminedModelPartsInfo (const std::vector< ModelPart * > &rExaminedModelPartsList, const bool AreNodesConsidered, const bool AreConditionsConsidered, const bool AreElementsConsidered, const bool AreNeighboursConsidered)
 
void GetModelParts (std::set< ModelPart * > &rOutput, ModelPart &rInput)
 
void ExamineModelParts (std::set< IndexType > &rExaminedNodeIds, std::set< NodeIdsType > &rExaminedConditionGeometryNodeIdsSet, std::set< NodeIdsType > &rExaminedElementGeometryNodeIdsSet, const std::vector< ModelPart * > rExaminedModelPartsList, const bool AreNodesConsidered, const bool AreConditionsConsidered, const bool AreElementsConsidered, const bool AreNeighboursConsidered)
 
void PopulateModelPart (ModelPart &rOutputModelPart, ModelPart &rReferenceModelPart, const bool AreNodesConsidered, const bool AreConditionsConsidered, const bool AreElementsConsidered, const bool AreNeighboursConsidered, const std::set< IndexType > &rExaminedNodeIds, const std::set< NodeIdsType > &rExaminedConditionGeometryNodeIdsSet, const std::set< NodeIdsType > &rExaminedElementGeometryNodeIdsSet)
 

Typedef Documentation

◆ ContainerEntityPointerType

template<class TContainerType >
using Kratos::ModelPartHelperUtils::ContainerEntityPointerType = typedef typename ContainerEntityValueType<TContainerType>::Pointer

◆ ContainerEntityValueType

template<class TContainerType >
using Kratos::ModelPartHelperUtils::ContainerEntityValueType = typedef typename TContainerType::value_type

◆ EntityPointerType

template<class TEntityType >
using Kratos::ModelPartHelperUtils::EntityPointerType = typedef typename TEntityType::Pointer

◆ NodeIdsType

Function Documentation

◆ AppendModelPartNames()

void Kratos::ModelPartHelperUtils::AppendModelPartNames ( std::stringstream &  rOutputStream,
const std::vector< ModelPart * > &  rModelParts 
)

◆ ExamineModelParts()

void Kratos::ModelPartHelperUtils::ExamineModelParts ( std::set< IndexType > &  rExaminedNodeIds,
std::set< NodeIdsType > &  rExaminedConditionGeometryNodeIdsSet,
std::set< NodeIdsType > &  rExaminedElementGeometryNodeIdsSet,
const std::vector< ModelPart * >  rExaminedModelPartsList,
const bool  AreNodesConsidered,
const bool  AreConditionsConsidered,
const bool  AreElementsConsidered,
const bool  AreNeighboursConsidered 
)

◆ GetExaminedModelPartsInfo()

std::string Kratos::ModelPartHelperUtils::GetExaminedModelPartsInfo ( const std::vector< ModelPart * > &  rExaminedModelPartsList,
const bool  AreNodesConsidered,
const bool  AreConditionsConsidered,
const bool  AreElementsConsidered,
const bool  AreNeighboursConsidered 
)

◆ GetModelParts()

void Kratos::ModelPartHelperUtils::GetModelParts ( std::set< ModelPart * > &  rOutput,
ModelPart rInput 
)

◆ PopulateModelPart()

void Kratos::ModelPartHelperUtils::PopulateModelPart ( ModelPart rOutputModelPart,
ModelPart rReferenceModelPart,
const bool  AreNodesConsidered,
const bool  AreConditionsConsidered,
const bool  AreElementsConsidered,
const bool  AreNeighboursConsidered,
const std::set< IndexType > &  rExaminedNodeIds,
const std::set< NodeIdsType > &  rExaminedConditionGeometryNodeIdsSet,
const std::set< NodeIdsType > &  rExaminedElementGeometryNodeIdsSet 
)

◆ UpdateEntityGeometryNodeIdsSetFromContainer()

template<class TContainerType >
void Kratos::ModelPartHelperUtils::UpdateEntityGeometryNodeIdsSetFromContainer ( std::set< NodeIdsType > &  rOutput,
const TContainerType &  rContainer 
)

◆ UpdateEntityIdEntityPtrMapFromNeighbourMap()

template<class TEntityPointerType >
void Kratos::ModelPartHelperUtils::UpdateEntityIdEntityPtrMapFromNeighbourMap ( std::map< IndexType, TEntityPointerType > &  rOutput,
const std::map< IndexType, std::vector< TEntityPointerType >> &  rNodeIdNeighbourEntityPtrsMap 
)

◆ UpdateEntityIdEntityPtrMapWithCommonEntitiesFromContainerAndEntityGeometryNodeIdsSet()

template<class TContainerType >
void Kratos::ModelPartHelperUtils::UpdateEntityIdEntityPtrMapWithCommonEntitiesFromContainerAndEntityGeometryNodeIdsSet ( std::map< IndexType, ContainerEntityPointerType< TContainerType >> &  rOutput,
const std::set< NodeIdsType > &  rEntityGeometryNodeIdsSet,
TContainerType &  rContainer 
)

◆ UpdateEntityIdEntityPtrMapWithCommonEntitiesFromContainerAndEntityIdsSet()

template<class TContainerType >
void Kratos::ModelPartHelperUtils::UpdateEntityIdEntityPtrMapWithCommonEntitiesFromContainerAndEntityIdsSet ( std::map< IndexType, ContainerEntityPointerType< TContainerType >> &  rOutput,
const std::set< IndexType > &  rEntityIdsSet,
TContainerType &  rContainer 
)

◆ UpdateEntityIdsSetFromContainer()

template<class TContainerType >
void Kratos::ModelPartHelperUtils::UpdateEntityIdsSetFromContainer ( std::set< IndexType > &  rOutput,
const TContainerType &  rContainer 
)

◆ UpdateNeighbourMaps()

template<class TContainerType >
void Kratos::ModelPartHelperUtils::UpdateNeighbourMaps ( std::map< IndexType, std::vector< ContainerEntityPointerType< TContainerType >>> &  rOutput,
const std::set< IndexType > &  rNodeIdsSet,
TContainerType &  rContainer 
)

◆ UpdateNodeIdNodePtrMapFromEntityIdEntityPtrMap()

template<class TEntityPointerType >
void Kratos::ModelPartHelperUtils::UpdateNodeIdNodePtrMapFromEntityIdEntityPtrMap ( std::map< IndexType, ModelPart::NodeType::Pointer > &  rOutput,
const std::map< IndexType, TEntityPointerType > &  rInput 
)