Flow123d
release_2.2.0-914-gf1a3a4f
|
#include <field.hh>
Public Types | |
typedef FieldAlgorithmBase< spacedim, Value >::Point | Point |
typedef FieldAlgorithmBase< spacedim, Value > | FactoryBaseType |
Public Types inherited from FieldAlgorithmBase< spacedim, Value > | |
typedef Space< spacedim >::Point | Point |
Public Member Functions | |
FieldFE (unsigned int n_comp=0) | |
void | set_fe_data (std::shared_ptr< DOFHandlerMultiDim > dh, MappingP1< 1, 3 > *map1, MappingP1< 2, 3 > *map2, MappingP1< 3, 3 > *map3, VectorSeqDouble *data) |
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) |
virtual void | init_from_input (const Input::Record &rec, const struct FieldAlgoBaseInitData &init_data) |
bool | set_time (const TimeStep &time) override |
void | set_mesh (const Mesh *mesh, bool boundary_domain) override |
void | fill_data_to_cache (ElementDataCache< double > &output_data_cache) |
unsigned int | data_size () const |
virtual | ~FieldFE () |
Destructor. More... | |
Public Member Functions inherited from FieldAlgorithmBase< spacedim, Value > | |
FieldAlgorithmBase (unsigned int n_comp=0) | |
void | set_component_idx (unsigned int idx) |
unsigned int | n_comp () const |
FieldResult | field_result () const |
virtual double | next_change_time () |
virtual | ~FieldAlgorithmBase () |
Static Public Member Functions | |
static const Input::Type::Record & | get_input_type () |
Implementation. More... | |
static const Input::Type::Selection & | get_disc_selection_input_type () |
Static Public Member Functions inherited from FieldAlgorithmBase< spacedim, Value > | |
static std::string | template_name () |
static Input::Type::Abstract & | get_input_type () |
static const Input::Type::Instance & | get_input_type_instance (Input::Type::Selection value_selection=Input::Type::Selection()) |
static const Input::Type::Record & | get_field_algo_common_keys () |
static std::shared_ptr< FieldAlgorithmBase< spacedim, Value > > | function_factory (const Input::AbstractRecord &rec, const struct FieldAlgoBaseInitData &init_data) |
Private Member Functions | |
void | make_dof_handler (const Mesh *mesh) |
Create DofHandler object. More... | |
void | interpolate (ElementDataCache< double >::ComponentDataPtr data_vec) |
Interpolate data over all elements of target mesh. More... | |
void | calculate_native_values (ElementDataCache< double >::ComponentDataPtr data_cache) |
Calculate native data over all elements of target mesh. More... | |
Private Attributes | |
std::shared_ptr< DOFHandlerMultiDim > | dh_ |
DOF handler object. More... | |
VectorSeqDouble * | data_vec_ |
Store data of Field. More... | |
std::vector< IdxInt > | dof_indices_ |
Array of indexes to data_vec_, used for get/set values. More... | |
FEValueHandler< 1, spacedim, Value > | value_handler1_ |
Value handler that allows get value of 1D elements. More... | |
FEValueHandler< 2, spacedim, Value > | value_handler2_ |
Value handler that allows get value of 2D elements. More... | |
FEValueHandler< 3, spacedim, Value > | value_handler3_ |
Value handler that allows get value of 3D elements. More... | |
FiniteElement< 1, 3 > * | fe1_ |
FiniteElement< 2, 3 > * | fe2_ |
Same as previous, but represents 2D element. More... | |
FiniteElement< 3, 3 > * | fe3_ |
Same as previous, but represents 3D element. More... | |
FilePath | reader_file_ |
mesh reader file More... | |
std::string | field_name_ |
field name read from input More... | |
OutputTime::DiscreteSpace | discretization_ |
Specify section where to find the field data in input mesh file. More... | |
FieldFlag::Flags | flags_ |
Field flags. More... | |
Static Private Attributes | |
static const int | registrar |
Registrar of class to factory. More... | |
Additional Inherited Members | |
Static Public Attributes inherited from FieldAlgorithmBase< spacedim, Value > | |
static const unsigned int | spacedim_ =spacedim |
static constexpr bool | is_enum_valued = boost::is_same<typename Value::element_type, FieldEnum>::value |
Protected Member Functions inherited from FieldAlgorithmBase< spacedim, Value > | |
void | init_unit_conversion_coefficient (const Input::Record &rec, const struct FieldAlgoBaseInitData &init_data) |
Init value of unit_conversion_coefficient_ from input. More... | |
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... | |
double | unit_conversion_coefficient_ |
Coeficient of conversion of user-defined unit. More... | |
Class representing fields given by finite element approximation.
typedef FieldAlgorithmBase<spacedim, Value> FieldFE< spacedim, Value >::FactoryBaseType |
Definition at line 47 of file field_fe.hh.
typedef FieldAlgorithmBase<spacedim, Value>::Point FieldFE< spacedim, Value >::Point |
Definition at line 46 of file field_fe.hh.
Default constructor, optionally we need number of components n_comp
in the case of Vector valued fields.
Definition at line 79 of file field_fe.cc.
|
private |
Calculate native data over all elements of target mesh.
Definition at line 308 of file field_fe.cc.
|
inline |
Return size of vector of data stored in Field
Definition at line 116 of file field_fe.hh.
void FieldFE< spacedim, Value >::fill_data_to_cache | ( | ElementDataCache< double > & | output_data_cache | ) |
Copy data vector to given output ElementDataCache
Definition at line 334 of file field_fe.cc.
|
static |
Return Input selection for discretization type (determines the section of VTK file).
Definition at line 60 of file field_fe.cc.
|
static |
Implementation.
Return Record for initialization of FieldFE that is derived from Abstract
Definition at line 42 of file field_fe.cc.
|
virtual |
Initialization from the input interface.
Reimplemented from FieldAlgorithmBase< spacedim, Value >.
Definition at line 166 of file field_fe.cc.
|
private |
Interpolate data over all elements of target mesh.
Definition at line 256 of file field_fe.cc.
|
private |
Create DofHandler object.
Definition at line 194 of file field_fe.cc.
void FieldFE< spacedim, Value >::set_fe_data | ( | std::shared_ptr< DOFHandlerMultiDim > | dh, |
MappingP1< 1, 3 > * | map1, | ||
MappingP1< 2, 3 > * | map2, | ||
MappingP1< 3, 3 > * | map3, | ||
VectorSeqDouble * | data | ||
) |
Setter for the finite element data. The mappings are required for computation of local coordinates.
dh | Dof handler. |
map1 | 1D mapping. |
map2 | 2D mapping. |
map3 | 3D mapping. |
data | Vector of dof values. |
Definition at line 87 of file field_fe.cc.
|
overridevirtual |
Set target mesh.
Reimplemented from FieldAlgorithmBase< spacedim, Value >.
Definition at line 182 of file field_fe.cc.
|
overridevirtual |
Update time and possibly update data from GMSH file.
Reimplemented from FieldAlgorithmBase< spacedim, Value >.
Definition at line 226 of file field_fe.cc.
|
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 121 of file field_fe.cc.
|
virtual |
Returns std::vector of scalar values in several points at once.
Implements FieldAlgorithmBase< spacedim, Value >.
Definition at line 143 of file field_fe.cc.
|
private |
Store data of Field.
Definition at line 137 of file field_fe.hh.
|
private |
DOF handler object.
Definition at line 135 of file field_fe.hh.
|
private |
Specify section where to find the field data in input mesh file.
Definition at line 166 of file field_fe.hh.
|
private |
Array of indexes to data_vec_, used for get/set values.
Definition at line 139 of file field_fe.hh.
|
private |
Used in DOFHandler::distribute_dofs method. Represents 1D element.
For correct functionality must be created proper descendant of FiniteElement class.
Definition at line 153 of file field_fe.hh.
|
private |
Same as previous, but represents 2D element.
Definition at line 155 of file field_fe.hh.
|
private |
Same as previous, but represents 3D element.
Definition at line 157 of file field_fe.hh.
field name read from input
Definition at line 163 of file field_fe.hh.
|
private |
Field flags.
Definition at line 169 of file field_fe.hh.
mesh reader file
Definition at line 160 of file field_fe.hh.
Registrar of class to factory.
Definition at line 172 of file field_fe.hh.
|
private |
Value handler that allows get value of 1D elements.
Definition at line 142 of file field_fe.hh.
|
private |
Value handler that allows get value of 2D elements.
Definition at line 144 of file field_fe.hh.
|
private |
Value handler that allows get value of 3D elements.
Definition at line 146 of file field_fe.hh.