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.
List of all members
Kratos::GidIO< TGaussPointContainer, TMeshContainer > Class Template Reference

This class defines an interface to the GiDPost library in order to provide GiD compliant I/O functionality. More...

#include <gid_io.h>

Inheritance diagram for Kratos::GidIO< TGaussPointContainer, TMeshContainer >:
Collaboration diagram for Kratos::GidIO< TGaussPointContainer, TMeshContainer >:

Public Member Functions

Life Cycle
 GidIO (const std::string &rDatafilename, const GiD_PostMode Mode, const MultiFileFlag UseMultipleFilesFlag, const WriteDeformedMeshFlag WriteDeformedFlag, const WriteConditionsFlag WriteConditions, const bool InitializeGaussPointContainers=true)
 Constructor. Single stream IO constructor. More...
 
 ~GidIO () override
 Destructor. More...
 
- Public Member Functions inherited from Kratos::GidIOBase
int GetData ()
 
void SetData (int data)
 
- Public Member Functions inherited from Kratos::IO
 IO ()=default
 Default constructor. More...
 
virtual ~IO ()=default
 Destructor. More...
 
 IO (IO const &rOther)=delete
 Copy constructor. More...
 
IOoperator= (IO const &rOther)=delete
 Assignment operator. More...
 
virtual bool ReadNode (NodeType &rThisNode)
 This method reads one node. More...
 
virtual bool ReadNodes (NodesContainerType &rThisNodes)
 This method reads the nodes from an array of nodes. More...
 
virtual std::size_t ReadNodesNumber ()
 This method reads the number of nodes. More...
 
virtual void WriteNodes (NodesContainerType const &rThisNodes)
 This method writes the nodes from an array of nodes. More...
 
virtual void ReadProperties (Properties &rThisProperties)
 This method reads one Properties. More...
 
virtual void ReadProperties (PropertiesContainerType &rThisProperties)
 This method reads the Properties from an array of Properties. More...
 
virtual void WriteProperties (Properties const &rThisProperties)
 This method writes one Properties. More...
 
virtual void WriteProperties (PropertiesContainerType const &rThisProperties)
 This method writes the Properties from an array of Properties. More...
 
virtual void ReadGeometry (NodesContainerType &rThisNodes, GeometryType::Pointer &pThisGeometry)
 This method reads one geometry. More...
 
virtual void ReadGeometries (NodesContainerType &rThisNodes, GeometryContainerType &rThisGeometries)
 This method reads an array of geometries. More...
 
virtual std::size_t ReadGeometriesConnectivities (ConnectivitiesContainerType &rGeometriesConnectivities)
 This method reads the geometries connectivities. More...
 
virtual void WriteGeometries (GeometryContainerType const &rThisGeometries)
 This method writes an array of geometries. More...
 
virtual void ReadElement (NodesContainerType &rThisNodes, PropertiesContainerType &rThisProperties, Element::Pointer &pThisElement)
 This method reads one element. More...
 
virtual void ReadElements (NodesContainerType &rThisNodes, PropertiesContainerType &rThisProperties, ElementsContainerType &rThisElements)
 This method reads an array of elements. More...
 
virtual std::size_t ReadElementsConnectivities (ConnectivitiesContainerType &rElementsConnectivities)
 This method reads the elements connectivities. More...
 
virtual void WriteElements (ElementsContainerType const &rThisElements)
 This method writes an array of elements. More...
 
virtual void ReadCondition (NodesContainerType &rThisNodes, PropertiesContainerType &rThisProperties, Condition::Pointer &pThisCondition)
 This method reads one condition. More...
 
virtual void ReadConditions (NodesContainerType &rThisNodes, PropertiesContainerType &rThisProperties, ConditionsContainerType &rThisConditions)
 This method reads an array of conditions. More...
 
virtual std::size_t ReadConditionsConnectivities (ConnectivitiesContainerType &rConditionsConnectivities)
 This method reads the conditions connectivities. More...
 
virtual void WriteConditions (ConditionsContainerType const &rThisConditions)
 This method writes an array of conditions. More...
 
virtual void ReadInitialValues (ModelPart &rThisModelPart)
 This method reads the initial values of the model part. More...
 
virtual void ReadInitialValues (NodesContainerType &rThisNodes, ElementsContainerType &rThisElements, ConditionsContainerType &rThisConditions)
 This method reads the initial values of the nodes, elements and conditios. More...
 
virtual void ReadMesh (MeshType &rThisMesh)
 This method reads the mesh. More...
 
virtual void WriteMesh (const MeshType &rThisMesh)
 This method writes the mesh. More...
 
virtual void ReadModelPart (ModelPart &rThisModelPart)
 This method reads the model part. More...
 
virtual void WriteModelPart (ModelPart &rThisModelPart)
 This method writes the model part. More...
 
virtual void WriteModelPart (const ModelPart &rThisModelPart)
 This method writes the model part. More...
 
