 |
VTK
9.1.0
|
Go to the documentation of this file.
196 #ifndef vtkMultiBlockPLOT3DReader_h
197 #define vtkMultiBlockPLOT3DReader_h
199 #include "vtkIOParallelModule.h"
215 class ComputeFunctor;
216 class ComputeTemperatureFunctor;
217 class ComputePressureFunctor;
218 class ComputePressureCoefficientFunctor;
219 class ComputeMachNumberFunctor;
220 class ComputeSoundSpeedFunctor;
221 class ComputeEnthalpyFunctor;
222 class ComputeKinecticEnergyFunctor;
223 class ComputeVelocityMagnitudeFunctor;
224 class ComputeEntropyFunctor;
225 class ComputeSwirlFunctor;
226 class ComputeVelocityFunctor;
227 class ComputeVorticityMagnitudeFunctor;
228 class ComputePressureGradientFunctor;
229 class ComputeVorticityFunctor;
230 class ComputeStrainRateFunctor;
235 friend class Functors::ComputeFunctor;
236 friend class Functors::ComputeTemperatureFunctor;
237 friend class Functors::ComputePressureFunctor;
238 friend class Functors::ComputePressureCoefficientFunctor;
239 friend class Functors::ComputeMachNumberFunctor;
240 friend class Functors::ComputeSoundSpeedFunctor;
241 friend class Functors::ComputeEnthalpyFunctor;
242 friend class Functors::ComputeKinecticEnergyFunctor;
243 friend class Functors::ComputeVelocityMagnitudeFunctor;
244 friend class Functors::ComputeEntropyFunctor;
245 friend class Functors::ComputeSwirlFunctor;
246 friend class Functors::ComputeVelocityFunctor;
247 friend class Functors::ComputeVorticityMagnitudeFunctor;
248 friend class Functors::ComputePressureGradientFunctor;
249 friend class Functors::ComputeVorticityFunctor;
250 friend class Functors::ComputeStrainRateFunctor;
401 vtkSetMacro(ByteOrder,
int);
402 vtkGetMacro(ByteOrder,
int);
410 vtkSetMacro(R,
double);
411 vtkGetMacro(R,
double);
418 vtkSetMacro(Gamma,
double);
419 vtkGetMacro(Gamma,
double);
431 vtkSetMacro(PreserveIntermediateFunctions,
bool);
432 vtkGetMacro(PreserveIntermediateFunctions,
bool);
433 vtkBooleanMacro(PreserveIntermediateFunctions,
bool);
441 vtkGetMacro(ScalarFunctionNumber,
int);
450 vtkGetMacro(VectorFunctionNumber,
int);
484 FILE_LITTLE_ENDIAN = 1
541 int ReadQHeader(FILE* fp,
bool checkGrid,
int& nq,
int& nqc,
int& overflow);
vtkDataArray * NewFloatArray()
int ReadMesh(const std::string &fname, int piece, int npieces, int nghosts, vtkDataObject *output) override
Overridden from superclass to do actual reading.
int ReadMesh(int piece, int npieces, int nghosts, int timestep, vtkDataObject *output) override
These methods have to be overwritten from superclass because Plot3D actually uses the XYZ file to rea...
void SetQFileName(VTK_FILEPATH const char *name)
Set/Get the PLOT3D solution filename.
virtual int OpenFileForDataRead(void *&fp, const char *fname)
vtkDataArray * ComputeTemperature(vtkStructuredGrid *output)
Each of these methods compute a derived quantity.
vtkDataArray * ComputePressureGradient(vtkStructuredGrid *output)
Each of these methods compute a derived quantity.
void AssignAttribute(int fNumber, vtkStructuredGrid *output, int attributeType)
represent and manipulate attribute data in a dataset
std::vector< std::string > FunctionNames
vtkTypeBool AutoDetectFormat
vtkMultiBlockDataSet * GetOutput()
Get the output data object for a port on this algorithm.
vtkDataArray * ComputeStrainRate(vtkStructuredGrid *output)
Each of these methods compute a derived quantity.
int AutoDetectionCheck(FILE *fp)
dynamic, self-adjusting array of unsigned char
vtkGetFilePathMacro(XYZFileName)
Set/Get the PLOT3D geometry filename.
int ReadPoints(int piece, int npieces, int nghosts, int timestep, vtkDataObject *output) override
These methods have to be overwritten from superclass because Plot3D actually uses the XYZ file to rea...
vtkDataArray * CreateFloatArray()
topologically regular array of data
void SetByteOrderToLittleEndian()
Set the byte order of the file (remember, more Unix workstations write big endian whereas PCs write l...
vtkMultiBlockDataSet * GetOutput(int)
Get the output data object for a port on this algorithm.
static vtkMultiBlockPLOT3DReader * New()
int ReadMetaData(vtkInformation *metadata) override
These methods have to be overwritten from superclass because Plot3D actually uses the XYZ file to rea...
vtkGetFilePathMacro(FunctionFileName)
Set/Get the PLOT3D function filename.
void MapFunction(int fNumber, vtkStructuredGrid *output)
abstract superclass for arrays of numeric data
int ReadPoints(const std::string &fname, int piece, int npieces, int nghosts, vtkDataObject *output) override
Overridden from superclass to do actual reading.
bool PreserveIntermediateFunctions
Composite dataset that organizes datasets into blocks.
VTK_FILEPATH const char * GetQFileName()
Set/Get the PLOT3D solution filename.
vtkDataArray * ComputeSwirl(vtkStructuredGrid *output)
Each of these methods compute a derived quantity.
virtual int ReadIntScalar(void *vfp, int extent[6], int wextent[6], vtkDataArray *scalar, vtkTypeUInt64 offset, const vtkMultiBlockPLOT3DReaderRecord ¤tRecord)
virtual int ReadScalar(void *vfp, int extent[6], int wextent[6], vtkDataArray *scalar, vtkTypeUInt64 offset, const vtkMultiBlockPLOT3DReaderRecord ¤tRecord)
int ReadQHeader(FILE *fp, bool checkGrid, int &nq, int &nqc, int &overflow)
~vtkMultiBlockPLOT3DReader() override
vtkDataArray * ComputeKineticEnergy(vtkStructuredGrid *output)
Each of these methods compute a derived quantity.
vtkDataArray * ComputeEnthalpy(vtkStructuredGrid *output)
Each of these methods compute a derived quantity.
virtual int CanReadBinaryFile(VTK_FILEPATH const char *fname)
Return 1 if the reader can read the given file name.
vtkIdType ReadValues(FILE *fp, int n, vtkDataArray *scalar)
int CheckFunctionFile(FILE *&fFp)
void ClearGeometryCache()
vtkMultiProcessController * Controller
vtkDataArray * ComputeMachNumber(vtkStructuredGrid *output)
Each of these methods compute a derived quantity.
void AddFunctionName(const std::string &name)
int ReadArrays(const std::string &fname, int piece, int npieces, int nghosts, vtkDataObject *output) override
Overridden from superclass to do actual reading.
VTK_FILEPATH const char * GetFileName(int i)
Set/Get the PLOT3D geometry filename.
vtkDataArray * ComputePressureCoefficient(vtkStructuredGrid *output)
Each of these methods compute a derived quantity.
Multiprocessing communication superclass.
void SetVectorFunctionNumber(int num)
Specify the vector function to extract.
vtkSetFilePathMacro(FunctionFileName)
Set/Get the PLOT3D function filename.
void AddFunction(int functionNumber)
Specify additional functions to read.
a simple class to control print indentation
dynamic, self-adjusting array of int
int ReadFunctionHeader(FILE *fp, int *nFunctions)
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
vtkDataArray * ComputeVelocityMagnitude(vtkStructuredGrid *output)
Each of these methods compute a derived quantity.
void SetScalarFunctionNumber(int num)
Specify the scalar function to extract.
int CheckGeometryFile(FILE *&xyzFp)
int ReadIntBlock(FILE *fp, int n, int *block)
virtual void CloseFile(void *fp)
int GetNumberOfBlocksInternal(FILE *xyzFp, int allocate)
void CalculateFileSize(FILE *fp)
vtkIntArray * FunctionList
int ReadArrays(int piece, int npieces, int nghosts, int timestep, vtkDataObject *output) override
These methods have to be overwritten from superclass because Plot3D actually uses the XYZ file to rea...
int CheckFile(FILE *&fp, const char *fname)
vtkDataArray * ComputeSoundSpeed(vtkStructuredGrid *output)
Each of these methods compute a derived quantity.
double GetTimeValue(const std::string &fname) override
Overridden from superclass to do actual reading.
void RemoveAllFunctions()
Specify additional functions to read.
void SetFileName(VTK_FILEPATH const char *name)
Set/Get the PLOT3D geometry filename.
void SetController(vtkMultiProcessController *c)
Set/Get the communicator object (we'll use global World controller if you don't set a different one).
double GetGamma(vtkIdType idx, vtkDataArray *gamma)
VTK_FILEPATH const char * GetFileName()
Set/Get the PLOT3D geometry filename.
int FillOutputPortInformation(int port, vtkInformation *info) override
Fill the output port information objects for this algorithm.
Superclass for algorithms that are parallel aware.
vtkDataArray * ComputeVorticityMagnitude(vtkStructuredGrid *output)
Each of these methods compute a derived quantity.
vtkTypeBool DoublePrecision
vtkDataArray * ComputeEntropy(vtkStructuredGrid *output)
Each of these methods compute a derived quantity.
void RemoveFunction(int)
Specify additional functions to read.
int SkipByteCount(FILE *fp)
void SetByteOrderToBigEndian()
Set the byte order of the file (remember, more Unix workstations write big endian whereas PCs write l...
virtual void SetXYZFileName(VTK_FILEPATH const char *)
Set/Get the PLOT3D geometry filename.
vtkMultiBlockPLOT3DReader()
int ReadGeometryHeader(FILE *fp)
vtkDataArray * ComputeVorticity(vtkStructuredGrid *output)
Each of these methods compute a derived quantity.
vtkMultiBlockPLOT3DReaderInternals * Internal
const char * GetByteOrderAsString()
Set the byte order of the file (remember, more Unix workstations write big endian whereas PCs write l...
virtual int ReadVector(void *vfp, int extent[6], int wextent[6], int numDims, vtkDataArray *vector, vtkTypeUInt64 offset, const vtkMultiBlockPLOT3DReaderRecord ¤tRecord)
general representation of visualization data
VTK_FILEPATH const char * GetFileName(int i) const
Returns a particular filename stored by the reader.
vtkDataArray * ComputeVelocity(vtkStructuredGrid *output)
Each of these methods compute a derived quantity.
vtkTypeBool TwoDimensionalGeometry
vtkDataArray * ComputePressure(vtkStructuredGrid *output)
Each of these methods compute a derived quantity.