27 template <
int spacedim, class
Value>
34 "Values of time series initialization of Field.")
43 template <
int spacedim,
class Value>
45 Input::register_class< FieldTimeFunction<spacedim, Value>,
unsigned int >(
"FieldTimeFunction") +
49 template <
int spacedim,
class Value>
55 template <
int spacedim,
class Value>
66 template <
int spacedim,
class Value>
72 if (!Value::is_scalable()) {
73 WarningOut().fmt(
"Setting key 'time_function' of non-floating point field at address {}\nValues will be skipped.\n",
79 struct FieldAlgoBaseInitData init_data(this->field_name_, 0, this->unit_si_, this->limits_, FieldFlag::Flags() );
void init_unit_conversion_coefficient(const Input::Record &rec, const struct FieldAlgoBaseInitData &init_data)
Init value of unit_conversion_coefficient_ from input.
void check_field_limits(const Input::Record &rec, const struct FieldAlgoBaseInitData &init_data)
Compare field value with given minimal and maximal limits.
FieldTimeFunction(unsigned int n_comp=0)
void init_from_input(const Input::Record &rec, const struct FieldAlgoBaseInitData &init_data) override
bool set_time(const TimeStep &time) override
#define INSTANCE_ALL(field)
Helper struct stores data for initizalize descentants of FieldAlgorithmBase.
Value::return_type r_value_
double unit_conversion_coefficient_
Coeficient of conversion of user-defined unit.
std::pair< double, double > limits_
Input::Record in_rec_
Accessor to Input::Record.
Value value_
Last value, prevents passing large values (vectors) by value.
return_type const & value(double t)
#define WarningOut()
Macro defining 'warning' record of log.
std::pair< double, double > limits_
Class for representation SI units of Fields.
Representation of one time step..
#define FLOW123D_FORCE_LINK_IN_CHILD(x)
void init_from_input(const Input::Record &rec, const TimeStep &time)
Initialize actual values of the field given from the given Input::Record rec.