virtual void WriteNodeMesh (const MeshType &rThisMesh)
 This method writes the node mesh. More...
 
virtual std::size_t ReadNodalGraph (ConnectivitiesContainerType &rAuxConnectivities)
 Read the input file and create the nodal connectivities graph, stored in CSR format. More...
 
virtual void DivideInputToPartitions (SizeType NumberOfPartitions, const PartitioningInfo &rPartitioningInfo)
 This method divides a model part into partitions. More...
 
virtual void DivideInputToPartitions (SizeType NumberOfPartitions, GraphType const &rDomainsColoredGraph, PartitionIndicesType const &rNodesPartitions, PartitionIndicesType const &rElementsPartitions, PartitionIndicesType const &rConditionsPartitions, PartitionIndicesContainerType const &rNodesAllPartitions, PartitionIndicesContainerType const &rElementsAllPartitions, PartitionIndicesContainerType const &rConditionsAllPartitions)
 This method divides a model part into partitions. More...
 
virtual void DivideInputToPartitions (Kratos::shared_ptr< std::iostream > *pStreams, SizeType NumberOfPartitions, const PartitioningInfo &rPartitioningInfo)
 This method divides a model part into partitions. More...
 
virtual void DivideInputToPartitions (Kratos::shared_ptr< std::iostream > *pStreams, SizeType NumberOfPartitions, GraphType const &rDomainsColoredGraph, PartitionIndicesType const &rNodesPartitions, PartitionIndicesType const &rElementsPartitions, PartitionIndicesType const &rConditionsPartitions, PartitionIndicesContainerType const &rNodesAllPartitions, PartitionIndicesContainerType const &rElementsAllPartitions, PartitionIndicesContainerType const &rConditionsAllPartitions)
 This method divides a model part into partitions. More...
 
virtual void ReadSubModelPartElementsAndConditionsIds (std::string const &rModelPartName, std::unordered_set< SizeType > &rElementsIds, std::unordered_set< SizeType > &rConditionsIds)
 
virtual std::size_t ReadNodalGraphFromEntitiesList (ConnectivitiesContainerType &rAuxConnectivities, std::unordered_set< SizeType > &rElementsIds, std::unordered_set< SizeType > &rConditionsIds)
 
 KRATOS_CLASS_POINTER_DEFINITION (IO)
 Pointer definition of IO. More...
 
 KRATOS_DEFINE_LOCAL_FLAG (READ)
 Local Flags. More...
 
 KRATOS_DEFINE_LOCAL_FLAG (WRITE)
 
 KRATOS_DEFINE_LOCAL_FLAG (APPEND)
 
 KRATOS_DEFINE_LOCAL_FLAG (IGNORE_VARIABLES_ERROR)
 
 KRATOS_DEFINE_LOCAL_FLAG (SKIP_TIMER)
 
 KRATOS_DEFINE_LOCAL_FLAG (MESH_ONLY)
 
 KRATOS_DEFINE_LOCAL_FLAG (SCIENTIFIC_PRECISION)
 

Type Definitions

typedef IO BaseType
 Base class definition. More...
 
typedef ModelPart::ElementsContainerType ElementsArrayType
 Containers definition. More...
 
typedef ModelPart::NodesContainerType NodesArrayType
 
typedef ModelPart::ConditionsContainerType ConditionsArrayType
 
typedef GeometryData::IntegrationMethod IntegrationMethodType
 Integration method definition. More...
 
typedef GeometryData::KratosGeometryFamily KratosGeometryFamily
 Geometry family definition. More...
 
 KRATOS_CLASS_POINTER_DEFINITION (GidIO)
 Pointer definition of GidIO. More...
 

Operations

std::string mResultFileName
 
std::string mMeshFileName
 
GiD_FILE mMeshFile
 
GiD_FILE mResultFile
 
WriteDeformedMeshFlag mWriteDeformed
 
WriteConditionsFlag mWriteConditions
 
MultiFileFlag mUseMultiFile
 
GiD_PostMode mMode
 
std::vector< TMeshContainer > mGidMeshContainers
 
std::vector< TGaussPointContainer > mGidGaussPointContainers
 
bool mMeshFileOpen
 
bool mResultFileOpen
 
void SetUpMeshContainers ()
 Creates the mesh containers for all different element types. More...
 
virtual void SetUpGaussPointContainers ()
 Creates the gauss point containers for all different element types. More...
 
void ChangeOutputName (const std::string &rDatafilename)
 General GidIO related functions ///. More...
 
void InitializeResultFile (std::string const &rResultFileName)
 
void CloseResultFile ()
 
void Flush ()
 
std::string Info () const override
 
void PrintInfo (std::ostream &rOStream) const override
 
void PrintData (std::ostream &rOStream) const override
 
virtual void InitializeResults (const double name, const MeshType &rThisMesh)
 result functions More...
 
void FinalizeResults ()
 
