|
VMTK
|
Evaluates an interpolated velocity field from a time-tabulated, temporally piecewise-linear velocity field sampled on a fixed (non-moving) mesh. More...
#include <vtkvmtkStaticTemporalInterpolatedVelocityField.h>
Public Types | |
| typedef vtkInterpolatedVelocityField | Superclass |
Public Member Functions | |
| virtual int | IsA (const char *type) |
| vtkvmtkStaticTemporalInterpolatedVelocityField * | NewInstance () const |
| void | PrintSelf (std::ostream &os, vtkIndent indent) override |
| virtual void | SetLastCellId (vtkIdType c, int dataindex) override |
| virtual void | CopyParameters (vtkAbstractInterpolatedVelocityField *from) override |
| virtual vtkTable * | GetTimeStepsTable () |
| virtual void | SetTimeStepsTable (vtkTable *) |
| virtual void | SetPeriodic (int) |
| virtual int | GetPeriodic () |
| virtual void | PeriodicOn () |
| virtual void | PeriodicOff () |
| virtual void | SetVelocityScale (double) |
| virtual double | GetVelocityScale () |
| virtual void | SetUseVectorComponents (int) |
| virtual int | GetUseVectorComponents () |
| virtual void | UseVectorComponentsOn () |
| virtual void | UseVectorComponentsOff () |
| virtual void | SetVectorPrefix (const char *) |
| virtual char * | GetVectorPrefix () |
| virtual void | SetComponent0Prefix (const char *) |
| virtual char * | GetComponent0Prefix () |
| virtual void | SetComponent1Prefix (const char *) |
| virtual char * | GetComponent1Prefix () |
| virtual void | SetComponent2Prefix (const char *) |
| virtual char * | GetComponent2Prefix () |
| virtual void | SetLastCellId (vtkIdType c) override |
Static Public Member Functions | |
| static int | IsTypeOf (const char *type) |
| static vtkvmtkStaticTemporalInterpolatedVelocityField * | SafeDownCast (vtkObjectBase *o) |
| static vtkvmtkStaticTemporalInterpolatedVelocityField * | New () |
Protected Member Functions | |
| virtual vtkObjectBase * | NewInstanceInternal () const |
| vtkvmtkStaticTemporalInterpolatedVelocityField () | |
| ~vtkvmtkStaticTemporalInterpolatedVelocityField () | |
| virtual int | FunctionValues (vtkDataSet *ds, double *x, double *f) override |
| void | FindTimeRowId (double time, int &prevRowId, int &nextRowId, double &p) |
| void | BuildArrayName (char *prefix, int index, char *name) |
Protected Attributes | |
| vtkTable * | TimeStepsTable |
| int | Periodic |
| double | VelocityScale |
| int | UseVectorComponents |
| char * | VectorPrefix |
| char * | Component0Prefix |
| char * | Component1Prefix |
| char * | Component2Prefix |
| int | LastDataSetIndex |
Evaluates an interpolated velocity field from a time-tabulated, temporally piecewise-linear velocity field sampled on a fixed (non-moving) mesh.
This class extends VTK's interpolated velocity field machinery (vtkInterpolatedVelocityField on VTK < 9.2, vtkCompositeInterpolatedVelocityField on VTK >= 9.2) so that, in addition to spatial interpolation within the dataset's cells, it also interpolates in time between a discrete set of time steps whose velocity samples are stored as separate point data arrays on the same static mesh (hence "static": the mesh connectivity/geometry does not change over time, only the velocity values attached to it do). TimeStepsTable maps each time step index to a time value; FunctionValues looks up, for a query point (x,y,z,t), which two consecutive time steps bracket t (wrapping around if Periodic is on) and linearly interpolates in time between the spatially-interpolated velocity at each of them. Velocity samples can be provided either as a single 3-component vector array per time step (named with VectorPrefix followed by the time step index) or as three separate scalar component arrays per time step (named with Component0Prefix/Component1Prefix/Component2Prefix followed by the time step index), selected with UseVectorComponents.
This is the velocity field evaluator used by vtkvmtkStaticTemporalStreamTracer (and, through it, the vmtkparticletracer pype script) to trace particle/streak lines through unsteady (e.g. CFD) flow fields sampled at discrete time points on a fixed mesh.
Definition at line 77 of file vtkvmtkStaticTemporalInterpolatedVelocityField.h.
| typedef vtkInterpolatedVelocityField vtkvmtkStaticTemporalInterpolatedVelocityField::Superclass |
Definition at line 82 of file vtkvmtkStaticTemporalInterpolatedVelocityField.h.
|
protected |
Definition at line 34 of file vtkvmtkStaticTemporalInterpolatedVelocityField.cxx.
|
protected |
Definition at line 50 of file vtkvmtkStaticTemporalInterpolatedVelocityField.cxx.
|
static |
|
virtual |
|
static |
|
protectedvirtual |
| vtkvmtkStaticTemporalInterpolatedVelocityField * vtkvmtkStaticTemporalInterpolatedVelocityField::NewInstance | ( | ) | const |
|
override |
Definition at line 419 of file vtkvmtkStaticTemporalInterpolatedVelocityField.cxx.
|
static |
Construct a vtkvmtkStaticTemporalInterpolatedVelocityField without an initial dataset. Caching is set on and LastCellId is set to -1.
|
virtual |
Set/Get the table mapping time step index to time value, used to interpolate in time. The table must have (at least) two columns: column 0 holds the integer time step index appended to the array name prefixes (VectorPrefix, or Component0Prefix/Component1Prefix/ Component2Prefix) to look up each time step's velocity array(s), and column 1 holds the corresponding time value, with rows in increasing time order (need not be evenly spaced).
|
virtual |
Set/Get the table mapping time step index to time value, used to interpolate in time. The table must have (at least) two columns: column 0 holds the integer time step index appended to the array name prefixes (VectorPrefix, or Component0Prefix/Component1Prefix/ Component2Prefix) to look up each time step's velocity array(s), and column 1 holds the corresponding time value, with rows in increasing time order (need not be evenly spaced).
|
virtual |
Toggle whether time values are treated as periodic, i.e. wrapped modulo the span between the first and last row of TimeStepsTable, so that a query time beyond the last time step maps back into range (useful for cyclic flows, e.g. one cardiac cycle). When off, query times at or beyond the last time step use the last time interval with no extrapolation. Default: off.
|
virtual |
Toggle whether time values are treated as periodic, i.e. wrapped modulo the span between the first and last row of TimeStepsTable, so that a query time beyond the last time step maps back into range (useful for cyclic flows, e.g. one cardiac cycle). When off, query times at or beyond the last time step use the last time interval with no extrapolation. Default: off.
|
virtual |
Toggle whether time values are treated as periodic, i.e. wrapped modulo the span between the first and last row of TimeStepsTable, so that a query time beyond the last time step maps back into range (useful for cyclic flows, e.g. one cardiac cycle). When off, query times at or beyond the last time step use the last time interval with no extrapolation. Default: off.
|
virtual |
Toggle whether time values are treated as periodic, i.e. wrapped modulo the span between the first and last row of TimeStepsTable, so that a query time beyond the last time step maps back into range (useful for cyclic flows, e.g. one cardiac cycle). When off, query times at or beyond the last time step use the last time interval with no extrapolation. Default: off.
|
virtual |
Set/Get a uniform scale factor applied to every interpolated velocity vector/component before it is combined into the output. Default: 1.0.
|
virtual |
Set/Get a uniform scale factor applied to every interpolated velocity vector/component before it is combined into the output. Default: 1.0.
|
virtual |
Toggle whether each time step's velocity is read from three separate scalar point data arrays (named with Component0Prefix/Component1Prefix/Component2Prefix followed by the time step index) rather than from a single 3-component vector point data array (named with VectorPrefix followed by the time step index). Default: off (use vector arrays).
|
virtual |
Toggle whether each time step's velocity is read from three separate scalar point data arrays (named with Component0Prefix/Component1Prefix/Component2Prefix followed by the time step index) rather than from a single 3-component vector point data array (named with VectorPrefix followed by the time step index). Default: off (use vector arrays).
|
virtual |
Toggle whether each time step's velocity is read from three separate scalar point data arrays (named with Component0Prefix/Component1Prefix/Component2Prefix followed by the time step index) rather than from a single 3-component vector point data array (named with VectorPrefix followed by the time step index). Default: off (use vector arrays).
|
virtual |
Toggle whether each time step's velocity is read from three separate scalar point data arrays (named with Component0Prefix/Component1Prefix/Component2Prefix followed by the time step index) rather than from a single 3-component vector point data array (named with VectorPrefix followed by the time step index). Default: off (use vector arrays).
|
virtual |
Set/Get the prefix used, together with the time step index taken from TimeStepsTable, to build the name of the 3-component point data vector array holding each time step's velocity samples. Only used when UseVectorComponents is off.
|
virtual |
Set/Get the prefix used, together with the time step index taken from TimeStepsTable, to build the name of the 3-component point data vector array holding each time step's velocity samples. Only used when UseVectorComponents is off.
|
virtual |
Set/Get the prefix used, together with the time step index taken from TimeStepsTable, to build the name of the scalar point data array holding the x-component of each time step's velocity samples. Only used when UseVectorComponents is on.
|
virtual |
Set/Get the prefix used, together with the time step index taken from TimeStepsTable, to build the name of the scalar point data array holding the x-component of each time step's velocity samples. Only used when UseVectorComponents is on.
|
virtual |
Set/Get the prefix used, together with the time step index taken from TimeStepsTable, to build the name of the scalar point data array holding the y-component of each time step's velocity samples. Only used when UseVectorComponents is on.
|
virtual |
Set/Get the prefix used, together with the time step index taken from TimeStepsTable, to build the name of the scalar point data array holding the y-component of each time step's velocity samples. Only used when UseVectorComponents is on.
|
virtual |
Set/Get the prefix used, together with the time step index taken from TimeStepsTable, to build the name of the scalar point data array holding the z-component of each time step's velocity samples. Only used when UseVectorComponents is on.
|
virtual |
Set/Get the prefix used, together with the time step index taken from TimeStepsTable, to build the name of the scalar point data array holding the z-component of each time step's velocity samples. Only used when UseVectorComponents is on.
|
overridevirtual |
Set the cell id cached by the last evaluation within a specified dataset.
Definition at line 80 of file vtkvmtkStaticTemporalInterpolatedVelocityField.cxx.
|
inlineoverridevirtual |
Set the cell id cached by the last evaluation.
Definition at line 186 of file vtkvmtkStaticTemporalInterpolatedVelocityField.h.
|
overridevirtual |
Copy Periodic, VelocityScale, UseVectorComponents, VectorPrefix, Component0Prefix, Component1Prefix, Component2Prefix, and a deep copy of TimeStepsTable from another interpolated velocity field, provided it is (or derives from) vtkvmtkStaticTemporalInterpolatedVelocityField. Used internally when this velocity field is cloned, e.g. for multithreaded streamline integration.
Definition at line 400 of file vtkvmtkStaticTemporalInterpolatedVelocityField.cxx.
|
overrideprotectedvirtual |
Evaluate the velocity field f at point (x, y, z) in a specified dataset by either involving vtkPointLocator, via vtkPointSet::FindCell(), in locating the next cell (for datasets of type vtkPointSet) or simply invoking vtkImageData/vtkRectilinearGrid::FindCell() to fulfill the same task if the point is outside the current cell.
Definition at line 177 of file vtkvmtkStaticTemporalInterpolatedVelocityField.cxx.
|
protected |
Definition at line 106 of file vtkvmtkStaticTemporalInterpolatedVelocityField.cxx.
|
protected |
Definition at line 172 of file vtkvmtkStaticTemporalInterpolatedVelocityField.cxx.
|
protected |
Definition at line 215 of file vtkvmtkStaticTemporalInterpolatedVelocityField.h.
|
protected |
Definition at line 217 of file vtkvmtkStaticTemporalInterpolatedVelocityField.h.
|
protected |
Definition at line 219 of file vtkvmtkStaticTemporalInterpolatedVelocityField.h.
|
protected |
Definition at line 221 of file vtkvmtkStaticTemporalInterpolatedVelocityField.h.
|
protected |
Definition at line 223 of file vtkvmtkStaticTemporalInterpolatedVelocityField.h.
|
protected |
Definition at line 224 of file vtkvmtkStaticTemporalInterpolatedVelocityField.h.
|
protected |
Definition at line 225 of file vtkvmtkStaticTemporalInterpolatedVelocityField.h.
|
protected |
Definition at line 226 of file vtkvmtkStaticTemporalInterpolatedVelocityField.h.
|
protected |
Definition at line 227 of file vtkvmtkStaticTemporalInterpolatedVelocityField.h.