25 #ifndef vtkAMRFlashReaderInternal_h 26 #define vtkAMRFlashReaderInternal_h 41 #include "vtkSetGet.h" 50 #define FLASH_READER_MAX_DIMS 3 51 #define FLASH_READER_LEAF_BLOCK 1 52 #define FLASH_READER_FLASH3_FFV8 8 53 #define FLASH_READER_FLASH3_FFV9 9 88 int MinGlobalDivisionIds[3];
89 int MaxGlobalDivisionIds[3];
99 char FileCreationTime[80];
100 char FlashVersion[80];
102 char BuildDirectory[80];
103 char build_machine[80];
106 char SetupTimeStamp[80];
107 char BuildTimeStamp[80];
114 if (sepaName.length() > 9 && sepaName.substr(0, 9) ==
"particle_")
116 sepaName =
std::string(
"Particles/") + sepaName.substr(9);
144 int BlockGridDimensions[3];
145 int BlockCellDimensions[3];
176 return particleName.c_str();
180 void ReadProcessorIds();
181 void ReadDoubleScalars(hid_t fileIndx);
182 void ReadIntegerScalars(hid_t fileIndx);
183 void ReadVersionInformation(hid_t fileIndx);
184 void ReadSimulationParameters(hid_t fileIndx,
bool bTmCycle =
false);
185 void GetBlockMinMaxGlobalDivisionIds();
187 void ReadBlockTypes();
188 void ReadBlockBounds();
189 void ReadBlockCenters();
190 void ReadBlockStructures();
191 void ReadRefinementLevels();
192 void ReadDataAttributeNames();
194 void ReadParticlesComponent(hid_t dataIndx,
const char* compName,
double* dataBuff);
195 void ReadParticleAttributes();
196 void ReadParticleAttributesFLASH3();
197 void GetBlockAttribute(
const char* attribute,
int blockIdx,
vtkDataSet* pDataSet);
FlashReaderSimulationInformation SimulationInformation
abstract class to specify dataset behavior
const char * GetParticleName(char *variableName)
FlashReaderSimulationParameters SimulationParameters
std::vector< hid_t > ParticleAttributeTypes
int NumberOfNeighborsPerBlock
struct tagFlashReaderSimulationParameters FlashReaderSimulationParameters
void SetFileName(char *fileName)
struct tagFlashReaderSimulationInformation FlashReaderSimulationInformation
std::vector< int > LeafBlocks
struct tagFlashReaderDoubleScalar FlashReaderDoubleScalar
std::map< std::string, int > ParticleAttributeNamesToIds
static std::string GetSeparatedParticleName(const std::string &variable)
~vtkFlashReaderInternal()
struct tagFlashReaderIntegerScalar FlashReaderIntegerScalar
std::vector< std::string > AttributeNames
int NumberOfChildrenPerBlock
std::vector< std::string > ParticleAttributeNames
std::vector< Block > Blocks