77 std::vector<std::vector<Real>>
_grid;
92 unsigned int & lower_x,
93 unsigned int & upper_x)
const;
Base class for function objects.
Uses GriddedData to define data on a grid, and does linear interpolation on that data to provide func...
static InputParameters validParams()
Create new PiecewiseMultiInterpolation object.
std::unique_ptr< GriddedData > _gridded_data
object to provide function evaluations at points on the grid
std::vector< std::vector< Real > > _grid
the grid
GriddedData::GridIndex GridIndex
Moose::GenericType< GridPoint, is_ad > pointInGrid(const Moose::GenericType< Real, is_ad > &t, const Moose::GenericType< Point, is_ad > &p) const
convert cartesian+time coordinates into grid coordinates
DualNumber< Real, DNDerivativeType, true > ADReal
typename std::conditional< is_ad, typename ADType< T >::type, T >::type GenericType
Utility class template for a semidynamic vector with a maximum size N and a chosen dynamic size...
void getNeighborIndices(std::vector< Real > in_arr, Real x, unsigned int &lower_x, unsigned int &upper_x) const
Operates on monotonically increasing in_arr.
std::vector< int > _axes
_axes specifies how to embed the grid into the MOOSE coordinate frame if _axes[i] = 0 then the i_th a...
virtual ~PiecewiseMultiInterpolation()
GriddedData::GridPoint GridPoint
unsigned int _dim
dimension of the grid
GriddedData::ADGridPoint ADGridPoint
DIE A HORRIBLE DEATH HERE typedef LIBMESH_DEFAULT_SCALAR_TYPE Real
PiecewiseMultiInterpolation(const InputParameters ¶meters)
const InputParameters & parameters() const
Get the parameters of the object.
virtual Real value(Real t, const Point &pt) const override
Given t and p, return the interpolated value.
virtual Real value(Real t, const Point &p) const
Override this to evaluate the scalar function at point (t,x,y,z), by default this returns zero...
virtual Real sample(const GridPoint &pt) const =0
This does the core work.