Go to the documentation of this file.
18 #ifndef FIELD_ADD_POTENTIAL_HH_
19 #define FIELD_ADD_POTENTIAL_HH_
39 return arma::dot(gravity, coords) + pressure;
48 template <
int spacedim,
class Value>
Field< 3, FieldValue< 3 >::Scalar > & inner_field_
Field< spacedim, Value >::FieldBasePtr create_field(Input::Record rec, const FieldCommon &) override
Sclr operator()(Vect gravity, Vect coords, Sclr pressure)
Field< 3, FieldValue< 3 >::VectorFixed > & gravity_
bool is_active_field_descriptor(const Input::Record &in_rec, FMT_UNUSED const std::string &input_name) override
Common abstract parent of all Field<...> classes.
std::shared_ptr< FieldBaseType > FieldBasePtr
Class template representing a field with values dependent on: point, element, and region.
AddPotentialFactory(Field< 3, FieldValue< 3 >::VectorFixed > &gravity, FieldCoords &coords, Field< 3, FieldValue< 3 >::Scalar > &inner_field)
Constructor.