void WriteNodalResults (Variable< bool > const &rVariable, const NodesContainerType &rNodes, const double SolutionTag, const std::size_t SolutionStepNumber)
 functions for writing nodal results More...
 
void WriteNodalResults (Variable< double > const &rVariable, const NodesContainerType &rNodes, const double SolutionTag, const std::size_t SolutionStepNumber)
 functions for writing nodal results More...
 
void WriteNodalResults (Variable< int > const &rVariable, const NodesContainerType &rNodes, const double SolutionTag, const std::size_t SolutionStepNumber)
 
void WriteNodalResults (Variable< array_1d< double, 3 > > const &rVariable, const NodesContainerType &rNodes, const double SolutionTag, const std::size_t SolutionStepNumber)
 
void WriteNodalResults (Variable< Vector > const &rVariable, const NodesContainerType &rNodes, const double SolutionTag, const std::size_t SolutionStepNumber)
 
void WriteNodalResults (Variable< Matrix > const &rVariable, const NodesContainerType &rNodes, const double SolutionTag, const std::size_t SolutionStepNumber)
 
void WriteLocalAxesOnNodes (Variable< array_1d< double, 3 > > const &rVariable, const NodesContainerType &rNodes, const double SolutionTag, const std::size_t SolutionStepNumber)
 
void WriteNodalFlags (const Kratos::Flags &rFlag, const std::string &rFlagName, const NodesContainerType &rNodes, const double SolutionTag)
 
void WriteNodalResultsNonHistorical (Variable< bool > const &rVariable, const NodesContainerType &rNodes, const double SolutionTag)
 
void WriteNodalResultsNonHistorical (Variable< double > const &rVariable, const NodesContainerType &rNodes, const double SolutionTag)
 functions for writing nodal results More...
 
void WriteNodalResultsNonHistorical (Variable< int > const &rVariable, const NodesContainerType &rNodes, const double SolutionTag)
 
void WriteNodalResultsNonHistorical (Variable< array_1d< double, 3 > > const &rVariable, const NodesContainerType &rNodes, const double SolutionTag)
 
void WriteNodalResultsNonHistorical (Variable< Vector > const &rVariable, const NodesContainerType &rNodes, const double SolutionTag)
 
void WriteNodalResultsNonHistorical (Variable< Matrix > const &rVariable, const NodesContainerType &rNodes, const double SolutionTag)
 
void WriteLocalAxesOnNodesNonHistorical (Variable< array_1d< double, 3 > > const &rVariable, const NodesContainerType &rNodes, const double SolutionTag)
 
void InitializeMesh (const double name)
 mesh writing functions More...
 
void FinalizeMesh ()
 
void WriteNodeMesh (MeshType &rThisMesh) override
 
void WriteSphereMesh (const MeshType &rThisMesh)
 
void WriteCircleMesh (const MeshType &rThisMesh)
 
void WriteClusterMesh (const MeshType &rThisMesh)
 
void WriteMesh (MeshType &rThisMesh) override
 
void PrintFlagsOnGaussPoints (const Kratos::Flags &rFlag, const std::string &rFlagName, const ModelPart &rModelPart, const double SolutionTag)
 functions for printing results on gauss points More...
 
virtual void PrintOnGaussPoints (const Variable< bool > &rVariable, const ModelPart &rModelPart, const double SolutionTag, const int ValueIndex=0)
 
virtual void PrintOnGaussPoints (const Variable< int > &rVariable, const ModelPart &rModelPart, const double SolutionTag, const int ValueIndex=0)
 
virtual void PrintOnGaussPoints (const Variable< double > &rVariable, const ModelPart &rModelPart, const double SolutionTag, const int ValueIndex=0)
 
virtual void PrintOnGaussPoints (const Variable< array_1d< double, 3 > > &rVariable, const ModelPart &rModelPart, const double SolutionTag, const int ValueIndex=0)
 
virtual void PrintOnGaussPoints (const Variable< Vector > &rVariable, const ModelPart &rModelPart, const double SolutionTag, const int ValueIndex=0)
 
virtual void PrintOnGaussPoints (const Variable< Matrix > &rVariable, const ModelPart &rModelPart, const double SolutionTag, const int ValueIndex=0)
 

Additional Inherited Members

- Public Types inherited from Kratos::IO
typedef Node NodeType
 
typedef Geometry< NodeTypeGeometryType
 
typedef Mesh< NodeType, Properties, Element, ConditionMeshType
 
typedef MeshType::NodesContainerType NodesContainerType
 
typedef MeshType::PropertiesContainerType PropertiesContainerType
 
typedef ModelPart::GeometryContainerType GeometryContainerType
 
typedef MeshType::ElementsContainerType ElementsContainerType
 
typedef MeshType::ConditionsContainerType ConditionsContainerType
 
typedef std::vector< std::vector< std::size_t > > ConnectivitiesContainerType
 
typedef std::vector< std::vector< std::size_t > > PartitionIndicesContainerType
 
typedef std::vector< std::size_t > PartitionIndicesType
 
