IOSS 2.0
Loading...
Searching...
No Matches
Iovs_exodus::CatalystExodusMesh Class Reference

#include <CatalystExodusMesh.h>

Inheritance diagram for Iovs_exodus::CatalystExodusMesh:
[legend]
Collaboration diagram for Iovs_exodus::CatalystExodusMesh:
[legend]

Public Member Functions

 CatalystExodusMesh (Iovs::CatalystManager *cm, CatalystPipelineInfo &catalystPipelineInfo)
 
 ~CatalystExodusMesh ()
 
void PerformCoProcessing (std::vector< int > &error_and_warning_codes, std::vector< std::string > &error_and_warning_messages)
 
void SetTimeData (double currentTime, int timeStep)
 
void logMemoryUsageAndTakeTimerReading ()
 
void ReleaseMemory ()
 
void Delete ()
 
void CreateGlobalVariable (const std::string &variable_name, int num_comps, const double *data)
 
void CreateGlobalVariable (const std::string &variable_name, int num_comps, const int *data)
 
void CreateGlobalVariable (const std::string &variable_name, int num_comps, const int64_t *data)
 
void InitializeGlobalPoints (int num_points, int dimension, const double *data)
 
void InitializeElementBlocks (const ElementBlockIdNameList &elemBlockNameIdList)
 
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)
 
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 CreateElementVariable (const std::string &variable_name, int num_comps, int elem_block_id, const double *data)
 
void CreateElementVariable (const std::string &variable_name, int num_comps, int elem_block_id, const int *data)
 
void CreateElementVariable (const std::string &variable_name, int num_comps, int elem_block_id, const int64_t *data)
 
void CreateNodalVariable (const std::string &variable_name, int num_comps, const double *data)
 
void CreateNodalVariable (const std::string &variable_name, int num_comps, const int *data)
 
void CreateNodalVariable (const std::string &variable_name, int num_comps, const int64_t *data)
 
bool UnderscoreVectorsON ()
 
void SetUnderscoreVectors (bool status)
 
bool ApplyDisplacementsON ()
 
void SetApplyDisplacements (bool status)
 
vtkPartitionedDataSetCollection * getPartitionedDataSetCollection ()
 
- Public Member Functions inherited from Iovs_exodus::CatalystExodusMeshBase
 CatalystExodusMeshBase ()
 
virtual ~CatalystExodusMeshBase ()
 

Private Types

using CatalystPipelineInfo = Iovs::CatalystManager::CatalystPipelineInfo
 

Private Member Functions

double GetArrayValue (vtkVariant &v, const void *data, int index)
 
void ReleaseGlobalPoints ()
 
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 CreateGlobalVariableVariant (const std::string &variable_name, int num_comps, vtkVariant &v, const void *data)
 
void CreateGlobalVariableInternal (const std::string &variable_name, int num_comps, vtkUnstructuredGrid *ug, vtkVariant &v, const void *data)
 
void CreateNodalVariableVariant (const std::string &variable_name, int num_comps, vtkVariant &v, const void *data)
 
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)
 
void CreateElementVariableVariant (const std::string &variable_name, int num_comps, int elem_block_id, vtkVariant &v, const void *data)
 
void CreateElementVariableInternal (const std::string &variable_name, int num_comps, vtkUnstructuredGrid *ug, vtkVariant &v, const void *data)
 
void ReleaseMemoryInternal (vtkUnstructuredGrid *ug)
 
 CatalystExodusMesh ()
 
 CatalystExodusMesh (const CatalystExodusMesh &)=delete
 
CatalystExodusMeshoperator= (const CatalystExodusMesh &)=delete
 
int getElementBlocksAssemblyNode ()
 
vtkUnstructuredGrid * getUnstructuredGrid (int blockId)
 

Private Attributes

std::map< int, std::map< int, int > > ebmap
 
std::map< int, std::map< int, int > > ebmap_reverse
 
std::map< int, std::map< int, int > > global_elem_id_map
 
std::vector< int > global_point_id_to_global_elem_id
 
std::map< int, unsigned int > ebidmap
 
vtkPoints * global_points
 
int num_global_points
 
bool writeCatalystMesh
 
std::string catalystMeshFilePrefix
 
vtkNew< vtkPartitionedDataSetCollection > vpdc
 
Iovs::CatalystManagercatManager = nullptr
 
bool UnderscoreVectors
 
bool ApplyDisplacements
 
CatalystPipelineInfo catalystPipelineInfo
 
const std::string ASSEMBLY_LABEL = "label"
 
const std::string ASSEMBLY_ROOT_NAME = "IOSS"
 
const std::string ASSEMBLY_ELEMENT_BLOCKS = "element_blocks"
 
const int PDS_UNSTRUCTURED_GRID_INDEX = 0
 

Additional Inherited Members

- Public Types inherited from Iovs_exodus::CatalystExodusMeshBase
using ElementBlockIdNameList = std::vector<std::pair<int, std::string>>
 

