Flow123d
JS_before_hm-2198-g122e1f2e2
|
Go to the documentation of this file.
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>
58 this->init_unit_conversion_coefficient(rec, init_data);
62 this->limits_ = init_data.
limits_;
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",
74 in_rec_.address_string());
77 this->r_value_ = table_function.
value( time.
end() );
78 this->value_.scale(this->unit_conversion_coefficient_);
80 this->check_field_limits(this->in_rec_, init_data);
FieldTimeFunction(unsigned int n_comp=0)
static const Input::Type::Record & get_input_type()
bool set_time(const TimeStep &time) override
void init_from_input(const Input::Record &rec, const struct FieldAlgoBaseInitData &init_data) override
#define FLOW123D_FORCE_LINK_IN_CHILD(x)
std::pair< double, double > limits_
Helper struct stores data for initizalize descentants of FieldAlgorithmBase.
Representation of one time step..
Class for representation SI units of Fields.
#define WarningOut()
Macro defining 'warning' record of log.
#define INSTANCE_ALL(field)
const return_type & value(double t)
void init_from_input(const Input::Record &rec, const TimeStep &time)
Initialize actual values of the field given from the given Input::Record rec.