typedef std::size_t SizeType
 
typedef DenseMatrix< intGraphType
 
- Static Public Member Functions inherited from Kratos::GidIOBase
static GidIOBaseGetInstance ()
 
- Protected Member Functions inherited from Kratos::GidIOBase
 GidIOBase ()
 
- Protected Attributes inherited from Kratos::GidIOBase
int data
 

Detailed Description

template<class TGaussPointContainer = GidGaussPointsContainer, class TMeshContainer = GidMeshContainer>
class Kratos::GidIO< TGaussPointContainer, TMeshContainer >

This class defines an interface to the GiDPost library in order to provide GiD compliant I/O functionality.

Template Parameters
TGaussPointContainerThe gauss point container considered
TMeshContainerThe mesh container considered
Author
Riccardo Rossi
Janosch Stascheit
Pooyan Dadvand

Member Typedef Documentation

◆ BaseType

template<class TGaussPointContainer = GidGaussPointsContainer, class TMeshContainer = GidMeshContainer>
typedef IO Kratos::GidIO< TGaussPointContainer, TMeshContainer >::BaseType

Base class definition.

◆ ConditionsArrayType

template<class TGaussPointContainer = GidGaussPointsContainer, class TMeshContainer = GidMeshContainer>
typedef ModelPart::ConditionsContainerType Kratos::GidIO< TGaussPointContainer, TMeshContainer >::ConditionsArrayType

◆ ElementsArrayType

template<class TGaussPointContainer = GidGaussPointsContainer, class TMeshContainer = GidMeshContainer>
typedef ModelPart::ElementsContainerType Kratos::GidIO< TGaussPointContainer, TMeshContainer >::ElementsArrayType

Containers definition.

◆ IntegrationMethodType

template<class TGaussPointContainer = GidGaussPointsContainer, class TMeshContainer = GidMeshContainer>
typedef GeometryData::IntegrationMethod Kratos::GidIO< TGaussPointContainer, TMeshContainer >::IntegrationMethodType

Integration method definition.

◆ KratosGeometryFamily

template<class TGaussPointContainer = GidGaussPointsContainer, class TMeshContainer = GidMeshContainer>
typedef GeometryData::KratosGeometryFamily Kratos::GidIO< TGaussPointContainer, TMeshContainer >::KratosGeometryFamily

Geometry family definition.

◆ NodesArrayType

template<class TGaussPointContainer = GidGaussPointsContainer, class TMeshContainer = GidMeshContainer>
typedef ModelPart::NodesContainerType Kratos::GidIO< TGaussPointContainer, TMeshContainer >::NodesArrayType

Constructor & Destructor Documentation

◆ GidIO()

template<class TGaussPointContainer = GidGaussPointsContainer, class TMeshContainer = GidMeshContainer>
Kratos::GidIO< TGaussPointContainer, TMeshContainer >::GidIO ( const std::string &  rDatafilename,
const GiD_PostMode  Mode,
const MultiFileFlag  UseMultipleFilesFlag,
const WriteDeformedMeshFlag  WriteDeformedFlag,
const WriteConditionsFlag  WriteConditions,
const bool  InitializeGaussPointContainers = true 
)
inline

Constructor. Single stream IO constructor.

◆ ~GidIO()

template<class TGaussPointContainer = GidGaussPointsContainer, class TMeshContainer = GidMeshContainer>
Kratos::GidIO< TGaussPointContainer, TMeshContainer >::~GidIO ( )
inlineoverride

Destructor.

Member Function Documentation

◆ ChangeOutputName()

template<class TGaussPointContainer = GidGaussPointsContainer, class TMeshContainer = GidMeshContainer>
void Kratos::GidIO< TGaussPointContainer, TMeshContainer >::ChangeOutputName ( const std::string &  rDatafilename)
inline

General GidIO related functions ///.

Todo:
To be removed

◆ CloseResultFile()

template<class TGaussPointContainer = GidGaussPointsContainer, class TMeshContainer = GidMeshContainer>
void Kratos::GidIO< TGaussPointContainer, TMeshContainer >::CloseResultFile ( )
inline

TODO: check whether this is still necessary!

◆ FinalizeMesh()

template<class TGaussPointContainer = GidGaussPointsContainer, class TMeshContainer = GidMeshContainer>
void Kratos::GidIO< TGaussPointContainer, TMeshContainer >::FinalizeMesh ( )
inline

closes a mesh group

◆ FinalizeResults()

template<class TGaussPointContainer = GidGaussPointsContainer, class TMeshContainer = GidMeshContainer>
void Kratos::GidIO< TGaussPointContainer, TMeshContainer >::FinalizeResults ( )
inline

This has to be called for each solution step AFTER all the results have been written

◆ Flush()

template<class TGaussPointContainer = GidGaussPointsContainer, class TMeshContainer = GidMeshContainer>
void Kratos::GidIO< TGaussPointContainer, TMeshContainer >::Flush ( )
inline

