7#ifndef __CATALYST_EXODUS_MESH_H
8#define __CATALYST_EXODUS_MESH_H
11#include "vtkPartitionedDataSetCollection.h"
17class vtkUnstructuredGrid;
34 std::vector<std::string> &error_and_warning_messages);
55 const std::string &elem_type,
int nodes_per_elem,
int num_elem,
56 const int64_t *global_elem_ids,
int *connectivity);
59 const std::string &elem_type,
int nodes_per_elem,
int num_elem,
60 const int64_t *global_elem_ids, int64_t *connectivity);
96 std::map<int, std::map<int, int>>
ebmap;
109 const std::string &elem_type,
int nodes_per_elem,
int num_elem,
110 vtkVariant &v,
const int64_t *global_elem_ids,
116 vtkUnstructuredGrid *ug, vtkVariant &v,
const void *data);
121 vtkUnstructuredGrid *ug,
int element_block_id,
122 std::map<
int, std::map<int, int>> &point_map, vtkVariant &v,
126 int elem_block_id, vtkVariant &v,
const void *data);
128 vtkUnstructuredGrid *ug, vtkVariant &v,
const void *data);
136 vtkNew<vtkPartitionedDataSetCollection>
vpdc;
Definition CatalystManager.h:27
Definition CatalystExodusMeshBase.h:22
std::vector< std::pair< int, std::string > > ElementBlockIdNameList
Definition CatalystExodusMeshBase.h:80
Definition CatalystExodusMesh.h:24
void CreateGlobalVariableVariant(const std::string &variable_name, int num_comps, vtkVariant &v, const void *data)
Iovs::CatalystManager * catManager
Definition CatalystExodusMesh.h:137
CatalystExodusMesh & operator=(const CatalystExodusMesh &)=delete
void CreateNodalVariableInternal(const std::string &variable_name, int num_comps, vtkUnstructuredGrid *ug, int element_block_id, std::map< int, std::map< int, int > > &point_map, vtkVariant &v, const void *data)
std::vector< int > global_point_id_to_global_elem_id
Definition CatalystExodusMesh.h:99
vtkPoints * global_points
Definition CatalystExodusMesh.h:103
CatalystExodusMesh(Iovs::CatalystManager *cm, CatalystPipelineInfo &catalystPipelineInfo)
void CreateGlobalVariable(const std::string &variable_name, int num_comps, const double *data)
void InitializeElementBlocks(const ElementBlockIdNameList &elemBlockNameIdList)
void CreateNodalVariableVariant(const std::string &variable_name, int num_comps, vtkVariant &v, const void *data)
const std::string ASSEMBLY_ROOT_NAME
Definition CatalystExodusMesh.h:142
void CreateElementVariable(const std::string &variable_name, int num_comps, int elem_block_id, const int *data)
void PerformCoProcessing(std::vector< int > &error_and_warning_codes, std::vector< std::string > &error_and_warning_messages)
void CreateGlobalVariable(const std::string &variable_name, int num_comps, const int *data)
std::map< int, std::map< int, int > > ebmap_reverse
Definition CatalystExodusMesh.h:97
CatalystPipelineInfo catalystPipelineInfo
Definition CatalystExodusMesh.h:140
double GetArrayValue(vtkVariant &v, const void *data, int index)
vtkUnstructuredGrid * getUnstructuredGrid(int blockId)
void CreateElementBlock(const char *elem_block_name, int elem_block_id, const std::string &elem_type, int nodes_per_elem, int num_elem, const int64_t *global_elem_ids, int64_t *connectivity)
void SetTimeData(double currentTime, int timeStep)
bool ApplyDisplacements
Definition CatalystExodusMesh.h:139
bool UnderscoreVectors
Definition CatalystExodusMesh.h:138
void CreateElementBlockInternal(const char *elem_block_name, int elem_block_id, const std::string &elem_type, int nodes_per_elem, int num_elem, vtkVariant &v, const int64_t *global_elem_ids, void *connectivity)
void SetUnderscoreVectors(bool status)
void logMemoryUsageAndTakeTimerReading()
CatalystExodusMesh(const CatalystExodusMesh &)=delete
bool ApplyDisplacementsON()
bool writeCatalystMesh
Definition CatalystExodusMesh.h:105
int num_global_points
Definition CatalystExodusMesh.h:104
void CreateGlobalVariableInternal(const std::string &variable_name, int num_comps, vtkUnstructuredGrid *ug, vtkVariant &v, const void *data)
void CreateNodalVariable(const std::string &variable_name, int num_comps, const int64_t *data)
void CreateElementVariable(const std::string &variable_name, int num_comps, int elem_block_id, const int64_t *data)
const std::string ASSEMBLY_LABEL
Definition CatalystExodusMesh.h:141
void InitializeGlobalPoints(int num_points, int dimension, const double *data)
void CreateElementVariable(const std::string &variable_name, int num_comps, int elem_block_id, const double *data)
std::map< int, std::map< int, int > > ebmap
Definition CatalystExodusMesh.h:96
const int PDS_UNSTRUCTURED_GRID_INDEX
Definition CatalystExodusMesh.h:144
void CreateElementVariableInternal(const std::string &variable_name, int num_comps, vtkUnstructuredGrid *ug, vtkVariant &v, const void *data)
std::map< int, std::map< int, int > > global_elem_id_map
Definition CatalystExodusMesh.h:98
const std::string ASSEMBLY_ELEMENT_BLOCKS
Definition CatalystExodusMesh.h:143
void CreateElementVariableVariant(const std::string &variable_name, int num_comps, int elem_block_id, vtkVariant &v, const void *data)
void CreateNodalVariable(const std::string &variable_name, int num_comps, const double *data)
std::string catalystMeshFilePrefix
Definition CatalystExodusMesh.h:106
vtkPartitionedDataSetCollection * getPartitionedDataSetCollection()
vtkNew< vtkPartitionedDataSetCollection > vpdc
Definition CatalystExodusMesh.h:136
void ReleaseMemoryInternal(vtkUnstructuredGrid *ug)
int getElementBlocksAssemblyNode()
void CreateNodalVariable(const std::string &variable_name, int num_comps, const int *data)
void ReleaseGlobalPoints()
bool UnderscoreVectorsON()
std::map< int, unsigned int > ebidmap
Definition CatalystExodusMesh.h:100
void CreateGlobalVariable(const std::string &variable_name, int num_comps, const int64_t *data)
void SetApplyDisplacements(bool status)
void CreateElementBlock(const char *elem_block_name, int elem_block_id, const std::string &elem_type, int nodes_per_elem, int num_elem, const int64_t *global_elem_ids, int *connectivity)
A namespace for the visualization database format.
Definition CatalystExodusMesh.h:21
Definition CatalystManager.h:53