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 Types | Public Member Functions | List of all members
Kratos::PfemFluidGidIO< TGaussPointContainer, TMeshContainer > Class Template Reference

#include <pfem_fluid_gid_io.h>

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

Public Types

typedef GidIO< TGaussPointContainer, TMeshContainer > BaseType
 typedefs More...
 
- Public Types inherited from Kratos::GidIO< GidGaussPointsContainer, GidMeshContainer >
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...
 
- 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
 

Public Member Functions

 KRATOS_CLASS_POINTER_DEFINITION (PfemFluidGidIO)
 pointer definition of PfemFluidGidIO More...
 
 PfemFluidGidIO (const std::string &rDatafilename, GiD_PostMode Mode, MultiFileFlag use_multiple_files_flag, WriteDeformedMeshFlag write_deformed_flag, WriteConditionsFlag write_conditions_flag)
 Flags for mesh writing. More...
 
 ~PfemFluidGidIO () override
 Destructor. More...
 
void WriteNodeMesh (MeshType &rThisMesh) override
 This method writes the node mesh. More...
 
- Public Member Functions inherited from Kratos::GidIO< GidGaussPointsContainer, GidMeshContainer >
 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...
 
 KRATOS_CLASS_POINTER_DEFINITION (GidIO)
 Pointer definition of GidIO. More...
 
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)
 
- 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)
 

Additional Inherited Members

- Static Public Member Functions inherited from Kratos::GidIOBase
static GidIOBaseGetInstance ()
 
- Protected Member Functions inherited from Kratos::GidIOBase
 GidIOBase ()
 
- Protected Attributes inherited from Kratos::GidIO< GidGaussPointsContainer, GidMeshContainer >
std::string mResultFileName
 
std::string mMeshFileName
 
GiD_FILE mMeshFile
 
GiD_FILE mResultFile
 
WriteDeformedMeshFlag mWriteDeformed
 
WriteConditionsFlag mWriteConditions
 
MultiFileFlag mUseMultiFile
 
GiD_PostMode mMode
 
std::vector< GidMeshContainermGidMeshContainers
 
std::vector< GidGaussPointsContainermGidGaussPointContainers
 
bool mMeshFileOpen
 
bool mResultFileOpen
 
- Protected Attributes inherited from Kratos::GidIOBase
int data
 

Member Typedef Documentation

◆ BaseType

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

typedefs

Constructor & Destructor Documentation

◆ PfemFluidGidIO()

template<class TGaussPointContainer = GidGaussPointsContainer, class TMeshContainer = GidMeshContainer>
Kratos::PfemFluidGidIO< TGaussPointContainer, TMeshContainer >::PfemFluidGidIO ( const std::string &  rDatafilename,
GiD_PostMode  Mode,
MultiFileFlag  use_multiple_files_flag,
WriteDeformedMeshFlag  write_deformed_flag,
WriteConditionsFlag  write_conditions_flag 
)
inline

Flags for mesh writing.

Constructor single stream IO constructor

◆ ~PfemFluidGidIO()

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

Destructor.

Member Function Documentation

◆ KRATOS_CLASS_POINTER_DEFINITION()

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

pointer definition of PfemFluidGidIO

◆ WriteNodeMesh()

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

This method writes the node mesh.

Parameters
rThisMeshThe mesh to be written

Reimplemented from Kratos::IO.


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