27 template <
int spacedim, class
Value>
34 "Values of time series initialization of Field.")
41 template <
int spacedim,
class Value>
43 Input::register_class< FieldTimeFunction<spacedim, Value>,
unsigned int >(
"FieldTimeFunction") +
47 template <
int spacedim,
class Value>
53 template <
int spacedim,
class Value>
64 template <
int spacedim,
class Value>
70 if (!Value::is_scalable()) {
71 WarningOut().fmt(
"Setting key 'time_function' of non-floating point field at address {}\nValues will be skipped.\n",
77 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)
bool set_time(const TimeStep &time) override
#define INSTANCE_ALL(field)
Helper struct stores data for initizalize descentants of FieldAlgorithmBase.
void init_from_input(const Input::Record &rec)
Initialize actual values of the field given from the given Input::Record rec.
Value::return_type r_value_
double unit_conversion_coefficient_
Coeficient of conversion of user-defined unit.
void init_from_input(const Input::Record &rec, const struct FieldAlgoBaseInitData &init_data)
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)