|
| KRATOS_CLASS_POINTER_DEFINITION (VtkOutput) |
| Pointer definition of VtkOutput. More...
|
|
std::string | Info () const override |
| Turn back information as a string. More...
|
|
void | PrintInfo (std::ostream &rOStream) const override |
| Prints information about the class. More...
|
|
void | PrintData (std::ostream &rOStream) const override |
| Print object's data. More...
|
|
|
| VtkOutput (ModelPart &rModelPart, Parameters ThisParameters=Parameters(R"({})")) |
| Constructor by passing a ModelPart and Kratos-Parameters. More...
|
|
virtual | ~VtkOutput ()=default |
| Destructor. More...
|
|
| 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 (MeshType &rThisMesh) |
| This method writes 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 (MeshType &rThisMesh) |
| This method writes the node mesh. 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) |
|
|
The entities to be written
|
void | PrintOutput (const std::string &rOutputFilename="") |
| Prints mrModelPart in VTK format together with the results. More...
|
|
static Parameters | GetDefaultParameters () |
| This method provides the defaults parameters to avoid conflicts between the different constructors. More...
|
|
EntityType | GetEntityType (const ModelPart &rModelPart) const |
| Helper to determine which entities to write. More...
|
|
void | PrepareGaussPointResults () |
| Interpolates the gauss point results on to the node using IntegrationValuesExtrapolationToNodesProcess. More...
|
|
void | WriteModelPartToFile (const ModelPart &rModelPart, const bool IsSubModelPart, const std::string &rOutputFilename) |
| Print the given rModelPart as VTK file together with the requested results. More...
|
|
std::string | GetOutputFileName (const ModelPart &rModelPart, const bool IsSubModelPart, const std::string &rOutputFilename) |
| Get the output file name based on the provided settings and the MPI rank. More...
|
|
void | Initialize (const ModelPart &rModelPart) |
| Initialize function for the class. More...
|
|
void | CreateMapFromKratosIdToVTKId (const ModelPart &rModelPart) |
| Create a map with kratos nodeId as key and VTK nodeId as value. This require for VTK that the node numbers are in sequence. More...
|
|
void | WriteHeaderToFile (const ModelPart &rModelPart, std::ofstream &rFileStream) const |
| Write the VTK header for the output of given rModelPart. More...
|
|
void | WriteMeshToFile (const ModelPart &rModelPart, std::ofstream &rFileStream) const |
| Write the mesh from rModelPart. Nodes, Elements or/and Conditions. More...
|
|
virtual void | WriteNodesToFile (const ModelPart &rModelPart, std::ofstream &rFileStream) const |
| Write the nodes in the rModelPart. More...
|
|
virtual void | WriteConditionsAndElementsToFile (const ModelPart &rModelPart, std::ofstream &rFileStream) const |
| Write the elements and conditions in rModelPart. IMPORTANT : Need to write them together because of the CELLS block in VTK format. More...
|
|
template<typename TContainerType > |
std::size_t | DetermineVtkCellListSize (const TContainerType &rContainer) const |
| Calculate the total number of cells which are in the provided rModelPart. = num_elements + num_conditions It is necessary to be known prior to output. More...
|
|
template<typename TContainerType > |
void | WriteConnectivity (const TContainerType &rContainer, std::ofstream &rFileStream) const |
| Write the element/condition WriteConnectivity provided the container they are in. More...
|
|
template<typename TContainerType > |
void | WriteCellType (const TContainerType &rContainer, std::ofstream &rFileStream) const |
| Write the element/condition cell types provided the container they are in. More...
|
|
bool | IsCompatibleVariable (const std::string &rVariableName) const |
| It checks if the variable is compatible with the VTK format. More...
|
|
virtual void | WriteNodalResultsToFile (const ModelPart &rModelPart, std::ofstream &rFileStream) |
| Write the results on the nodes. More...
|
|
void | WriteElementResultsToFile (const ModelPart &rModelPart, std::ofstream &rFileStream) |
| Write the results/flags on the elements of rModelPart. More...
|
|
void | WriteConditionResultsToFile (const ModelPart &rModelPart, std::ofstream &rFileStream) |
| Write the results/flags on the conditions of rModelPart. More...
|
|
void | WriteNodalContainerResults (const std::string &rVariableName, const ModelPart::NodesContainerType &rNodes, const bool IsHistoricalValue, std::ofstream &rFileStream) const |
| Write the results of rNodes. Synchronization is necessary because both local and ghost-node-values are printed in MPI and can overlap! More...
|
|
template<typename TContainerType > |
void | WriteGeometricalContainerResults (const std::string &rVariableName, const TContainerType &rContainer, std::ofstream &rFileStream) const |
| Write the variable results of rContainer (Elements or Conditions). More...
|
|
template<typename TContainerType > |
void | WriteGeometricalContainerIntegrationResults (const std::string &rVariableName, const TContainerType &rContainer, std::ofstream &rFileStream) const |
| Write the variable GP results of rContainer (Elements or Conditions). More...
|
|
template<class TVarType > |
void | WriteNodalScalarValues (const ModelPart::NodesContainerType &rNodes, const TVarType &rVariable, const bool IsHistoricalValue, std::ofstream &rFileStream) const |
| Writes scalar results of rNodes. Wraps the necessary synchronization-calls. More...
|
|
template<class TVarType > |
void | WriteNodalVectorValues (const ModelPart::NodesContainerType &rNodes, const TVarType &rVariable, const bool IsHistoricalValue, std::ofstream &rFileStream) const |
| Writes vector results of rNodes. Wraps the necessary synchronization-calls. More...
|
|
template<typename TContainerType , class TVarType > |
void | WriteScalarSolutionStepVariable (const TContainerType &rContainer, const TVarType &rVariable, std::ofstream &rFileStream) const |
| Write the scalar-historical variable results of rContainer. More...
|
|
template<typename TContainerType , class TVarType > |
void | WriteVectorSolutionStepVariable (const TContainerType &rContainer, const TVarType &rVariable, std::ofstream &rFileStream) const |
| Write the vector-historical variable results of rContainer. More...
|
|
template<typename TContainerType > |
void | WriteFlagContainerVariable (const TContainerType &rContainer, const Flags Flag, const std::string &rFlagName, std::ofstream &rFileStream) const |
| Write the flag results of rContainer. More...
|
|
template<typename TContainerType , class TVarType > |
void | WriteScalarContainerVariable (const TContainerType &rContainer, const TVarType &rVariable, std::ofstream &rFileStream) const |
| Write the scalar-nonhistorical variable results of rContainer. More...
|
|
template<typename TContainerType , class TVarType > |
void | WriteIntegrationScalarContainerVariable (const TContainerType &rContainer, const Variable< TVarType > &rVariable, std::ofstream &rFileStream) const |
| Write the scalar GP variable results of rContainer. More...
|
|
template<typename TContainerType , class TVarType > |
void | WriteVectorContainerVariable (const TContainerType &rContainer, const TVarType &rVariable, std::ofstream &rFileStream) const |
| Write the vector-nonhistorical variable results of rContainer. More...
|
|
template<typename TContainerType , class TVarType > |
void | WriteIntegrationVectorContainerVariable (const TContainerType &rContainer, const Variable< TVarType > &rVariable, std::ofstream &rFileStream) const |
| Write the vector-GP variable results of rContainer. More...
|
|
template<typename TData > |
void | WriteScalarDataToFile (const TData &rData, std::ofstream &rFileStream) const |
| Write the scalar value to the file provided, takes care of binary and ascii formats. More...
|
|
template<typename TData > |
void | WriteVectorDataToFile (const TData &rData, std::ofstream &rFileStream) const |
| Write the vector values to the file provided, takes care of binary and ascii formats. More...
|
|
void | ForceBigEndian (unsigned char *pBytes) const |
| Only used in the binary format output. This function forces the big endian format for the input binary stream. More...
|
|