TODO: check whether this is still necessary!

◆ Info()

template<class TGaussPointContainer = GidGaussPointsContainer, class TMeshContainer = GidMeshContainer>
std::string Kratos::GidIO< TGaussPointContainer, TMeshContainer >::Info ( ) const
inlineoverridevirtual

Turn back information as a string.

Reimplemented from Kratos::IO.

Reimplemented in Kratos::GidEigenIO.

◆ InitializeMesh()

template<class TGaussPointContainer = GidGaussPointsContainer, class TMeshContainer = GidMeshContainer>
void Kratos::GidIO< TGaussPointContainer, TMeshContainer >::InitializeMesh ( const double  name)
inline

mesh writing functions

opens a new mesh group

◆ InitializeResultFile()

template<class TGaussPointContainer = GidGaussPointsContainer, class TMeshContainer = GidMeshContainer>
void Kratos::GidIO< TGaussPointContainer, TMeshContainer >::InitializeResultFile ( std::string const &  rResultFileName)
inline

sets up the file names and opens the result file in case there is ASCII mode and only one file written

◆ InitializeResults()

template<class TGaussPointContainer = GidGaussPointsContainer, class TMeshContainer = GidMeshContainer>
virtual void Kratos::GidIO< TGaussPointContainer, TMeshContainer >::InitializeResults ( const double  name,
const MeshType rThisMesh 
)
inlinevirtual

result functions

This has to be called for each solution step BEFORE any results (on nodes and on gauss points) is written

Parameters
SolutionTagthe current solution step (i.e. time)
conditions_flagstates whether results should also be written on conditions

◆ KRATOS_CLASS_POINTER_DEFINITION()

template<class TGaussPointContainer = GidGaussPointsContainer, class TMeshContainer = GidMeshContainer>
Kratos::GidIO< TGaussPointContainer, TMeshContainer >::KRATOS_CLASS_POINTER_DEFINITION ( GidIO< TGaussPointContainer, TMeshContainer >  )

Pointer definition of GidIO.

◆ PrintData()

template<class TGaussPointContainer = GidGaussPointsContainer, class TMeshContainer = GidMeshContainer>
void Kratos::GidIO< TGaussPointContainer, TMeshContainer >::PrintData ( std::ostream &  rOStream) const
inlineoverridevirtual

Print object's data.

Reimplemented from Kratos::IO.

Reimplemented in Kratos::GidEigenIO.

◆ PrintFlagsOnGaussPoints()

template<class TGaussPointContainer = GidGaussPointsContainer, class TMeshContainer = GidMeshContainer>
void Kratos::GidIO< TGaussPointContainer, TMeshContainer >::PrintFlagsOnGaussPoints ( const Kratos::Flags rFlag,
const std::string &  rFlagName,
const ModelPart rModelPart,
const double  SolutionTag 
)
inline

functions for printing results on gauss points

Writes elemental and conditional flags

Parameters
rFlagthe flag
rFlagNamethe given flag name
rModelPartthe current model part

◆ PrintInfo()

template<class TGaussPointContainer = GidGaussPointsContainer, class TMeshContainer = GidMeshContainer>
void Kratos::GidIO< TGaussPointContainer, TMeshContainer >::PrintInfo ( std::ostream &  rOStream) const
inlineoverridevirtual

Print information about this object.

Reimplemented from Kratos::IO.

Reimplemented in Kratos::GidEigenIO.

◆ PrintOnGaussPoints() [1/6]

template<class TGaussPointContainer = GidGaussPointsContainer, class TMeshContainer = GidMeshContainer>
virtual void Kratos::GidIO< TGaussPointContainer, TMeshContainer >::PrintOnGaussPoints ( const Variable< array_1d< double, 3 > > &  rVariable,
const ModelPart rModelPart,
const double  SolutionTag,
const int  ValueIndex = 0 
)
inlinevirtual

Prints variables of type double on gauss points of the complete mesh

Parameters
rVariablethe given variable name
rModelPartthe current model part

◆ PrintOnGaussPoints() [2/6]

template<class TGaussPointContainer = GidGaussPointsContainer, class TMeshContainer = GidMeshContainer>
virtual void Kratos::GidIO< TGaussPointContainer, TMeshContainer >::PrintOnGaussPoints ( const Variable< bool > &  rVariable,
const ModelPart rModelPart,
const double  SolutionTag,
const int  ValueIndex = 0 
)
inlinevirtual

Prints variables of type int on gauss points of the complete mesh

Parameters
rVariablethe given variable name
rModelPartthe current model part

◆ PrintOnGaussPoints() [3/6]

template<class TGaussPointContainer = GidGaussPointsContainer, class TMeshContainer = GidMeshContainer>
virtual void Kratos::GidIO< TGaussPointContainer, TMeshContainer >::PrintOnGaussPoints ( const Variable< double > &  rVariable,
const ModelPart rModelPart,
const double  SolutionTag,
const int  ValueIndex = 0 
)
inlinevirtual

