|
| v0.14.0
|
Go to the documentation of this file.
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
100 bool error_if_file_not_given =
false);
103 bool error_if_file_not_given =
false);
112 std::map<double, FTensor::Tensor1<double, 3>>
tSeries;
119 [
this](
double time) {
131 #endif //_TIME_SCALING_HPP_
PetscErrorCode MoFEMErrorCode
MoFEM/PETSc error code.
virtual FTensor::Tensor1< double, SPACE_DIM > getVectorFromData(const double time)
std::function< FTensor::Tensor1< double, SPACE_DIM >double)> scalingMethod
MoFEMErrorCode timeData()
virtual ~ScalingMethod()=default
implementation of Data Operators for Forces and Sources
TimeScale(std::string file_name="", bool error_if_file_not_given=false)
TimeScale constructor.
Force scale operator for reading two columns.
std::map< double, double > tSeries
MoFEMErrorCode timeData(std::string fileName, std::string delimiter)
Force scale operator for reading four columns (time and vector)
TimeScaleVector(std::string name="-time_vector_file", bool error_if_file_not_given=false)
FTensor::Index< 'i', SPACE_DIM > i
double getScale(const double time)
Get scaling at a given time.
static const std::string defaultDelimiter
comma or space
std::function< double(double)> scalingMethod
virtual double getScale(const double time)
Get scaling at 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...
double getLinearScale(const double time)
Returns the value of time.
std::map< double, FTensor::Tensor1< double, 3 > > tSeries
virtual FTensor::Tensor1< double, SPACE_DIM > getVector(const double time)