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.
Public Member Functions | List of all members
Kratos::CoSimIOConversionUtilities Class Reference

Short class definition. More...

#include <co_sim_io_conversion_utilities.h>

Collaboration diagram for Kratos::CoSimIOConversionUtilities:

Public Member Functions

template<>
void GetData (Kratos::ModelPart &rModelPart, std::vector< double > &rData, const Variable< double > &rVariable, const DataLocation DataLoc)
 
template<>
void GetData (Kratos::ModelPart &rModelPart, std::vector< double > &rData, const Variable< array_1d< double, 3 >> &rVariable, const DataLocation DataLoc)
 
template<>
void SetData (Kratos::ModelPart &rModelPart, const std::vector< double > &rData, const Variable< double > &rVariable, const DataLocation DataLoc)
 
template<>
void SetData (Kratos::ModelPart &rModelPart, const std::vector< double > &rData, const Variable< array_1d< double, 3 >> &rVariable, const DataLocation DataLoc)
 
Life Cycle
 CoSimIOConversionUtilities ()=delete
 Default constructor. More...
 
CoSimIOConversionUtilitiesoperator= (CoSimIOConversionUtilities const &rOther)=delete
 Assignment operator. More...
 
 CoSimIOConversionUtilities (CoSimIOConversionUtilities const &rOther)=delete
 Copy constructor. More...
 

Static Public Member Functions

Operations
static void CoSimIOModelPartToKratosModelPart (const CoSimIO::ModelPart &rCoSimIOModelPart, Kratos::ModelPart &rKratosModelPart, const DataCommunicator &rDataComm)
 
static void KratosModelPartToCoSimIOModelPart (const Kratos::ModelPart &rKratosModelPart, CoSimIO::ModelPart &rCoSimIOModelPart)
 
template<typename TDataType >
static void GetData (Kratos::ModelPart &rModelPart, std::vector< double > &rData, const Variable< TDataType > &rVariable, const DataLocation DataLoc)
 
template<typename TDataType >
static void SetData (Kratos::ModelPart &rModelPart, const std::vector< double > &rData, const Variable< TDataType > &rVariable, const DataLocation DataLoc)
 
static CoSimIO::Info InfoFromParameters (const Parameters rSettings)
 

Type Definitions

using DataLocation = Globals::DataLocation
 
 KRATOS_CLASS_POINTER_DEFINITION (CoSimIOConversionUtilities)
 Pointer definition of CoSimIOConversionUtilities. More...
 

Detailed Description

Short class definition.

Detail class definition.

Member Typedef Documentation

◆ DataLocation

Constructor & Destructor Documentation

◆ CoSimIOConversionUtilities() [1/2]

Kratos::CoSimIOConversionUtilities::CoSimIOConversionUtilities ( )
delete

Default constructor.

◆ CoSimIOConversionUtilities() [2/2]

Kratos::CoSimIOConversionUtilities::CoSimIOConversionUtilities ( CoSimIOConversionUtilities const &  rOther)
delete

Copy constructor.

Member Function Documentation

◆ CoSimIOModelPartToKratosModelPart()

void Kratos::CoSimIOConversionUtilities::CoSimIOModelPartToKratosModelPart ( const CoSimIO::ModelPart &  rCoSimIOModelPart,
Kratos::ModelPart rKratosModelPart,
const DataCommunicator rDataComm 
)
static

◆ GetData() [1/3]

template<>
void Kratos::CoSimIOConversionUtilities::GetData ( Kratos::ModelPart rModelPart,
std::vector< double > &  rData,
const Variable< array_1d< double, 3 >> &  rVariable,
const DataLocation  DataLoc 
)

◆ GetData() [2/3]

template<>
void Kratos::CoSimIOConversionUtilities::GetData ( Kratos::ModelPart rModelPart,
std::vector< double > &  rData,
const Variable< double > &  rVariable,
const DataLocation  DataLoc 
)

◆ GetData() [3/3]

template<typename TDataType >
static void Kratos::CoSimIOConversionUtilities::GetData ( Kratos::ModelPart rModelPart,
std::vector< double > &  rData,
const Variable< TDataType > &  rVariable,
const DataLocation  DataLoc 
)
static

◆ InfoFromParameters()

CoSimIO::Info Kratos::CoSimIOConversionUtilities::InfoFromParameters ( const Parameters  rSettings)
static

◆ KRATOS_CLASS_POINTER_DEFINITION()

Kratos::CoSimIOConversionUtilities::KRATOS_CLASS_POINTER_DEFINITION ( CoSimIOConversionUtilities  )

Pointer definition of CoSimIOConversionUtilities.

◆ KratosModelPartToCoSimIOModelPart()

void Kratos::CoSimIOConversionUtilities::KratosModelPartToCoSimIOModelPart ( const Kratos::ModelPart rKratosModelPart,
CoSimIO::ModelPart &  rCoSimIOModelPart 
)
static

◆ operator=()

CoSimIOConversionUtilities& Kratos::CoSimIOConversionUtilities::operator= ( CoSimIOConversionUtilities const &  rOther)
delete

Assignment operator.

◆ SetData() [1/3]

template<>
void Kratos::CoSimIOConversionUtilities::SetData ( Kratos::ModelPart rModelPart,
const std::vector< double > &  rData,
const Variable< array_1d< double, 3 >> &  rVariable,
const DataLocation  DataLoc 
)

◆ SetData() [2/3]

template<>
void Kratos::CoSimIOConversionUtilities::SetData ( Kratos::ModelPart rModelPart,
const std::vector< double > &  rData,
const Variable< double > &  rVariable,
const DataLocation  DataLoc 
)

◆ SetData() [3/3]

template<typename TDataType >
static void Kratos::CoSimIOConversionUtilities::SetData ( Kratos::ModelPart rModelPart,
const std::vector< double > &  rData,
const Variable< TDataType > &  rVariable,
const DataLocation  DataLoc 
)
static

The documentation for this class was generated from the following files: