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>
bool is_active_field_descriptor(const Input::Record &in_rec, FMT_UNUSED const std::string &input_name) override
Field< 3, FieldValue< 3 >::VectorFixed > & gravity_
AddPotentialFactory(Field< 3, FieldValue< 3 >::VectorFixed > &gravity, FieldCoords &coords, Field< 3, FieldValue< 3 >::Scalar > &inner_field)
Constructor.
Field< 3, FieldValue< 3 >::Scalar > & inner_field_
Field< spacedim, Value >::FieldBasePtr create_field(Input::Record rec, const FieldCommon &) override
Common abstract parent of all Field<...> classes.
Class template representing a field with values dependent on: point, element, and region.
std::shared_ptr< FieldBaseType > FieldBasePtr
Sclr operator()(Vect gravity, Vect coords, Sclr pressure)