Flow123d
JS_before_hm-2115-gf629a871a
|
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>
90 template <
int spacedim,
class Value>
114 FieldFactory(arma::vec::fixed<spacedim+1> potential, std::string field_name)
122 return std::make_shared< FieldAddPotential<3, FieldValue<3>::Scalar > >(
potential_, field_a_rec);
155 void set_mesh(
const Mesh *mesh,
bool boundary_domain)
override;
Armor::ArmaVec< double, spacedim > Point
virtual const Value::return_type & value(const Point &p, const ElementAccessor< spacedim > &elm)
Field< 3, FieldValue< 3 >::Scalar > & inner_field_
void set_mesh(const Mesh *mesh, bool boundary_domain) override
Implements FieldAlgirithmBase::set_mesh.
unsigned int n_comp() const
bool set_time(const TimeStep &time) override
Field< spacedim, Value >::FieldBasePtr create_field(Input::Record rec, const FieldCommon &) override
Field< spacedim, Value >::FieldBasePtr create_field(Input::Record rec, const FieldCommon &) override
arma::vec::fixed< spacedim > grad_
Potential gradient.
Sclr operator()(Vect gravity, Vect coords, Sclr pressure)
FieldFactory(arma::vec::fixed< spacedim+1 > potential, std::string field_name)
Constructor.
FieldAddPotential(const arma::vec::fixed< spacedim+1 > &potential_grad, const Input::AbstractRecord &rec, unsigned int n_comp=0)
Field< 3, FieldValue< 3 >::VectorFixed > & gravity_
bool is_active_field_descriptor(const Input::Record &in_rec, FMT_UNUSED const std::string &input_name) override
double zero_level_
Potential constant term.
Representation of one time step..
Common abstract parent of all Field<...> classes.
bool is_active_field_descriptor(const Input::Record &in_rec, FMT_UNUSED const std::string &input_name) override
arma::vec::fixed< spacedim+1 > potential_
virtual ~FieldAddPotential()
std::shared_ptr< FieldBaseType > FieldBasePtr
Field< spacedim, Value >::FactoryBase FactoryBaseType
virtual void value_list(const Armor::array &point_list, const ElementAccessor< spacedim > &elm, std::vector< typename Value::return_type > &value_list)
Class template representing a field with values dependent on: point, element, and region.
Space< spacedim >::Point Point
std::shared_ptr< FieldAlgorithmBase< spacedim, Value > > inner_field_
Field to which we add linear potential.
AddPotentialFactory(Field< 3, FieldValue< 3 >::VectorFixed > &gravity, FieldCoords &coords, Field< 3, FieldValue< 3 >::Scalar > &inner_field)
Constructor.