Prints variables of type double on gauss points of the complete mesh

Parameters
rVariablethe given variable name
rModelPartthe current model part

◆ PrintOnGaussPoints() [4/6]

template<class TGaussPointContainer = GidGaussPointsContainer, class TMeshContainer = GidMeshContainer>
virtual void Kratos::GidIO< TGaussPointContainer, TMeshContainer >::PrintOnGaussPoints ( const Variable< int > &  rVariable,
const ModelPart rModelPart,
const double  SolutionTag,
const int  ValueIndex = 0 
)
inlinevirtual

Prints variables of type int on gauss points of the complete mesh

Parameters
rVariablethe given variable name
rModelPartthe current model part

◆ PrintOnGaussPoints() [5/6]

template<class TGaussPointContainer = GidGaussPointsContainer, class TMeshContainer = GidMeshContainer>
virtual void Kratos::GidIO< TGaussPointContainer, TMeshContainer >::PrintOnGaussPoints ( const Variable< Matrix > &  rVariable,
const ModelPart rModelPart,
const double  SolutionTag,
const int  ValueIndex = 0 
)
inlinevirtual

Prints variables of type double on gauss points of the complete mesh

Parameters
rVariablethe given variable name
rModelPartthe current model part

◆ PrintOnGaussPoints() [6/6]

template<class TGaussPointContainer = GidGaussPointsContainer, class TMeshContainer = GidMeshContainer>
virtual void Kratos::GidIO< TGaussPointContainer, TMeshContainer >::PrintOnGaussPoints ( const Variable< Vector > &  rVariable,
const ModelPart rModelPart,
const double  SolutionTag,
const int  ValueIndex = 0 
)
inlinevirtual

Prints variables of type double on gauss points of the complete mesh

Parameters
rVariablethe given variable name
rModelPartthe current model part

◆ SetUpGaussPointContainers()

template<class TGaussPointContainer = GidGaussPointsContainer, class TMeshContainer = GidMeshContainer>
virtual void Kratos::GidIO< TGaussPointContainer, TMeshContainer >::SetUpGaussPointContainers ( )
inlinevirtual

Creates the gauss point containers for all different element types.

Note
The containers are not filled yet in here!

◆ SetUpMeshContainers()

template<class TGaussPointContainer = GidGaussPointsContainer, class TMeshContainer = GidMeshContainer>
void Kratos::GidIO< TGaussPointContainer, TMeshContainer >::SetUpMeshContainers ( )
inline

Creates the mesh containers for all different element types.

Note
The containers are not filled yet in here!

◆ WriteCircleMesh()

template<class TGaussPointContainer = GidGaussPointsContainer, class TMeshContainer = GidMeshContainer>
void Kratos::GidIO< TGaussPointContainer, TMeshContainer >::WriteCircleMesh ( const MeshType rThisMesh)
inline

◆ WriteClusterMesh()

template<class TGaussPointContainer = GidGaussPointsContainer, class TMeshContainer = GidMeshContainer>
void Kratos::GidIO< TGaussPointContainer, TMeshContainer >::WriteClusterMesh ( const MeshType rThisMesh)
inline

◆ WriteLocalAxesOnNodes()

template<class TGaussPointContainer = GidGaussPointsContainer, class TMeshContainer = GidMeshContainer>
void Kratos::GidIO< TGaussPointContainer, TMeshContainer >::WriteLocalAxesOnNodes ( Variable< array_1d< double, 3 > > const &  rVariable,
const NodesContainerType rNodes,
const double  SolutionTag,
const std::size_t  SolutionStepNumber 
)
inline

◆ WriteLocalAxesOnNodesNonHistorical()

template<class TGaussPointContainer = GidGaussPointsContainer, class TMeshContainer = GidMeshContainer>
void Kratos::GidIO< TGaussPointContainer, TMeshContainer >::WriteLocalAxesOnNodesNonHistorical ( Variable< array_1d< double, 3 > > const &  rVariable,
const NodesContainerType rNodes,
const double  SolutionTag 
)
inline

◆ WriteMesh()

template<class TGaussPointContainer = GidGaussPointsContainer, class TMeshContainer = GidMeshContainer>
void Kratos::GidIO< TGaussPointContainer, TMeshContainer >::WriteMesh ( MeshType rThisMesh)
inlineoverridevirtual

This is a multi-purpose function that writes arbitrary meshes of elements and conditions in either deformed or undeformed state

Parameters
rThisMeshthe current mesh to be written
deformed_flagstates whether the mesh should be written in deformed configuration
conditions_flagstates whether conditions should also be written

Reimplemented from Kratos::IO.

◆ WriteNodalFlags()

template<class TGaussPointContainer = GidGaussPointsContainer, class TMeshContainer = GidMeshContainer>
void Kratos::GidIO< TGaussPointContainer, TMeshContainer >::WriteNodalFlags ( const Kratos::Flags rFlag,
const std::string &  rFlagName,
const NodesContainerType rNodes,
const double  SolutionTag 
)
inline

