Flow123d  JS_before_hm-2087-gb06a8f5d8
Public Member Functions | Public Attributes | List of all members
FieldAddPotential< spacedim, Value >::FieldFactory Class Reference

#include <field_add_potential.hh>

Inheritance diagram for FieldAddPotential< spacedim, Value >::FieldFactory:
Inheritance graph
[legend]
Collaboration diagram for FieldAddPotential< spacedim, Value >::FieldFactory:
Collaboration graph
[legend]

Public Member Functions

 FieldFactory (arma::vec::fixed< spacedim+1 > potential, std::string field_name)
 Constructor. More...
 
Field< spacedim, Value >::FieldBasePtr create_field (Input::Record rec, const FieldCommon &) override
 
bool is_active_field_descriptor (const Input::Record &in_rec, FMT_UNUSED const std::string &input_name) override
 
- Public Member Functions inherited from Field< spacedim, Value >::FactoryBase
virtual bool is_active_field_descriptor (const Input::Record &in_rec, const std::string &input_name)
 

Public Attributes

arma::vec::fixed< spacedim+1 > potential_
 
std::string field_name_
 

Detailed Description

template<int spacedim, class Value>
class FieldAddPotential< spacedim, Value >::FieldFactory

Factory class (descendant of Field<...>::FactoryBase) that is necessary for setting pressure values are piezometric head values.

Definition at line 111 of file field_add_potential.hh.

Constructor & Destructor Documentation

◆ FieldFactory()

template<int spacedim, class Value >
FieldAddPotential< spacedim, Value >::FieldFactory::FieldFactory ( arma::vec::fixed< spacedim+1 >  potential,
std::string  field_name 
)
inline

Constructor.

Definition at line 114 of file field_add_potential.hh.

Member Function Documentation

◆ create_field()

template<int spacedim, class Value >
Field<spacedim,Value>::FieldBasePtr FieldAddPotential< spacedim, Value >::FieldFactory::create_field ( Input::Record  rec,
const FieldCommon field 
)
inlineoverridevirtual

Default method that creates an instance of FieldBase for field.

Reads key given by field_name and creates the field instance using FieldBase<...>::function_factory.

Reimplemented from Field< spacedim, Value >::FactoryBase.

Definition at line 119 of file field_add_potential.hh.

◆ is_active_field_descriptor()

template<int spacedim, class Value >
bool FieldAddPotential< spacedim, Value >::FieldFactory::is_active_field_descriptor ( const Input::Record in_rec,
FMT_UNUSED const std::string &  input_name 
)
inlineoverride

Definition at line 128 of file field_add_potential.hh.

Member Data Documentation

◆ field_name_

template<int spacedim, class Value >
std::string FieldAddPotential< spacedim, Value >::FieldFactory::field_name_

Definition at line 133 of file field_add_potential.hh.

◆ potential_

template<int spacedim, class Value >
arma::vec::fixed<spacedim+1> FieldAddPotential< spacedim, Value >::FieldFactory::potential_

Definition at line 132 of file field_add_potential.hh.


The documentation for this class was generated from the following file: