25 #ifndef field_algo_base_HH_ 26 #define field_algo_base_HH_ 31 #include <boost/type_traits.hpp> 69 limits_(
std::make_pair(-
std::numeric_limits<double>::max(),
std::numeric_limits<double>::max()) ),
85 template <
int spacedim,
class Value>
90 static const unsigned int spacedim_=spacedim;
104 static std::string template_name();
128 static std::shared_ptr< FieldAlgorithmBase<spacedim, Value> >
147 virtual bool set_time(
const TimeStep &time);
155 virtual void set_mesh(
const Mesh *mesh,
bool boundary_domain);
161 { this->component_idx_ = idx; }
166 unsigned int n_comp()
const;
173 {
return field_result_;}
181 {
ASSERT(
false).error(
"Not implemented yet.");
return 0.0; }
TimeStep time_
Actual time level; initial value is -infinity.
virtual double next_change_time()
unsigned int component_idx_
Specify if the field is part of a MultiField and which component it is.
FieldResult field_result_
Indicator of particular values (zero, one) constant over space.
Helper struct stores data for initizalize descentants of FieldAlgorithmBase.
#define ASSERT(expr)
Allow use shorter versions of macro names if these names is not used with external library...
Value::return_type r_value_
Basic time management class.
static constexpr bool value
double unit_conversion_coefficient_
Coeficient of conversion of user-defined unit.
FieldResult field_result() const
arma::vec::fixed< spacedim > Point
FieldAlgoBaseInitData(std::string field_name, unsigned int n_comp, const UnitSI &unit_si)
Simplified constructor, set limit values automatically (used in unit tests)
Space< spacedim >::Point Point
Value value_
Last value, prevents passing large values (vectors) by value.
virtual ~FieldAlgorithmBase()
void set_component_idx(unsigned int idx)
std::pair< double, double > limits_
FieldAlgoBaseInitData(std::string field_name, unsigned int n_comp, const UnitSI &unit_si, std::pair< double, double > limits, FieldFlag::Flags flags)
Full constructor.
Class for representation SI units of Fields.
Representation of one time step..