Writes nodal flags

◆ WriteNodalResults() [1/6]

template<class TGaussPointContainer = GidGaussPointsContainer, class TMeshContainer = GidMeshContainer>
void Kratos::GidIO< TGaussPointContainer, TMeshContainer >::WriteNodalResults ( Variable< array_1d< double, 3 > > const &  rVariable,
const NodesContainerType rNodes,
const double  SolutionTag,
const std::size_t  SolutionStepNumber 
)
inline

writes nodal results for variables of type array_1d<double, 3> (e.g. DISPLACEMENT)

◆ WriteNodalResults() [2/6]

template<class TGaussPointContainer = GidGaussPointsContainer, class TMeshContainer = GidMeshContainer>
void Kratos::GidIO< TGaussPointContainer, TMeshContainer >::WriteNodalResults ( Variable< bool > const &  rVariable,
const NodesContainerType rNodes,
const double  SolutionTag,
const std::size_t  SolutionStepNumber 
)
inline

functions for writing nodal results

writes nodal results for variables of type bool

◆ WriteNodalResults() [3/6]

template<class TGaussPointContainer = GidGaussPointsContainer, class TMeshContainer = GidMeshContainer>
void Kratos::GidIO< TGaussPointContainer, TMeshContainer >::WriteNodalResults ( Variable< double > const &  rVariable,
const NodesContainerType rNodes,
const double  SolutionTag,
const std::size_t  SolutionStepNumber 
)
inline

functions for writing nodal results

writes nodal results for variables of type double

◆ WriteNodalResults() [4/6]

template<class TGaussPointContainer = GidGaussPointsContainer, class TMeshContainer = GidMeshContainer>
void Kratos::GidIO< TGaussPointContainer, TMeshContainer >::WriteNodalResults ( Variable< int > const &  rVariable,
const NodesContainerType rNodes,
const double  SolutionTag,
const std::size_t  SolutionStepNumber 
)
inline

writes nodal results for variables of type int

◆ WriteNodalResults() [5/6]

template<class TGaussPointContainer = GidGaussPointsContainer, class TMeshContainer = GidMeshContainer>
void Kratos::GidIO< TGaussPointContainer, TMeshContainer >::WriteNodalResults ( Variable< Matrix > const &  rVariable,
const NodesContainerType rNodes,
const double  SolutionTag,
const std::size_t  SolutionStepNumber 
)
inline

writes nodal results for variables of type Matrix

◆ WriteNodalResults() [6/6]

template<class TGaussPointContainer = GidGaussPointsContainer, class TMeshContainer = GidMeshContainer>
void Kratos::GidIO< TGaussPointContainer, TMeshContainer >::WriteNodalResults ( Variable< Vector > const &  rVariable,
const NodesContainerType rNodes,
const double  SolutionTag,
const std::size_t  SolutionStepNumber 
)
inline

writes nodal results for variables of type Vector (note that only vectors with 3 components can be printed)

◆ WriteNodalResultsNonHistorical() [1/6]

template<class TGaussPointContainer = GidGaussPointsContainer, class TMeshContainer = GidMeshContainer>
void Kratos::GidIO< TGaussPointContainer, TMeshContainer >::WriteNodalResultsNonHistorical ( Variable< array_1d< double, 3 > > const &  rVariable,
const NodesContainerType rNodes,
const double  SolutionTag 
)
inline

writes nodal results for variables of type array_1d<double, 3> (e.g. DISPLACEMENT)

◆ WriteNodalResultsNonHistorical() [2/6]

template<class TGaussPointContainer = GidGaussPointsContainer, class TMeshContainer = GidMeshContainer>
void Kratos::GidIO< TGaussPointContainer, TMeshContainer >::WriteNodalResultsNonHistorical ( Variable< bool > const &  rVariable,
const NodesContainerType rNodes,
const double  SolutionTag 
)
inline

writes nodal results for variables of type bool

◆ WriteNodalResultsNonHistorical() [3/6]

template<class TGaussPointContainer = GidGaussPointsContainer, class TMeshContainer = GidMeshContainer>
void Kratos::GidIO< TGaussPointContainer, TMeshContainer >::WriteNodalResultsNonHistorical ( Variable< double > const &  rVariable,
const NodesContainerType rNodes,
const double  SolutionTag 
)
inline

functions for writing nodal results

writes nodal results for variables of type double

◆ WriteNodalResultsNonHistorical() [4/6]

template<class TGaussPointContainer = GidGaussPointsContainer, class TMeshContainer = GidMeshContainer>
void Kratos::GidIO< TGaussPointContainer, TMeshContainer >::WriteNodalResultsNonHistorical ( Variable< int > const &  rVariable,
const NodesContainerType rNodes,
const double  SolutionTag 
)
inline

writes nodal results for variables of type int

◆ WriteNodalResultsNonHistorical() [5/6]

