 |
VTK
9.0.1
|
Go to the documentation of this file.
152 #ifndef vtkLSDynaReader_h
153 #define vtkLSDynaReader_h
155 #include "vtkIOLSDynaModule.h"
197 #ifdef VTK_LEGACY_REMOVE
214 #ifdef VTK_LEGACY_REMOVE
323 vtkGetVector2Macro(TimeStepRange,
int);
324 vtkSetVector2Macro(TimeStepRange,
int);
335 virtual void SetPointArrayStatus(
const char* arrName,
int status);
337 int GetPointArrayStatus(
const char* arrName);
339 int GetNumberOfComponentsInPointArray(
const char* arrName);
352 virtual void SetCellArrayStatus(
int cellType,
const char* arrName,
int status);
354 int GetCellArrayStatus(
int cellType,
const char* arrName);
356 int GetNumberOfComponentsInCellArray(
int cellType,
const char* arrName);
367 virtual void SetSolidArrayStatus(
const char* arrName,
int status);
369 int GetSolidArrayStatus(
const char* arrName);
373 int GetNumberOfComponentsInSolidArray(
const char* arrName);
383 virtual void SetThickShellArrayStatus(
const char* arrName,
int status);
385 int GetThickShellArrayStatus(
const char* arrName);
389 int GetNumberOfComponentsInThickShellArray(
const char* arrName);
399 virtual void SetShellArrayStatus(
const char* arrName,
int status);
401 int GetShellArrayStatus(
const char* arrName);
405 int GetNumberOfComponentsInShellArray(
const char* arrName);
415 virtual void SetRigidBodyArrayStatus(
const char* arrName,
int status);
417 int GetRigidBodyArrayStatus(
const char* arrName);
421 int GetNumberOfComponentsInRigidBodyArray(
const char* arrName);
431 virtual void SetRoadSurfaceArrayStatus(
const char* arrName,
int status);
433 int GetRoadSurfaceArrayStatus(
const char* arrName);
437 int GetNumberOfComponentsInRoadSurfaceArray(
const char* arrName);
447 virtual void SetBeamArrayStatus(
const char* arrName,
int status);
449 int GetBeamArrayStatus(
const char* arrName);
453 int GetNumberOfComponentsInBeamArray(
const char* arrName);
463 virtual void SetParticleArrayStatus(
const char* arrName,
int status);
465 int GetParticleArrayStatus(
const char* arrName);
469 int GetNumberOfComponentsInParticleArray(
const char* arrName);
520 vtkSetStringMacro(InputDeck);
521 vtkGetStringMacro(InputDeck);
538 virtual void SetPartArrayStatus(
const char* partName,
int status);
540 int GetPartArrayStatus(
const char* partName);
566 int TimeStepRange[2];
688 template <
typename T>
690 const vtkIdType& numCells,
const int& deathPos,
const int& cellSize);
692 template <
int wordSize,
typename T>
693 int FillTopology(T* buffer);
695 template <
typename T,
int blockType, vtkIdType numWordsPerCell, vtkIdType cellLength>
696 void ReadBlockCellSizes();
698 template <
typename T>
715 vtkWarningMacro(
"Point array \"" << arrName <<
"\" does not exist");
754 vtkWarningMacro(
"Cell array \"" << arrName <<
"\" (type " << cellType <<
") does not exist");
793 vtkWarningMacro(
"Solid array \"" << arrName <<
"\" does not exist");
832 vtkWarningMacro(
"Thick shell array \"" << arrName <<
"\" does not exist");
871 vtkWarningMacro(
"Shell array \"" << arrName <<
"\" does not exist");
910 vtkWarningMacro(
"Beam array \"" << arrName <<
"\" does not exist");
949 vtkWarningMacro(
"Particle array \"" << arrName <<
"\" does not exist");
988 vtkWarningMacro(
"Rigid body array \"" << arrName <<
"\" does not exist");
1027 vtkWarningMacro(
"Road surface array \"" << arrName <<
"\" does not exist");
1066 vtkWarningMacro(
"Part \"" << arrName <<
"\" does not exist");
1082 #endif // vtkLSDynaReader_h
represent and manipulate 3D points
vtkIdType GetNumberOfContinuumCells()
Retrieve the number of cells of a given type in the database.
int ReadInputDeckXML(istream &deck)
ReadInputDeck determines the type of file (keyword or XML summary) and calls one of these two routine...
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
virtual void SetFileName(const char *)
int GetNumberOfComponentsInShellArray(int a)
int GetNumberOfParticleArrays()
These methods allow you to load only selected subsets of the cell variables defined over the mesh.
virtual void SetPointArrayStatus(int arr, int status)
int GetCellArrayStatus(int cellType, int arr)
vtkIdType GetNumberOfCells()
Retrieve the number of cells of a given type in the database.
const char * GetSolidArrayName(int)
vtkIdType GetNumberOfParticleCells()
Retrieve the number of cells of a given type in the database.
static vtkLSDynaReader * New()
vtkTypeBool RemoveDeletedCells
Should cells marked as deleted be removed from the mesh? By default, this is true.
Read LS-Dyna databases (d3plot)
const char * GetCellArrayName(int cellType, int arr)
int GetShellArrayStatus(int arr)
virtual int ReadPartTitlesFromRootFile()
Called from within ReadHeaderInformation to read part names from the end of the first d3plot file.
const char * GetFileName()
int GetSolidArrayStatus(int arr)
~vtkLSDynaReader() override
virtual int ReadState(vtkIdType)
virtual void SetThickShellArrayStatus(int arr, int status)
dynamic, self-adjusting array of unsigned char
vtkIdType GetNumberOfSolidCells()
Retrieve the number of cells of a given type in the database.
vtkIdType GetNumberOfNodes()
Retrieve the number of points in the database.
virtual int ReadPartSizes()
virtual void SetPartArrayStatus(int arr, int status)
int GetNumberOfComponentsInRigidBodyArray(int a)
virtual int ReadUserMaterialIds()
Called from within ReadHeaderInformation() to read arbitrary material IDs (if present) or manufacture...
virtual int ReadInputDeck()
Called from within ReadHeaderInformation() to read part names associated with material IDs.
abstract superclass for arrays of numeric data
int GetNumberOfPointArrays()
These methods allow you to load only selected subsets of the nodal variables defined over the mesh.
void Dump(ostream &os)
Print out more complete information about the dataset (and less complete information about the VTK hi...
int GetNumberOfComponentsInCellArray(int cellType, int arr)
vtkIdType GetNumberOfRoadSurfaceCells()
Retrieve the number of cells of a given type in the database.
virtual void ReadDeletionArray(vtkUnsignedCharArray *arr, const int &pos, const int &size)
Read an array of deletion data.
const char * GetThickShellArrayName(int)
virtual int ReadTopology()
These functions read various parts of the database.
int GetNumberOfBeamArrays()
These methods allow you to load only selected subsets of the cell variables defined over the mesh.
const char * GetDatabaseDirectory()
int ScanDatabaseTimeSteps()
This function scans the list of files in the database and bookmarks the start of each time step's sta...
int GetPartArrayStatus(int arr)
int GetParticleArrayStatus(int arr)
int GetNumberOfComponentsInParticleArray(int a)
const char * GetPartArrayName(int)
virtual void SetBeamArrayStatus(int arr, int status)
int GetNumberOfCellArrays(int cellType)
Routines that allow the status of a cell variable to be adjusted or queried independent of the output...
char * GetTitle()
The title of the database is a 40 or 80 character text description stored at the front of a d3plot fi...
int GetNumberOfComponentsInSolidArray(int a)
vtkIdType GetNumberOfThickShellCells()
Retrieve the number of cells of a given type in the database.
void DebugDump()
A routine to call Dump() from within a lame debugger that won't properly pass a C++ iostream object l...
virtual void SetDatabaseDirectory(const std::string &)
Get/Set the directory containing the LS-Dyna database and determine whether it is valid.
int GetPointArrayStatus(int arr)
const char * GetPointArrayName(int)
virtual int ComputeDeflectionAndUpdateGeometry(vtkUnstructuredGrid *grid)
int GetNumberOfShellArrays()
These methods allow you to load only selected subsets of the cell variables defined over the mesh.
virtual int ReadSPHState(vtkIdType)
virtual int ReadCellStateInfo(vtkIdType)
int GetNumberOfPartArrays()
These methods allow you to load only selected parts of the input.
int GetRoadSurfaceArrayStatus(int arr)
vtkTypeBool DeformedMesh
Should deflected coordinates be used, or should the mesh remain undeflected? By default,...
int GetNumberOfThickShellArrays()
These methods allow you to load only selected subsets of the cell variables defined over the mesh.
a simple class to control print indentation
virtual void SetRoadSurfaceArrayStatus(int arr, int status)
const char * GetParticleArrayName(int)
const char * GetRoadSurfaceArrayName(int)
int GetRigidBodyArrayStatus(int arr)
virtual void SetShellArrayStatus(int arr, int status)
int GetNumberOfSolidArrays()
These methods allow you to load only selected subsets of the cell variables defined over the mesh.
int GetDimensionality()
Retrieve the dimension of points in the database.
virtual void SetTimeStep(vtkIdType)
const char * GetShellArrayName(int)
const char * GetRigidBodyArrayName(int)
int GetBeamArrayStatus(int arr)
int ReadHeaderInformation(int currentAdaptLevel)
This function populates the reader's private dictionary with information about the database.
int GetNumberOfComponentsInBeamArray(int a)
virtual void SetSolidArrayStatus(int arr, int status)
virtual void SetParticleArrayStatus(int arr, int status)
int GetThickShellArrayStatus(int arr)
vtkTypeBool DeletedCellsAsGhostArray
double GetTimeValue(vtkIdType)
int RequestInformation(vtkInformation *, vtkInformationVector **, vtkInformationVector *) override
This is called by the superclass.
virtual void SetRigidBodyArrayStatus(int arr, int status)
vtkIdType GetNumberOfBeamCells()
Retrieve the number of cells of a given type in the database.
vtkIdType GetNumberOfRigidBodyCells()
Retrieve the number of cells of a given type in the database.
virtual int CanReadFile(const char *fname)
Determine if the file can be read with this reader.
virtual int ReadUserIds()
int GetNumberOfRigidBodyArrays()
These methods allow you to load only selected subsets of the cell variables defined over the mesh.
char * InputDeck
The name of a file containing part names and IDs.
int ReadInputDeckKeywords(istream &deck)
const char * GetBeamArrayName(int)
virtual int ReadDeletion()
virtual int ReadNodeStateInfo(vtkIdType)
int GetNumberOfComponentsInThickShellArray(int a)
dataset represents arbitrary combinations of all possible cell types
vtkIdType GetNumberOfShellCells()
Retrieve the number of cells of a given type in the database.
virtual void ResetPartInfo()
Resets the Part information to the default state.
virtual void SetFileName(const std::string &)
Get/Set the filename.
int WriteInputDeckSummary(const char *fname)
ReadInputDeckKeywords calls this function if it was successful in reading part names for materials.
int GetNumberOfComponentsInPointArray(int arr)
virtual void SetCellArrayStatus(int cellType, int arr, int status)
virtual void ReadCellProperties(const int &type, const int &numTuples)
Read all the cell properties of a given part type.
void SetDeformedMesh(vtkTypeBool)
Should deflected coordinates be used, or should the mesh remain undeflected? By default,...
vtkIdType GetNumberOfTimeSteps()
Retrieve information about the time extents of the LS-Dyna database.
int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *) override
This is called by the superclass.
virtual int ReadConnectivityAndMaterial()
int GetNumberOfRoadSurfaceArrays()
These methods allow you to load only selected subsets of the cell variables defined over the mesh.
vtkLSDynaPartCollection * Parts
std::string GetFileName(const std::string &fileName) noexcept
Set the appropriate file name based on recognized user input.
int GetNumberOfComponentsInRoadSurfaceArray(int a)
virtual void SetDatabaseDirectory(const char *)
Superclass for algorithms that produce only vtkMultiBlockDataSet as output.