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.
Functions
Kratos::VtuOutputHelperUtilities Namespace Reference

Functions

Expression::ConstPointer CreatePositionsExpression (const ModelPart::NodesContainerType &rNodes, const bool IsInitialConfiguration)
 
XmlExpressionElement::Pointer CreateDataArrayElement (const std::string &rDataArrayName, const std::vector< const Expression * > &rExpressions)
 
template<class TContainerType , MeshType TMeshType>
const ExpressionpGetExpression (const ContainerExpression< TContainerType, TMeshType > &rContainerExpression)
 
void AddDataArrayElement (XmlExpressionElement::Pointer pParentElement, XmlExpressionElement::Pointer pDataArrayElement)
 
XmlExpressionElement::Pointer CreatePointsXmlElement (const ModelPart &rModelPart, const bool IsInitialConfiguration)
 
template<class TContainerType >
LiteralFlatExpression< int >::Pointer CreateOffsetsExpression (const TContainerType &rContainer)
 
template<class TContainerType >
Expression::Pointer CreateGeometryTypesExpression (const TContainerType &rContainer)
 
template<class TContainerType >
Expression::Pointer CreateConnectivityExpression (const LiteralFlatExpression< int >::Pointer pOffsetsExpression, const TContainerType &rContainer, const std::unordered_map< IndexType, IndexType > &rKratosVtuIndicesMap)
 
template<class TContainerType >
XmlExpressionElement::Pointer CreateCellsXmlElement (const TContainerType &rContainer, const std::unordered_map< IndexType, IndexType > &rKratosVtuIndicesMap)
 
template<class TDataType , class TContainerType , class TContainerDataIOTag >
XmlExpressionElement::Pointer CreateVariableDataXmlElement (const Variable< TDataType > &rVariable, ModelPart &rModelPart)
 
template<class TContainerType >
Expression::Pointer CreateContainerFlagExpression (const TContainerType &rContainer, const Flags &rFlag)
 
template<class TContainerType >
XmlExpressionElement::Pointer CreateFlagDataXmlElement (const std::string &rFlagName, const Flags &rFlags, const ModelPart &rModelPart)
 
Expression::Pointer CreateGhostNodeExpression (const DataCommunicator &rDataCommunicator, const Expression &rLocalNodesExpression, const ModelPart::NodesContainerType &rLocalNodes, const ModelPart::NodesContainerType &rGhostNodes, const std::unordered_map< IndexType, IndexType > &rKratosVtuIndicesMap)
 
template<class TContainerType >
XmlExpressionElement::Pointer CreateContainerExpressionXmlElement (const std::string &rExpressionName, const ContainerExpression< TContainerType > &rContainerExpression, const std::unordered_map< IndexType, IndexType > &rKratosVtuIndicesMap)
 
template<class... TLists>
void CheckDataArrayName (const std::string &rName, TLists &... rLists)
 
template<class TContaierType , class TContainerIOTag >
void AddListOfVariables (XmlExpressionElement::Pointer pXmlDataElement, ModelPart &rModelPart, const std::map< std::string, VtuOutput::SupportedVariables > &rVariablesMap)
 
template<class TContaierType >
void AddListOfFlags (XmlExpressionElement::Pointer pXmlDataElement, ModelPart &rModelPart, const std::map< std::string, const Flags * > &rFlagsMap)
 
template<class TContainerExpressionType >
void AddListOfContainerExpressions (XmlExpressionElement::Pointer pXmlDataElement, ModelPart &rModelPart, const std::unordered_map< IndexType, IndexType > &rKratosVtuIndicesMap, const std::map< std::string, TContainerExpressionType > &rContainerExpressionsMap)
 
void CopyAttributes (XmlExpressionElement &rOutputElement, const XmlExpressionElement &rInputElement)
 
void CreatePDataArrays (XmlExpressionElement &rOutputElement, const XmlExpressionElement &rInputElement)
 
std::string GetEndianness ()
 
void WritePvtuFile (XmlExpressionElement::Pointer pVtkFileElement, const ModelPart &rModelPart, const std::string &rOutputFileNamePrefix, const std::string &rOutputFileName)
 

Function Documentation

◆ AddDataArrayElement()

void Kratos::VtuOutputHelperUtilities::AddDataArrayElement ( XmlExpressionElement::Pointer  pParentElement,
XmlExpressionElement::Pointer  pDataArrayElement 
)

◆ AddListOfContainerExpressions()

template<class TContainerExpressionType >
void Kratos::VtuOutputHelperUtilities::AddListOfContainerExpressions ( XmlExpressionElement::Pointer  pXmlDataElement,
ModelPart rModelPart,
const std::unordered_map< IndexType, IndexType > &  rKratosVtuIndicesMap,
const std::map< std::string, TContainerExpressionType > &  rContainerExpressionsMap 
)

◆ AddListOfFlags()

template<class TContaierType >
void Kratos::VtuOutputHelperUtilities::AddListOfFlags ( XmlExpressionElement::Pointer  pXmlDataElement,
ModelPart rModelPart,
const std::map< std::string, const Flags * > &  rFlagsMap 
)

