33 #include <vtkSmartPointer.h>
34 #include <vtkUnstructuredGridReader.h>
std::basic_string< CepsChar > CepsString
C++ format string.
CepsIndex CepsUnknownIndex
For unknowns.
std::map< _Key, _Tp, _Compare, _Alloc > CepsMap
C++ map.
std::vector< _Type, _Alloc > CepsVector
C++ vector.
CepsGlobalIndex CepsDofGlobalIndex
Indices of degrees of freedom.
std::make_unsigned_t< CepsInt > CepsUInt
Unsigned version on CepsInt.
float CepsReal
Need single precision floating point.
Base class for creating PDEs to solve.
Functor that uses data from a collection of files to return a value at position x and time t.
CepsReal m_loadedTMax
Time of Max snapshot of currently loaded files.
CepsString getVtkFileName(CepsUInt i) const
Get full file name for snapshot i.
CepsUInt m_loadedSnapIdMax
Max snapshot ID of currently loaded files Loaded data, indexed by time, unknown id (array name in vtk...
virtual CepsReal eval(CepsStandardArgs args) final
Call operator to evaluate functor.
CepsEnum getFlags() const final
flag is Attribute only
CepsUInt m_loadedSnapIdMin
Min snapshot ID of currently loaded files.
CepsReal m_ptLocatorTolerance
Distance under which closest point search is tolerated (can be set in input file)
CepsUInt m_nDigitsFile
Number of digits of file number in collection of files.
FileInterpolatorSAFunc(AbstractPdeProblem *pb, CepsReal snapTimeRef, const CepsString &filesBase, CepsUInt tOrder=1)
Constructor with map. Flag is the expected flag of the coefficient used to interpolate.
void computeInterpolationWeights()
Computes the interpolation weights using geom locators.
FileInterpolatorSAFunc & operator=(const FileInterpolatorSAFunc &)=default
We allow the assignement from a functor to another.
void loadFilesForTime(CepsReal t)
Loads the appropriate files to perform time interpolation at time t.
CepsMap< CepsDofGlobalIndex, CepsMap< vtkIdType, CepsReal > > m_itpWeights
Precomputed interpolation weights. Built using point/cell locator.
AbstractPdeProblem * m_problem
Link to problem.
CepsUInt m_tOrder
Time interpolation order.
CepsReal m_loadedTMin
Time of Min snapshot of currently loaded files.
CepsVector< CepsMap< CepsUnknownIndex, CepsVector< CepsReal > > > m_loadedData
CepsVector< CepsMap< CepsUnknownIndex, CepsReal > > m_loadedData0D
Loaded data, indexed by time, unknown id (array name in vtk file)
CepsString m_filesBase
Base names of data files.
CepsReal m_snapTimeRef
Reference output period.
FileInterpolatorSAFunc(const FileInterpolatorSAFunc &)=default
We allow the copy from a functor to another.
A SAFunc is a ceps::Function that uses CepsStandardArgs as argument of call operator (),...
A namespace for all utility methods.
CepsEnum getFlagsOf(FileInterpolatorSAFunc *f)
get functor options
Structure used to pass arguments to SAFunc (see pde directory) The flags of the SAFunc allows extract...