Member Typedef Documentation

◆ CatalystPipelineInfo

Constructor & Destructor Documentation

◆ CatalystExodusMesh() [1/3]

Iovs_exodus::CatalystExodusMesh::CatalystExodusMesh ( Iovs::CatalystManager * cm,
CatalystPipelineInfo & catalystPipelineInfo )

◆ ~CatalystExodusMesh()

Iovs_exodus::CatalystExodusMesh::~CatalystExodusMesh ( )

◆ CatalystExodusMesh() [2/3]

Iovs_exodus::CatalystExodusMesh::CatalystExodusMesh ( )
private

◆ CatalystExodusMesh() [3/3]

Iovs_exodus::CatalystExodusMesh::CatalystExodusMesh ( const CatalystExodusMesh & )
privatedelete

Member Function Documentation

◆ ApplyDisplacementsON()

bool Iovs_exodus::CatalystExodusMesh::ApplyDisplacementsON ( )

◆ CreateElementBlock() [1/2]

void Iovs_exodus::CatalystExodusMesh::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 )
virtual

◆ CreateElementBlock() [2/2]

void Iovs_exodus::CatalystExodusMesh::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 )
virtual

◆ CreateElementBlockInternal()

void Iovs_exodus::CatalystExodusMesh::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 )
private

◆ CreateElementVariable() [1/3]

void Iovs_exodus::CatalystExodusMesh::CreateElementVariable ( const std::string & variable_name,
int num_comps,
int elem_block_id,
const double * data )
virtual

◆ CreateElementVariable() [2/3]

void Iovs_exodus::CatalystExodusMesh::CreateElementVariable ( const std::string & variable_name,
int num_comps,
int elem_block_id,
const int * data )
virtual

◆ CreateElementVariable() [3/3]

void Iovs_exodus::CatalystExodusMesh::CreateElementVariable ( const std::string & variable_name,
int num_comps,
int elem_block_id,
const int64_t * data )
virtual

◆ CreateElementVariableInternal()

void Iovs_exodus::CatalystExodusMesh::CreateElementVariableInternal ( const std::string & variable_name,
int num_comps,
vtkUnstructuredGrid * ug,
vtkVariant & v,
const void * data )
private

◆ CreateElementVariableVariant()

void Iovs_exodus::CatalystExodusMesh::CreateElementVariableVariant ( const std::string & variable_name,
int num_comps,
int elem_block_id,
vtkVariant & v,
const void * data )
private

◆ CreateGlobalVariable() [1/3]

void Iovs_exodus::CatalystExodusMesh::CreateGlobalVariable ( const std::string & variable_name,
int num_comps,
const double * data )
virtual

◆ CreateGlobalVariable() [2/3]

void Iovs_exodus::CatalystExodusMesh::CreateGlobalVariable ( const std::string & variable_name,
int num_comps,
const int * data )
virtual

◆ CreateGlobalVariable() [3/3]

void Iovs_exodus::CatalystExodusMesh::CreateGlobalVariable ( const std::string & variable_name,
int num_comps,
const int64_t * data )
virtual

◆ CreateGlobalVariableInternal()

void Iovs_exodus::CatalystExodusMesh::CreateGlobalVariableInternal ( const std::string & variable_name,
int num_comps,
vtkUnstructuredGrid * ug,
vtkVariant & v,
const void * data )
private

◆ CreateGlobalVariableVariant()

void Iovs_exodus::CatalystExodusMesh::CreateGlobalVariableVariant ( const std::string & variable_name,
int num_comps,
vtkVariant & v,
const void * data )
private

◆ CreateNodalVariable() [1/3]

void Iovs_exodus::CatalystExodusMesh::CreateNodalVariable ( const std::string & variable_name,
int num_comps,
const double * data )
virtual

◆ CreateNodalVariable() [2/3]

void Iovs_exodus::CatalystExodusMesh::CreateNodalVariable ( const std::string & variable_name,
int num_comps,
const int * data )
virtual

◆ CreateNodalVariable() [3/3]

void Iovs_exodus::CatalystExodusMesh::CreateNodalVariable ( const std::string & variable_name,
int num_comps,
const int64_t * data )
virtual

◆ CreateNodalVariableInternal()

void Iovs_exodus::CatalystExodusMesh::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 )
private

◆ CreateNodalVariableVariant()

void Iovs_exodus::CatalystExodusMesh::CreateNodalVariableVariant ( const std::string & variable_name,
int num_comps,
vtkVariant & v,
const void * data )
private

◆ Delete()

void Iovs_exodus::CatalystExodusMesh::Delete ( )
virtual

◆ GetArrayValue()

double Iovs_exodus::CatalystExodusMesh::GetArrayValue ( vtkVariant & v,
const void * data,
int index )
private

◆ getElementBlocksAssemblyNode()

