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.
 

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.
 
std::string vtkIOSSUtilities::GetSanitizedBlockName (const Ioss::Region *region, const std::string &name)
 This is primarily intended for CGNS.
 
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).
 
Ioss::EntityType vtkIOSSUtilities::GetIOSSEntityType (vtkIOSSReader::EntityType vtk_type)
 For the given vtkIOSSReader::EntityType return the corresponding Ioss::EntityType.
 
vtkSmartPointer< vtkDataArrayvtkIOSSUtilities::CreateArray (const Ioss::Field &field)
 Create an array for the given field.
 
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.
 
int vtkIOSSUtilities::GetCellType (const Ioss::ElementTopology *topology)
 Returns VTK celltype for a Ioss topology element.
 
vtkSmartPointer< vtkCellArrayvtkIOSSUtilities::GetConnectivity (Ioss::GroupingEntity *group_entity, int &vtk_topology_type, Cache *cache=nullptr)
 Read connectivity information from the group_entity.
 
vtkSmartPointer< vtkPointsvtkIOSSUtilities::GetMeshModelCoordinates (const Ioss::GroupingEntity *group_entity, Cache *cache=nullptr)
 Read points from the group_entity.
 
bool vtkIOSSUtilities::IsFieldTransient (Ioss::GroupingEntity *entity, const std::string &fieldname)
 Returns true if the field is transient.
 
std::string vtkIOSSUtilities::GetDisplacementFieldName (Ioss::GroupingEntity *nodeblock)
 Finds a displacement field name.
 
void vtkIOSSUtilities::InitializeEnvironmentForIOSS ()
 Must be called before using any Ioss library functions.
 
DatabaseFormatType vtkIOSSUtilities::DetectType (const std::string &dbaseName)
 Given a filename determines and returns the database type.
 
DatabaseFormatType vtkIOSSUtilities::GetFormat (const Ioss::GroupingEntity *entity)
 Given any GroupingEntity pointer, returns the format that the associated database is in.
 
std::vector< Ioss::StructuredBlock * > vtkIOSSUtilities::GetMatchingStructuredBlocks (Ioss::Region *region, const std::string &blockname)
 Returns collection of StructuredBlock's matching the selected blockname.