VTK  9.1.0
Classes | Namespaces | Typedefs | Enumerations | Functions
vtkIOSSUtilities.h File Reference
#include "vtkDataArraySelection.h"
#include "vtkDoubleArray.h"
#include "vtkIOSSReader.h"
#include "vtkLogger.h"
#include "vtkObject.h"
#include "vtkSmartPointer.h"
#include "vtkTypeInt32Array.h"
#include "vtkTypeInt64Array.h"
#include "vtkTypeList.h"
#include <vtk_ioss.h>
#include <VTK_IOSS(Ioss_Region.h)>
#include <VTK_IOSS(Ioss_Transform.h)>
#include <VTK_IOSS(Ioss_StructuredBlock.h)>
#include <cassert>
#include <set>
Include dependency graph for vtkIOSSUtilities.h:

Go to the source code of this file.

Classes

class  vtkIOSSUtilities::Cache
 Cache. More...
 

Namespaces

namespace  vtkIOSSUtilities
 internal utilities for vtkIOSSReader
 

Typedefs

using vtkIOSSUtilities::EntityNameType = std::pair< vtkTypeUInt64, std::string >
 
using vtkIOSSUtilities::ArrayList = typename vtkTypeList::Unique< vtkTypeList::Create< vtkDoubleArray, vtkTypeInt32Array, vtkTypeInt64Array > >::Result
 List of possible ArrayTypes that are produced by vtkIOSSUtilities. More...
 

Enumerations

enum  vtkIOSSUtilities::DatabaseFormatType { vtkIOSSUtilities::UNKNOWN , vtkIOSSUtilities::EXODUS , vtkIOSSUtilities::CGNS , vtkIOSSUtilities::CATALYST }
 

Functions

std::set< double > vtkIOSSUtilities::GetTimeValues (const Ioss::Region *region)
 Reads time / timestep information from a region. More...
 
std::string vtkIOSSUtilities::GetSanitizedBlockName (const Ioss::Region *region, const std::string &name)
 This is primarily intended for CGNS. More...
 
template<typename EntityType >
void vtkIOSSUtilities::GetEntityAndFieldNames (const Ioss::Region *region, const std::vector< EntityType * > &entities, std::set< EntityNameType > &entity_names, std::set< std::string > &field_names)
 Populates entitySelection with available entity block (or set) names and populates fieldSelection with transient and attribute fields on the chosen entity block (or set). More...
 
Ioss::EntityType vtkIOSSUtilities::GetIOSSEntityType (vtkIOSSReader::EntityType vtk_type)
 For the given vtkIOSSReader::EntityType return the corresponding Ioss::EntityType. More...
 
vtkSmartPointer< vtkDataArrayvtkIOSSUtilities::CreateArray (const Ioss::Field &field)
 Create an array for the given field. More...
 
vtkSmartPointer< vtkDataArrayvtkIOSSUtilities::GetData (const Ioss::GroupingEntity *entity, const std::string &fieldname, Ioss::Transform *transform=nullptr, Cache *cache=nullptr, const std::string &cachekey=std::string())
 Returns a VTK array for a given field (fieldname) on the chosen block (or set) entity. More...
 
int vtkIOSSUtilities::GetCellType (const Ioss::ElementTopology *topology)
 Returns VTK celltype for a Ioss topology element. More...
 
vtkSmartPointer< vtkCellArrayvtkIOSSUtilities::GetConnectivity (Ioss::GroupingEntity *group_entity, int &vtk_topology_type, Cache *cache=nullptr)
 Read connectivity information from the group_entity. More...
 
vtkSmartPointer< vtkPointsvtkIOSSUtilities::GetMeshModelCoordinates (const Ioss::GroupingEntity *group_entity, Cache *cache=nullptr)
 Read points from the group_entity. More...
 
bool vtkIOSSUtilities::IsFieldTransient (Ioss::GroupingEntity *entity, const std::string &fieldname)
 Returns true if the field is transient. More...
 
std::string vtkIOSSUtilities::GetDisplacementFieldName (Ioss::GroupingEntity *nodeblock)
 Finds a displacement field name. More...
 
void vtkIOSSUtilities::InitializeEnvironmentForIOSS ()
 Must be called before using any Ioss library functions. More...
 
DatabaseFormatType vtkIOSSUtilities::DetectType (const std::string &dbaseName)
 Given a filename determines and returns the database type. More...
 
DatabaseFormatType vtkIOSSUtilities::GetFormat (const Ioss::GroupingEntity *entity)
 Given any GroupingEntity pointer, returns the format that the associated database is in. More...
 
std::vector< Ioss::StructuredBlock * > vtkIOSSUtilities::GetMatchingStructuredBlocks (Ioss::Region *region, const std::string &blockname)
 Returns collection of StructuredBlock's matching the selected blockname. More...