int Iovs_exodus::CatalystExodusMesh::getElementBlocksAssemblyNode ( )
private

◆ getPartitionedDataSetCollection()

vtkPartitionedDataSetCollection * Iovs_exodus::CatalystExodusMesh::getPartitionedDataSetCollection ( )

◆ getUnstructuredGrid()

vtkUnstructuredGrid * Iovs_exodus::CatalystExodusMesh::getUnstructuredGrid ( int blockId)
private

◆ InitializeElementBlocks()

void Iovs_exodus::CatalystExodusMesh::InitializeElementBlocks ( const ElementBlockIdNameList & elemBlockNameIdList)
virtual

◆ InitializeGlobalPoints()

void Iovs_exodus::CatalystExodusMesh::InitializeGlobalPoints ( int num_points,
int dimension,
const double * data )
virtual

◆ logMemoryUsageAndTakeTimerReading()

void Iovs_exodus::CatalystExodusMesh::logMemoryUsageAndTakeTimerReading ( )
virtual

◆ operator=()

CatalystExodusMesh & Iovs_exodus::CatalystExodusMesh::operator= ( const CatalystExodusMesh & )
privatedelete

◆ PerformCoProcessing()

void Iovs_exodus::CatalystExodusMesh::PerformCoProcessing ( std::vector< int > & error_and_warning_codes,
std::vector< std::string > & error_and_warning_messages )
virtual

◆ ReleaseGlobalPoints()

void Iovs_exodus::CatalystExodusMesh::ReleaseGlobalPoints ( )
private

◆ ReleaseMemory()

void Iovs_exodus::CatalystExodusMesh::ReleaseMemory ( )
virtual

◆ ReleaseMemoryInternal()

void Iovs_exodus::CatalystExodusMesh::ReleaseMemoryInternal ( vtkUnstructuredGrid * ug)
private

◆ SetApplyDisplacements()

void Iovs_exodus::CatalystExodusMesh::SetApplyDisplacements ( bool status)

◆ SetTimeData()

void Iovs_exodus::CatalystExodusMesh::SetTimeData ( double currentTime,
int timeStep )
virtual

◆ SetUnderscoreVectors()

void Iovs_exodus::CatalystExodusMesh::SetUnderscoreVectors ( bool status)

◆ UnderscoreVectorsON()

bool Iovs_exodus::CatalystExodusMesh::UnderscoreVectorsON ( )

Member Data Documentation

◆ ApplyDisplacements

bool Iovs_exodus::CatalystExodusMesh::ApplyDisplacements
private

◆ ASSEMBLY_ELEMENT_BLOCKS

const std::string Iovs_exodus::CatalystExodusMesh::ASSEMBLY_ELEMENT_BLOCKS = "element_blocks"
private

◆ ASSEMBLY_LABEL

const std::string Iovs_exodus::CatalystExodusMesh::ASSEMBLY_LABEL = "label"
private

◆ ASSEMBLY_ROOT_NAME

const std::string Iovs_exodus::CatalystExodusMesh::ASSEMBLY_ROOT_NAME = "IOSS"
private

◆ catalystMeshFilePrefix

std::string Iovs_exodus::CatalystExodusMesh::catalystMeshFilePrefix
private

◆ catalystPipelineInfo

CatalystPipelineInfo Iovs_exodus::CatalystExodusMesh::catalystPipelineInfo
private

◆ catManager

Iovs::CatalystManager* Iovs_exodus::CatalystExodusMesh::catManager = nullptr
private

◆ ebidmap

std::map<int, unsigned int> Iovs_exodus::CatalystExodusMesh::ebidmap
private

◆ ebmap

std::map<int, std::map<int, int> > Iovs_exodus::CatalystExodusMesh::ebmap
private

◆ ebmap_reverse

std::map<int, std::map<int, int> > Iovs_exodus::CatalystExodusMesh::ebmap_reverse
private

◆ global_elem_id_map

std::map<int, std::map<int, int> > Iovs_exodus::CatalystExodusMesh::global_elem_id_map
private

◆ global_point_id_to_global_elem_id

std::vector<int> Iovs_exodus::CatalystExodusMesh::global_point_id_to_global_elem_id
private

◆ global_points

vtkPoints* Iovs_exodus::CatalystExodusMesh::global_points
private

◆ num_global_points

int Iovs_exodus::CatalystExodusMesh::num_global_points
private

◆ PDS_UNSTRUCTURED_GRID_INDEX

const int Iovs_exodus::CatalystExodusMesh::PDS_UNSTRUCTURED_GRID_INDEX = 0
private

◆ UnderscoreVectors

bool Iovs_exodus::CatalystExodusMesh::UnderscoreVectors
private

◆ vpdc

vtkNew<vtkPartitionedDataSetCollection> Iovs_exodus::CatalystExodusMesh::vpdc
private

◆ writeCatalystMesh

bool Iovs_exodus::CatalystExodusMesh::writeCatalystMesh
private

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