21 #ifndef field_algo_base_HH_
22 #define field_algo_base_HH_
27 #include <boost/type_traits.hpp>
52 template <
int spacedim,
class Value>
90 static std::shared_ptr< FieldAlgorithmBase<spacedim, Value> >
117 virtual void set_mesh(
const Mesh *mesh,
bool boundary_domain);
122 unsigned int n_comp()
const;
137 {
ASSERT(0,
"Not implemented yet.");
return 0.0; }
virtual double next_change_time()
FieldResult field_result_
Indicator of particular values (zero, one) constant over space.
virtual void value_list(const std::vector< Point > &point_list, const ElementAccessor< spacedim > &elm, std::vector< typename Value::return_type > &value_list)=0
virtual Value::return_type const & value(const Point &p, const ElementAccessor< spacedim > &elm)=0
Value::return_type r_value_
FieldResult field_result() const
static Input::Type::AbstractRecord get_input_type(const typename Value::ElementInputType *element_input_type=nullptr)
arma::vec::fixed< spacedim > Point
static std::shared_ptr< FieldAlgorithmBase< spacedim, Value > > function_factory(const Input::AbstractRecord &rec, unsigned int n_comp=0)
Space< spacedim >::Point Point
FieldResult
Result type have sense only for larger Value types like vectors and tensors.
virtual bool set_time(double time)
FieldAlgorithmBase(unsigned int n_comp=0)
Value value_
Last value, prevents passing large values (vectors) by value.
static Input::Type::AbstractRecord input_type
virtual void set_mesh(const Mesh *mesh, bool boundary_domain)
virtual ~FieldAlgorithmBase()
static const unsigned int spacedim_
static std::string template_name()
unsigned int n_comp() const
virtual void init_from_input(const Input::Record &rec)
double time_
Actual time level; initial value is -infinity.