8 #ifndef FIELD_ADD_POTENTIAL_HH_
9 #define FIELD_ADD_POTENTIAL_HH_
25 template <
int spacedim,
class Value>
56 std::shared_ptr< FieldAlgorithmBase<spacedim, Value> >
inner_field_;
58 arma::vec::fixed<spacedim>
grad_;
arma::vec::fixed< spacedim > grad_
Potential gradient.
FieldAddPotential(const arma::vec::fixed< spacedim+1 > &potential_grad, const Input::AbstractRecord &rec, unsigned int n_comp=0)
arma::vec::fixed< spacedim > Point
double zero_level_
Potential constant term.
virtual ~FieldAddPotential()
virtual void value_list(const std::vector< Point > &point_list, const ElementAccessor< spacedim > &elm, std::vector< typename Value::return_type > &value_list)
virtual bool set_time(double time)
std::shared_ptr< FieldAlgorithmBase< spacedim, Value > > inner_field_
Field to which we add linear potential.
virtual Value::return_type const & value(const Point &p, const ElementAccessor< spacedim > &elm)
Space< spacedim >::Point Point
unsigned int n_comp() const