11#ifndef _TIME_SCALING_HPP_
12#define _TIME_SCALING_HPP_
24 virtual double getScale(
const double time);
42 TimeScale(std::string file_name =
"",
bool error_if_file_not_given =
false);
54 TimeScale(std::string file_name, std::string delimiter,
55 bool error_if_file_not_given =
false);
86 static const std::string
PetscErrorCode MoFEMErrorCode
MoFEM/PETSc error code.
implementation of Data Operators for Forces and Sources
virtual double getScale(const double time)
Get scaling at given time.
virtual ~ScalingMethod()=default
Force scale operator for reading two columns.
double getLinearScale(const double time)
Returns the value of time.
double getScale(const double time)
Get scaling at a given time.
double getScaleFromData(const double time)
Get scaling at a given time when the scalar values have been provided. Uses linear interpolation on t...
static const std::string defaultDelimiter
comma or space
std::function< double(double)> scalingMethod
MoFEMErrorCode timeData(std::string delimiter)
std::map< double, double > tSeries