31 virtual Real
value(Real t,
const Point & pt)
const override;
34 virtual Real
timeDerivative(Real,
const Point &)
const override {
return 0; };
Base class for function objects.
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,...
const InputParameters & parameters() const
Get the parameters of the object.
Function which provides a piecewise constant, in space, field from a CSV file.
const PropertyReadFile::ReadTypeEnum _read_type
Type of read - element, grain, or block.
const unsigned int _column_number
The column number of interest in the CSV file.
const PropertyReadFile * _read_prop_user_object
A user object that takes care of reading the CSV file.
void initialSetup() override
Gets called at the beginning of the simulation before this object is asked to do its job.
std::unique_ptr< libMesh::PointLocatorBase > _point_locator
The point locator is used when values are sorted by elements or blocks in the CSV.
virtual Real value(Real t, const Point &pt) const override
Get the value of the function based on the data in the CSV file.
virtual Real timeDerivative(Real, const Point &) const override
Get the time derivative of the function.
static InputParameters validParams()
Read properties from file - grain, element, node or block Input file syntax: prop1 prop2 etc.
ReadTypeEnum
How data is organized in the CSV file.