◆ AddListOfVariables()

template<class TContaierType , class TContainerIOTag >
void Kratos::VtuOutputHelperUtilities::AddListOfVariables ( XmlExpressionElement::Pointer  pXmlDataElement,
ModelPart rModelPart,
const std::map< std::string, VtuOutput::SupportedVariables > &  rVariablesMap 
)

◆ CheckDataArrayName()

template<class... TLists>
void Kratos::VtuOutputHelperUtilities::CheckDataArrayName ( const std::string &  rName,
TLists &...  rLists 
)

◆ CopyAttributes()

void Kratos::VtuOutputHelperUtilities::CopyAttributes ( XmlExpressionElement rOutputElement,
const XmlExpressionElement rInputElement 
)

◆ CreateCellsXmlElement()

template<class TContainerType >
XmlExpressionElement::Pointer Kratos::VtuOutputHelperUtilities::CreateCellsXmlElement ( const TContainerType &  rContainer,
const std::unordered_map< IndexType, IndexType > &  rKratosVtuIndicesMap 
)

◆ CreateConnectivityExpression()

template<class TContainerType >
Expression::Pointer Kratos::VtuOutputHelperUtilities::CreateConnectivityExpression ( const LiteralFlatExpression< int >::Pointer  pOffsetsExpression,
const TContainerType &  rContainer,
const std::unordered_map< IndexType, IndexType > &  rKratosVtuIndicesMap 
)

◆ CreateContainerExpressionXmlElement()

template<class TContainerType >
XmlExpressionElement::Pointer Kratos::VtuOutputHelperUtilities::CreateContainerExpressionXmlElement ( const std::string &  rExpressionName,
const ContainerExpression< TContainerType > &  rContainerExpression,
const std::unordered_map< IndexType, IndexType > &  rKratosVtuIndicesMap 
)

◆ CreateContainerFlagExpression()

template<class TContainerType >
Expression::Pointer Kratos::VtuOutputHelperUtilities::CreateContainerFlagExpression ( const TContainerType &  rContainer,
const Flags rFlag 
)

◆ CreateDataArrayElement()

XmlExpressionElement::Pointer Kratos::VtuOutputHelperUtilities::CreateDataArrayElement ( const std::string &  rDataArrayName,
const std::vector< const Expression * > &  rExpressions 
)

◆ CreateFlagDataXmlElement()

template<class TContainerType >
XmlExpressionElement::Pointer Kratos::VtuOutputHelperUtilities::CreateFlagDataXmlElement ( const std::string &  rFlagName,
const Flags rFlags,
const ModelPart rModelPart 
)

◆ CreateGeometryTypesExpression()

template<class TContainerType >
Expression::Pointer Kratos::VtuOutputHelperUtilities::CreateGeometryTypesExpression ( const TContainerType &  rContainer)

◆ CreateGhostNodeExpression()

Expression::Pointer Kratos::VtuOutputHelperUtilities::CreateGhostNodeExpression ( const DataCommunicator rDataCommunicator,
const Expression rLocalNodesExpression,
const ModelPart::NodesContainerType rLocalNodes,
const ModelPart::NodesContainerType rGhostNodes,
const std::unordered_map< IndexType, IndexType > &  rKratosVtuIndicesMap 
)

◆ CreateOffsetsExpression()

template<class TContainerType >
LiteralFlatExpression<int>::Pointer Kratos::VtuOutputHelperUtilities::CreateOffsetsExpression ( const TContainerType &  rContainer)

◆ CreatePDataArrays()

void Kratos::VtuOutputHelperUtilities::CreatePDataArrays ( XmlExpressionElement rOutputElement,
const XmlExpressionElement rInputElement 
)

◆ CreatePointsXmlElement()

XmlExpressionElement::Pointer Kratos::VtuOutputHelperUtilities::CreatePointsXmlElement ( const ModelPart rModelPart,
const bool  IsInitialConfiguration 
)

◆ CreatePositionsExpression()

Expression::ConstPointer Kratos::VtuOutputHelperUtilities::CreatePositionsExpression ( const ModelPart::NodesContainerType rNodes,
const bool  IsInitialConfiguration 
)

◆ CreateVariableDataXmlElement()

template<class TDataType , class TContainerType , class TContainerDataIOTag >
XmlExpressionElement::Pointer Kratos::VtuOutputHelperUtilities::CreateVariableDataXmlElement ( const Variable< TDataType > &  rVariable,
ModelPart rModelPart 
)

◆ GetEndianness()

std::string Kratos::VtuOutputHelperUtilities::GetEndianness ( )

◆ pGetExpression()

template<class TContainerType , MeshType TMeshType>
const Expression* Kratos::VtuOutputHelperUtilities::pGetExpression ( const ContainerExpression< TContainerType, TMeshType > &  rContainerExpression)

◆ WritePvtuFile()

void Kratos::VtuOutputHelperUtilities::WritePvtuFile ( XmlExpressionElement::Pointer  pVtkFileElement,
const ModelPart rModelPart,
const std::string &  rOutputFileNamePrefix,
const std::string &  rOutputFileName 
)