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.
|
GidIO extended for writting Eigenvalue Results. More...
#include <gid_eigen_io.h>
Public Member Functions | |
Life Cycle | |
GidEigenIO (const std::string &rDatafilename, GiD_PostMode Mode, MultiFileFlag use_multiple_files_flag, WriteDeformedMeshFlag write_deformed_flag, WriteConditionsFlag write_conditions_flag) | |
Default constructor. More... | |
Operations | |
void | WriteEigenResults (ModelPart &rModelPart, const Variable< double > &rVariable, std::string Label, const SizeType NumberOfAnimationStep) |
void | WriteEigenResults (ModelPart &rModelPart, const Variable< array_1d< double, 3 >> &rVariable, std::string Label, const SizeType NumberOfAnimationStep) |
Input and output | |
std::string | Info () const override |
Turn back information as a string. More... | |
void | PrintInfo (std::ostream &rOStream) const override |
Print information about this object. More... | |
void | PrintData (std::ostream &rOStream) const override |
Print object's data. More... | |
Public Member Functions inherited from 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) | |
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 () |
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... | |
IO & | operator= (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 std::size_t | SizeType |
KRATOS_CLASS_POINTER_DEFINITION (GidEigenIO) | |
Pointer definition of GidEigenIO. More... | |
GidIO extended for writting Eigenvalue Results.
The main functionality of this class is to write the custom format where the result label is customizable, i.e. it can contain e.g. the Eigenvalue or -frequency of the solution
typedef std::size_t Kratos::GidEigenIO::SizeType |
|
inline |
Default constructor.
|
inlineoverridevirtual |
Turn back information as a string.
Reimplemented from Kratos::GidIO< TGaussPointContainer, TMeshContainer >.
Kratos::GidEigenIO::KRATOS_CLASS_POINTER_DEFINITION | ( | GidEigenIO | ) |
Pointer definition of GidEigenIO.
|
inlineoverridevirtual |
Print object's data.
Reimplemented from Kratos::GidIO< TGaussPointContainer, TMeshContainer >.
|
inlineoverridevirtual |
Print information about this object.
Reimplemented from Kratos::GidIO< TGaussPointContainer, TMeshContainer >.
|
inline |
Write the post-processed eigensolver-results for Variable of type "array_1d<double, 3>"" The label is can be e.g. the Eigenvalue or -frequency
|
inline |
Write the post-processed eigensolver-results for Variable of type "double" The label is can be e.g. the Eigenvalue or -frequency