template<class TGaussPointContainer = GidGaussPointsContainer, class TMeshContainer = GidMeshContainer>
void Kratos::GidIO< TGaussPointContainer, TMeshContainer >::WriteNodalResultsNonHistorical ( Variable< Matrix > const &  rVariable,
const NodesContainerType rNodes,
const double  SolutionTag 
)
inline

writes nodal results for variables of type Matrix

◆ WriteNodalResultsNonHistorical() [6/6]

template<class TGaussPointContainer = GidGaussPointsContainer, class TMeshContainer = GidMeshContainer>
void Kratos::GidIO< TGaussPointContainer, TMeshContainer >::WriteNodalResultsNonHistorical ( Variable< Vector > const &  rVariable,
const NodesContainerType rNodes,
const double  SolutionTag 
)
inline

writes nodal results for variables of type Vector (note that only vectors with 3 components can be printed)

◆ WriteNodeMesh()

template<class TGaussPointContainer = GidGaussPointsContainer, class TMeshContainer = GidMeshContainer>
void Kratos::GidIO< TGaussPointContainer, TMeshContainer >::WriteNodeMesh ( MeshType rThisMesh)
inlineoverridevirtual

Writes a node mesh.

Parameters
rThisMeshthe given mesh to be written to the output file
solution_stepthe current solution step
deformed_flagindicates whether the mesh shall be written in deformed or undeformed state
Modeeither GiD_PostAscii (default) or GiD_PostBinary

Reimplemented from Kratos::IO.

◆ WriteSphereMesh()

template<class TGaussPointContainer = GidGaussPointsContainer, class TMeshContainer = GidMeshContainer>
void Kratos::GidIO< TGaussPointContainer, TMeshContainer >::WriteSphereMesh ( const MeshType rThisMesh)
inline

Member Data Documentation

◆ mGidGaussPointContainers

template<class TGaussPointContainer = GidGaussPointsContainer, class TMeshContainer = GidMeshContainer>
std::vector<TGaussPointContainer> Kratos::GidIO< TGaussPointContainer, TMeshContainer >::mGidGaussPointContainers
protected

◆ mGidMeshContainers

template<class TGaussPointContainer = GidGaussPointsContainer, class TMeshContainer = GidMeshContainer>
std::vector<TMeshContainer> Kratos::GidIO< TGaussPointContainer, TMeshContainer >::mGidMeshContainers
protected

member variables

◆ mMeshFile

template<class TGaussPointContainer = GidGaussPointsContainer, class TMeshContainer = GidMeshContainer>
GiD_FILE Kratos::GidIO< TGaussPointContainer, TMeshContainer >::mMeshFile
protected

◆ mMeshFileName

template<class TGaussPointContainer = GidGaussPointsContainer, class TMeshContainer = GidMeshContainer>
std::string Kratos::GidIO< TGaussPointContainer, TMeshContainer >::mMeshFileName
protected

◆ mMeshFileOpen

template<class TGaussPointContainer = GidGaussPointsContainer, class TMeshContainer = GidMeshContainer>
bool Kratos::GidIO< TGaussPointContainer, TMeshContainer >::mMeshFileOpen
protected

◆ mMode

template<class TGaussPointContainer = GidGaussPointsContainer, class TMeshContainer = GidMeshContainer>
GiD_PostMode Kratos::GidIO< TGaussPointContainer, TMeshContainer >::mMode
protected

◆ mResultFile

template<class TGaussPointContainer = GidGaussPointsContainer, class TMeshContainer = GidMeshContainer>
GiD_FILE Kratos::GidIO< TGaussPointContainer, TMeshContainer >::mResultFile
protected

◆ mResultFileName

template<class TGaussPointContainer = GidGaussPointsContainer, class TMeshContainer = GidMeshContainer>
std::string Kratos::GidIO< TGaussPointContainer, TMeshContainer >::mResultFileName
protected

File names

◆ mResultFileOpen

template<class TGaussPointContainer = GidGaussPointsContainer, class TMeshContainer = GidMeshContainer>
bool Kratos::GidIO< TGaussPointContainer, TMeshContainer >::mResultFileOpen
protected

◆ mUseMultiFile

template<class TGaussPointContainer = GidGaussPointsContainer, class TMeshContainer = GidMeshContainer>
MultiFileFlag Kratos::GidIO< TGaussPointContainer, TMeshContainer >::mUseMultiFile
protected

◆ mWriteConditions

template<class TGaussPointContainer = GidGaussPointsContainer, class TMeshContainer = GidMeshContainer>
WriteConditionsFlag Kratos::GidIO< TGaussPointContainer, TMeshContainer >::mWriteConditions
protected

◆ mWriteDeformed

template<class TGaussPointContainer = GidGaussPointsContainer, class TMeshContainer = GidMeshContainer>
WriteDeformedMeshFlag Kratos::GidIO< TGaussPointContainer, TMeshContainer >::mWriteDeformed
protected

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