Flow123d
jenkins-Flow123d-windows-release-multijob-285
|
#include <field_add_potential.hh>
Classes | |
class | FieldFactory |
Public Types | |
typedef Field< spacedim, Value >::FactoryBase | FactoryBaseType |
typedef Space< spacedim >::Point | Point |
Public Types inherited from FieldAlgorithmBase< spacedim, Value > | |
typedef Space< spacedim >::Point | Point |
typedef Value | ValueType |
Public Member Functions | |
FieldAddPotential (const arma::vec::fixed< spacedim+1 > &potential_grad, const Input::AbstractRecord &rec, unsigned int n_comp=0) | |
virtual Value::return_type const & | value (const Point &p, const ElementAccessor< spacedim > &elm) |
virtual void | value_list (const std::vector< Point > &point_list, const ElementAccessor< spacedim > &elm, std::vector< typename Value::return_type > &value_list) |
bool | set_time (const TimeStep &time) override |
virtual | ~FieldAddPotential () |
Public Member Functions inherited from FieldAlgorithmBase< spacedim, Value > | |
FieldAlgorithmBase (unsigned int n_comp=0) | |
virtual void | init_from_input (const Input::Record &rec) |
virtual void | set_mesh (const Mesh *mesh, bool boundary_domain) |
void | set_component_idx (unsigned int idx) |
unsigned int | n_comp () const |
FieldResult | field_result () const |
virtual double | next_change_time () |
virtual | ~FieldAlgorithmBase () |
Private Attributes | |
std::shared_ptr< FieldAlgorithmBase< spacedim, Value > > | inner_field_ |
Field to which we add linear potential. More... | |
arma::vec::fixed< spacedim > | grad_ |
Potential gradient. More... | |
double | zero_level_ |
Potential constant term. More... | |
Additional Inherited Members | |
Static Public Member Functions inherited from FieldAlgorithmBase< spacedim, Value > | |
static std::string | template_name () |
static Input::Type::AbstractRecord | get_input_type (const typename Value::ElementInputType *element_input_type=nullptr) |
static std::shared_ptr< FieldAlgorithmBase< spacedim, Value > > | function_factory (const Input::AbstractRecord &rec, unsigned int n_comp=0) |
Static Public Attributes inherited from FieldAlgorithmBase< spacedim, Value > | |
static const unsigned int | spacedim_ =spacedim |
static Input::Type::AbstractRecord | input_type |
Protected Attributes inherited from FieldAlgorithmBase< spacedim, Value > | |
TimeStep | time_ |
Actual time level; initial value is -infinity. More... | |
Value | value_ |
Last value, prevents passing large values (vectors) by value. More... | |
Value::return_type | r_value_ |
FieldResult | field_result_ |
Indicator of particular values (zero, one) constant over space. More... | |
unsigned int | component_idx_ |
Specify if the field is part of a MultiField and which component it is. More... | |
This field is meant to be used to implement two possibilities for initialization of pressure fields in Darcy flows. You can either use pressure of piezo-metric head which are related by adding gravity potential. For various reasons we use pressure as the primary variable, so if the user enters piezo-head we need to add the potential to the field he/she has provided. This is done by this class. Unfortunately it introduce one more level of indirection, namely one more virtual call for getting the field value.
Definition at line 29 of file field_add_potential.hh.
typedef Field<spacedim, Value>::FactoryBase FieldAddPotential< spacedim, Value >::FactoryBaseType |
Definition at line 31 of file field_add_potential.hh.
typedef Space<spacedim>::Point FieldAddPotential< spacedim, Value >::Point |
Definition at line 32 of file field_add_potential.hh.
FieldAddPotential< spacedim, Value >::FieldAddPotential | ( | const arma::vec::fixed< spacedim+1 > & | potential_grad, |
const Input::AbstractRecord & | rec, | ||
unsigned int | n_comp = 0 |
||
) |
Definition at line 15 of file field_add_potential.impl.hh.
|
virtual |
Definition at line 71 of file field_add_potential.impl.hh.
|
overridevirtual |
Update time and possibly update data.
Reimplemented from FieldAlgorithmBase< spacedim, Value >.
Definition at line 63 of file field_add_potential.impl.hh.
|
virtual |
Returns one value in one given point. ResultType can be used to avoid some costly calculation if the result is trivial.
Implements FieldAlgorithmBase< spacedim, Value >.
Definition at line 29 of file field_add_potential.impl.hh.
|
virtual |
Returns std::vector of scalar values in several points at once.
Implements FieldAlgorithmBase< spacedim, Value >.
Definition at line 47 of file field_add_potential.impl.hh.
|
private |
Potential gradient.
Definition at line 93 of file field_add_potential.hh.
|
private |
Field to which we add linear potential.
Definition at line 91 of file field_add_potential.hh.
|
private |
Potential constant term.
Definition at line 95 of file field_add_potential.hh.