VTK
9.4.20241117
|
This file defines functions used by vtkCGNSReader and vtkCGNSReaderInternal. More...
Namespaces | |
namespace | detail |
Classes | |
class | BaseInformation |
struct | CGNSVariable |
struct | CGNSVector |
class | FamilyInformation |
struct | Variable |
class | vtkCGNSArraySelection |
class | vtkCGNSCache |
class | vtkCGNSMetaData |
struct | VTKVariable |
class | ZoneBCInformation |
class | ZoneInformation |
Typedefs | |
typedef char | char_33[33] |
Functions | |
template<typename T > | |
int | readNodeData (int cgioNum, double nodeId, std::vector< T > &data) |
Read data of the specified type from the given node. | |
template<typename T > | |
int | readNodeDataAs (int cgioNum, double nodeId, std::vector< T > &data) |
template<> | |
int | readNodeData< char > (int cgioNum, double nodeId, std::vector< char > &data) |
int | readNodeStringData (int cgioNum, double nodeId, std::string &data) |
Read string data from the given node. | |
int | getNodeChildrenId (int cgioNum, double fatherId, std::vector< double > &childrenIds) |
Read IDs of all children for the node with the given ID. | |
int | readBaseIds (int cgioNum, double rootId, std::vector< double > &baseIds) |
Search for bases under the node with the given ID and read their IDs. | |
int | readBaseCoreInfo (int cgioNum, double baseId, CGNSRead::BaseInformation &baseInfo) |
Read name, cell and physical dimensions for the given CGNSBase_t node. | |
int | readBaseIteration (int cgioNum, double nodeId, CGNSRead::BaseInformation &baseInfo) |
Read timesteps information in the given BaseIterativeData_t node. | |
int | readZoneIterInfo (int cgioNum, double nodeId, CGNSRead::BaseInformation &baseInfo) |
Read which type of pointers are used for temporal data in the given ZoneIterativeData_t node. | |
int | readSolInfo (int cgioNum, double nodeId, CGNSRead::BaseInformation &baseInfo) |
Read data arrays information in the given FlowSolution_t node. | |
int | readBaseFamily (int cgioNum, double nodeId, CGNSRead::BaseInformation &baseInfo, const std::string &parentPath="") |
Read base family information in the given Family_t node. | |
int | readBaseReferenceState (int cgioNum, double nodeId, CGNSRead::BaseInformation &baseInfo) |
Read reference state information in the given ReferenceState_t node. | |
int | readZoneInfo (int cgioNum, double nodeId, CGNSRead::BaseInformation &baseInfo) |
Read general data array information in the given Zone_t node. | |
int | readZoneInfo (int cgioNum, double zoneId, CGNSRead::ZoneInformation &zoneInfo) |
Read family name and boundary conditions information in the given Zone_t node. | |
void | releaseIds (int cgioNum, const std::vector< double > &ids) |
Release all IDs in the vector. | |
bool | compareName (const char_33 nameOne, const char_33 nameTwo) |
void | removeTrailingWhiteSpaces (char_33 name) |
std::vector< CGNSVector >::iterator | getVectorFromName (std::vector< CGNSVector > &vectorList, const char_33 name) |
bool | isACGNSVariable (const std::vector< CGNSVariable > &varList, const char_33 name) |
void | fillVectorsFromVars (std::vector< CGNSRead::CGNSVariable > &vars, std::vector< CGNSRead::CGNSVector > &vectors, int physicalDim) |
int | setUpRind (int cgioNum, double rindId, int *rind) |
int | getFirstNodeId (int cgioNum, double parentId, const char *label, double *id, const char *name=nullptr) |
Find the first node with the given label . | |
int | get_section_connectivity (int cgioNum, double cgioSectionId, int dim, const cgsize_t *srcStart, const cgsize_t *srcEnd, const cgsize_t *srcStride, const cgsize_t *memStart, const cgsize_t *memEnd, const cgsize_t *memStride, const cgsize_t *memDim, vtkIdType *localElements) |
int | get_section_start_offset (int cgioNum, double cgioSectionId, int dim, const cgsize_t *srcStart, const cgsize_t *srcEnd, const cgsize_t *srcStride, const cgsize_t *memStart, const cgsize_t *memEnd, const cgsize_t *memStride, const cgsize_t *memDim, vtkIdType *localElementsIdx) |
int | get_section_parent_elements (int cgioNum, double cgioSectionId, int dim, const cgsize_t *srcStart, const cgsize_t *srcEnd, const cgsize_t *srcStride, const cgsize_t *memStart, const cgsize_t *memEnd, const cgsize_t *memStride, const cgsize_t *memDim, vtkIdType *localElementsIdx) |
int | GetVTKElemType (CGNS_ENUMT(ElementType_t) elemType, bool &higherOrderWarning, bool &cgnsOrderFlag) |
void | CGNS2VTKorder (vtkIdType size, const int *cells_types, vtkIdType *elements) |
void | ReorderMonoCellPointsCGNS2VTK (vtkIdType size, int cell_type, vtkIdType numPointsPerCell, vtkIdType *elements) |
template<typename T , typename Y > | |
int | get_XYZ_mesh (int cgioNum, const std::vector< double > &gridChildId, const std::size_t &nCoordsArray, int cellDim, vtkIdType nPts, const cgsize_t *srcStart, const cgsize_t *srcEnd, const cgsize_t *srcStride, const cgsize_t *memStart, const cgsize_t *memEnd, const cgsize_t *memStride, const cgsize_t *memDims, vtkPoints *points) |
bool | ReadBase (vtkCGNSReader *reader, const BaseInformation &baseInfo) |
Helpers to encapsulate all logic to read various nodes (zones, bc patches etc.). | |
bool | ReadGridForZone (vtkCGNSReader *reader, const BaseInformation &baseInfo, const ZoneInformation &zoneInfo) |
Helpers to encapsulate all logic to read various nodes (zones, bc patches etc.). | |
bool | ReadPatchesForBase (vtkCGNSReader *reader, const BaseInformation &) |
Helpers to encapsulate all logic to read various nodes (zones, bc patches etc.). | |
bool | ReadSurfacesForBase (vtkCGNSReader *reader, const BaseInformation &) |
Helpers to encapsulate all logic to read various nodes (zones, bc patches etc.). | |
bool | ReadPatch (vtkCGNSReader *reader, const BaseInformation &, const ZoneInformation &zoneInfo, const std::string &patchFamilyname) |
Helpers to encapsulate all logic to read various nodes (zones, bc patches etc.). | |
Variables | |
const std::map< CGNS_ENUMT(ElementType_t), int > | CellDimensions |
This file defines functions used by vtkCGNSReader and vtkCGNSReaderInternal.
These functions are provided to simplify CGNS file reading through the low level CGIO interface.
typedef char CGNSRead::char_33[33] |
Definition at line 102 of file vtkCGNSReaderInternal.h.
|
inline |
Read data of the specified type from the given node.
Definition at line 26 of file cgio_helpers.h.
|
inline |
Definition at line 65 of file cgio_helpers.h.
int CGNSRead::readNodeData< char > | ( | int | cgioNum, |
double | nodeId, | ||
std::vector< char > & | data | ||
) |
int CGNSRead::readNodeStringData | ( | int | cgioNum, |
double | nodeId, | ||
std::string & | data | ||
) |
Read string data from the given node.
int CGNSRead::getNodeChildrenId | ( | int | cgioNum, |
double | fatherId, | ||
std::vector< double > & | childrenIds | ||
) |
Read IDs of all children for the node with the given ID.
int CGNSRead::readBaseIds | ( | int | cgioNum, |
double | rootId, | ||
std::vector< double > & | baseIds | ||
) |
Search for bases under the node with the given ID and read their IDs.
int CGNSRead::readBaseCoreInfo | ( | int | cgioNum, |
double | baseId, | ||
CGNSRead::BaseInformation & | baseInfo | ||
) |
Read name, cell and physical dimensions for the given CGNSBase_t node.
int CGNSRead::readBaseIteration | ( | int | cgioNum, |
double | nodeId, | ||
CGNSRead::BaseInformation & | baseInfo | ||
) |
Read timesteps information in the given BaseIterativeData_t node.
int CGNSRead::readZoneIterInfo | ( | int | cgioNum, |
double | nodeId, | ||
CGNSRead::BaseInformation & | baseInfo | ||
) |
Read which type of pointers are used for temporal data in the given ZoneIterativeData_t node.
int CGNSRead::readSolInfo | ( | int | cgioNum, |
double | nodeId, | ||
CGNSRead::BaseInformation & | baseInfo | ||
) |
Read data arrays information in the given FlowSolution_t node.
int CGNSRead::readBaseFamily | ( | int | cgioNum, |
double | nodeId, | ||
CGNSRead::BaseInformation & | baseInfo, | ||
const std::string & | parentPath = "" |
||
) |
Read base family information in the given Family_t node.
int CGNSRead::readBaseReferenceState | ( | int | cgioNum, |
double | nodeId, | ||
CGNSRead::BaseInformation & | baseInfo | ||
) |
Read reference state information in the given ReferenceState_t node.
int CGNSRead::readZoneInfo | ( | int | cgioNum, |
double | nodeId, | ||
CGNSRead::BaseInformation & | baseInfo | ||
) |
Read general data array information in the given Zone_t node.
int CGNSRead::readZoneInfo | ( | int | cgioNum, |
double | zoneId, | ||
CGNSRead::ZoneInformation & | zoneInfo | ||
) |
Read family name and boundary conditions information in the given Zone_t node.
void CGNSRead::releaseIds | ( | int | cgioNum, |
const std::vector< double > & | ids | ||
) |
Release all IDs in the vector.
bool CGNSRead::ReadBase | ( | vtkCGNSReader * | reader, |
const BaseInformation & | baseInfo | ||
) |
Helpers to encapsulate all logic to read various nodes (zones, bc patches etc.).
bool CGNSRead::ReadGridForZone | ( | vtkCGNSReader * | reader, |
const BaseInformation & | baseInfo, | ||
const ZoneInformation & | zoneInfo | ||
) |
Helpers to encapsulate all logic to read various nodes (zones, bc patches etc.).
bool CGNSRead::ReadPatchesForBase | ( | vtkCGNSReader * | reader, |
const BaseInformation & | |||
) |
Helpers to encapsulate all logic to read various nodes (zones, bc patches etc.).
bool CGNSRead::ReadSurfacesForBase | ( | vtkCGNSReader * | reader, |
const BaseInformation & | |||
) |
Helpers to encapsulate all logic to read various nodes (zones, bc patches etc.).
bool CGNSRead::ReadPatch | ( | vtkCGNSReader * | reader, |
const BaseInformation & | , | ||
const ZoneInformation & | zoneInfo, | ||
const std::string & | patchFamilyname | ||
) |
Helpers to encapsulate all logic to read various nodes (zones, bc patches etc.).
Definition at line 372 of file vtkCGNSReaderInternal.h.
|
inline |
Definition at line 379 of file vtkCGNSReaderInternal.h.
|
inline |
Definition at line 393 of file vtkCGNSReaderInternal.h.
|
inline |
Definition at line 408 of file vtkCGNSReaderInternal.h.
void CGNSRead::fillVectorsFromVars | ( | std::vector< CGNSRead::CGNSVariable > & | vars, |
std::vector< CGNSRead::CGNSVector > & | vectors, | ||
int | physicalDim | ||
) |
int CGNSRead::setUpRind | ( | int | cgioNum, |
double | rindId, | ||
int * | rind | ||
) |
int CGNSRead::getFirstNodeId | ( | int | cgioNum, |
double | parentId, | ||
const char * | label, | ||
double * | id, | ||
const char * | name = nullptr |
||
) |
Find the first node with the given label
.
If name
is non-NULL, then the first node with given label
that has the given name
as well.
int CGNSRead::get_section_connectivity | ( | int | cgioNum, |
double | cgioSectionId, | ||
int | dim, | ||
const cgsize_t * | srcStart, | ||
const cgsize_t * | srcEnd, | ||
const cgsize_t * | srcStride, | ||
const cgsize_t * | memStart, | ||
const cgsize_t * | memEnd, | ||
const cgsize_t * | memStride, | ||
const cgsize_t * | memDim, | ||
vtkIdType * | localElements | ||
) |
int CGNSRead::get_section_start_offset | ( | int | cgioNum, |
double | cgioSectionId, | ||
int | dim, | ||
const cgsize_t * | srcStart, | ||
const cgsize_t * | srcEnd, | ||
const cgsize_t * | srcStride, | ||
const cgsize_t * | memStart, | ||
const cgsize_t * | memEnd, | ||
const cgsize_t * | memStride, | ||
const cgsize_t * | memDim, | ||
vtkIdType * | localElementsIdx | ||
) |
int CGNSRead::get_section_parent_elements | ( | int | cgioNum, |
double | cgioSectionId, | ||
int | dim, | ||
const cgsize_t * | srcStart, | ||
const cgsize_t * | srcEnd, | ||
const cgsize_t * | srcStride, | ||
const cgsize_t * | memStart, | ||
const cgsize_t * | memEnd, | ||
const cgsize_t * | memStride, | ||
const cgsize_t * | memDim, | ||
vtkIdType * | localElementsIdx | ||
) |
int CGNSRead::GetVTKElemType | ( | CGNS_ENUMT(ElementType_t) | elemType, |
bool & | higherOrderWarning, | ||
bool & | cgnsOrderFlag | ||
) |
void CGNSRead::ReorderMonoCellPointsCGNS2VTK | ( | vtkIdType | size, |
int | cell_type, | ||
vtkIdType | numPointsPerCell, | ||
vtkIdType * | elements | ||
) |
int CGNSRead::get_XYZ_mesh | ( | int | cgioNum, |
const std::vector< double > & | gridChildId, | ||
const std::size_t & | nCoordsArray, | ||
int | cellDim, | ||
vtkIdType | nPts, | ||
const cgsize_t * | srcStart, | ||
const cgsize_t * | srcEnd, | ||
const cgsize_t * | srcStride, | ||
const cgsize_t * | memStart, | ||
const cgsize_t * | memEnd, | ||
const cgsize_t * | memStride, | ||
const cgsize_t * | memDims, | ||
vtkPoints * | points | ||
) |
Definition at line 458 of file vtkCGNSReaderInternal.h.
const std::map<CGNS_ENUMT(ElementType_t), int> CGNSRead::CellDimensions |
Definition at line 106 of file vtkCGNSReaderInternal.h.