Flow123d
|
#include <field.hh>
Classes | |
class | FEItem |
class | NativeFactory |
Public Types | |
enum | DataInterpolation { identic_msh, equivalent_msh, gauss_p0, interp_p0 } |
typedef FieldAlgorithmBase< spacedim, Value >::Point | Point |
typedef FieldAlgorithmBase< spacedim, Value > | FactoryBaseType |
typedef Field< spacedim, Value >::FactoryBase | FieldFactoryBaseType |
Public Member Functions | |
TYPEDEF_ERR_INFO (EI_ElemIdx, unsigned int) | |
DECLARE_EXCEPTION (ExcInvalidElemeDim,<< "Dimension of element in target mesh must be 0, 1 or 2! elm.idx() = "<< EI_ElemIdx::val<< ".\n") | |
FieldFE (unsigned int n_comp=0) | |
VectorMPI | set_fe_data (std::shared_ptr< DOFHandlerMultiDim > dh, VectorMPI dof_values=VectorMPI::sequential(0), unsigned int block_index=FieldFE< spacedim, Value >::undef_uint) |
virtual const Value::return_type & | value (const Point &p, const ElementAccessor< spacedim > &elm) |
virtual void | value_list (const Armor::array &point_list, const ElementAccessor< spacedim > &elm, std::vector< typename Value::return_type > &value_list) |
void | cache_update (FieldValueCache< typename Value::element_type > &data_cache, ElementCacheMap &cache_map, unsigned int region_patch_idx) override |
void | cache_reinit (const ElementCacheMap &cache_map) override |
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 | native_data_to_cache (ElementDataCache< double > &output_data_cache) |
unsigned int | data_size () const |
std::shared_ptr< DOFHandlerMultiDim > | get_dofhandler () const |
VectorMPI & | vec () |
void | local_to_ghost_data_scatter_begin () |
Call begin scatter functions (local to ghost) on data vector. More... | |
void | local_to_ghost_data_scatter_end () |
Call end scatter functions (local to ghost) on data vector. More... | |
virtual | ~FieldFE () |
Destructor. More... | |
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 const Input::Type::Selection & | get_interp_selection_input_type () |
Static Public Attributes | |
static const unsigned int | undef_uint = -1 |
Private Member Functions | |
void | make_dof_handler (const MeshBase *mesh) |
Create DofHandler object. More... | |
void | interpolate_gauss (ElementDataCache< double >::CacheData data_vec) |
Interpolate data (use Gaussian distribution) over all elements of target mesh. More... | |
void | interpolate_intersection (ElementDataCache< double >::CacheData data_vec) |
Interpolate data (use intersection library) over all elements of target mesh. More... | |
void | calculate_native_values (ElementDataCache< double >::CacheData data_cache) |
Calculate native data over all elements of target mesh. More... | |
void | calculate_identic_values (ElementDataCache< double >::CacheData data_cache) |
Calculate data of identict_mesh interpolation on input data over all elements of target mesh. More... | |
void | calculate_equivalent_values (ElementDataCache< double >::CacheData data_cache) |
Calculate data of equivalent_mesh interpolation on input over all elements of target mesh. More... | |
template<unsigned int dim> | |
Quadrature | init_quad (std::shared_ptr< EvalPoints > eval_points) |
Initialize FEValues object of given dimension. More... | |
Armor::ArmaMat< typename Value::element_type, Value::NRows_, Value::NCols_ > | handle_fe_shape (unsigned int dim, unsigned int i_dof, unsigned int i_qp) |
template<unsigned int dim> | |
void | fill_fe_system_data (unsigned int block_index) |
template<unsigned int dim> | |
void | fill_fe_item () |
Private Attributes | |
std::shared_ptr< DOFHandlerMultiDim > | dh_ |
DOF handler object. More... | |
VectorMPI | data_vec_ |
Store data of Field. More... | |
FEValueHandler< 0, spacedim, Value > | value_handler0_ |
Value handler that allows get value of 0D elements. 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... | |
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... | |
DataInterpolation | interpolation_ |
Specify type of FE data interpolation. More... | |
FieldFlag::Flags | flags_ |
Field flags. More... | |
double | default_value_ |
Default value of element if not set in mesh data file. More... | |
Input::Record | in_rec_ |
Accessor to Input::Record. More... | |
bool | boundary_domain_ |
Is set in set_mesh method. Value true means, that we accept only boundary element accessors in the value method. More... | |
std::vector< FEValues< spacedim > > | fe_values_ |
List of FEValues objects of dimensions 0,1,2,3 used for value calculation. More... | |
std::shared_ptr< EquivalentMeshMap > | source_target_mesh_elm_map_ |
Maps element indices from computational mesh to the source (data). More... | |
std::array< FEItem, 4 > | fe_item_ |
Holds specific data of field evaluation over all dimensions. More... | |
MixedPtr< FiniteElement > | fe_ |
Static Private Attributes | |
static const int | registrar |
Registrar of class to factory. More... | |
Class representing fields given by finite element approximation.
typedef FieldAlgorithmBase<spacedim, Value> FieldFE< spacedim, Value >::FactoryBaseType |
Definition at line 54 of file field_fe.hh.
typedef Field<spacedim, Value>::FactoryBase FieldFE< spacedim, Value >::FieldFactoryBaseType |
Definition at line 55 of file field_fe.hh.
typedef FieldAlgorithmBase<spacedim, Value>::Point FieldFE< spacedim, Value >::Point |
Definition at line 53 of file field_fe.hh.
enum FieldFE::DataInterpolation |
Possible interpolations of input data.
Definition at line 60 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 133 of file field_fe.cc.
Destructor.
Definition at line 876 of file field_fe.cc.
|
override |
Overload FieldAlgorithmBase::cache_reinit
Reinit fe_values_ data member.
Definition at line 324 of file field_fe.cc.
|
override |
Overload FieldAlgorithmBase::cache_update
Definition at line 288 of file field_fe.cc.
|
private |
Calculate data of equivalent_mesh interpolation on input over all elements of target mesh.
Definition at line 782 of file field_fe.cc.
|
private |
Calculate data of identict_mesh interpolation on input data over all elements of target mesh.
Definition at line 756 of file field_fe.cc.
|
private |
Calculate native data over all elements of target mesh.
Definition at line 727 of file field_fe.cc.
Return size of vector of data stored in Field
Definition at line 840 of file field_fe.cc.
FieldFE< spacedim, Value >::DECLARE_EXCEPTION | ( | ExcInvalidElemeDim | , |
<< "Dimension of element in target mesh must be | 0 | ||
) |
|
inlineprivate |
Definition at line 250 of file field_fe.hh.
|
inlineprivate |
Definition at line 240 of file field_fe.hh.
|
static |
Return Input selection for discretization type (determines the section of VTK file).
Definition at line 92 of file field_fe.cc.
|
inline |
|
static |
Implementation.
Return Record for initialization of FieldFE that is derived from Abstract
Definition at line 61 of file field_fe.cc.
|
static |
Return Input selection that allow to set interpolation of input data.
Definition at line 104 of file field_fe.cc.
|
inlineprivate |
|
virtual |
Initialization from the input interface.
Definition at line 347 of file field_fe.cc.
|
private |
Initialize FEValues object of given dimension.
Definition at line 337 of file field_fe.cc.
|
private |
Interpolate data (use Gaussian distribution) over all elements of target mesh.
Definition at line 531 of file field_fe.cc.
|
private |
Interpolate data (use intersection library) over all elements of target mesh.
Definition at line 625 of file field_fe.cc.
void FieldFE< spacedim, Value >::local_to_ghost_data_scatter_begin |
Call begin scatter functions (local to ghost) on data vector.
Definition at line 847 of file field_fe.cc.
void FieldFE< spacedim, Value >::local_to_ghost_data_scatter_end |
Call end scatter functions (local to ghost) on data vector.
Definition at line 854 of file field_fe.cc.
|
private |
Create DofHandler object.
Definition at line 406 of file field_fe.cc.
void FieldFE< spacedim, Value >::native_data_to_cache | ( | ElementDataCache< double > & | output_data_cache | ) |
Copy data vector to given output ElementDataCache
Definition at line 821 of file field_fe.cc.
VectorMPI FieldFE< spacedim, Value >::set_fe_data | ( | std::shared_ptr< DOFHandlerMultiDim > | dh, |
VectorMPI | dof_values = VectorMPI::sequential(0) , |
||
unsigned int | block_index = FieldFE<spacedim, Value>::undef_uint |
||
) |
Setter for the finite element data.
dh | Dof handler. |
dof_values | Vector of dof values, optional (create own vector according to dofhandler). |
block_index | Index of block (in FESystem) or '-1' for FieldFE under simple DOF handler. |
Definition at line 173 of file field_fe.cc.
|
override |
Set target mesh.
Definition at line 370 of file field_fe.cc.
|
override |
Update time and possibly update data from GMSH file.
Definition at line 469 of file field_fe.cc.
FieldFE< spacedim, Value >::TYPEDEF_ERR_INFO | ( | EI_ElemIdx | , |
unsigned int | |||
) |
|
virtual |
Returns one value in one given point. ResultType can be used to avoid some costly calculation if the result is trivial.
Definition at line 237 of file field_fe.cc.
|
virtual |
Returns std::vector of scalar values in several points at once.
Definition at line 261 of file field_fe.cc.
Is set in set_mesh method. Value true means, that we accept only boundary element accessors in the value
method.
Definition at line 293 of file field_fe.hh.
Store data of Field.
Definition at line 260 of file field_fe.hh.
Default value of element if not set in mesh data file.
Definition at line 287 of file field_fe.hh.
|
private |
DOF handler object.
Definition at line 258 of file field_fe.hh.
|
private |
Specify section where to find the field data in input mesh file.
Definition at line 278 of file field_fe.hh.
|
private |
Definition at line 303 of file field_fe.hh.
|
private |
Holds specific data of field evaluation over all dimensions.
Definition at line 302 of file field_fe.hh.
|
private |
List of FEValues objects of dimensions 0,1,2,3 used for value calculation.
Definition at line 296 of file field_fe.hh.
field name read from input
Definition at line 275 of file field_fe.hh.
|
private |
Field flags.
Definition at line 284 of file field_fe.hh.
|
private |
Accessor to Input::Record.
Definition at line 290 of file field_fe.hh.
|
private |
Specify type of FE data interpolation.
Definition at line 281 of file field_fe.hh.
mesh reader file
Definition at line 272 of file field_fe.hh.
Registrar of class to factory.
Definition at line 306 of file field_fe.hh.
|
private |
Maps element indices from computational mesh to the source (data).
Definition at line 299 of file field_fe.hh.
|
static |
Definition at line 71 of file field_fe.hh.
|
private |
Value handler that allows get value of 0D elements.
Definition at line 263 of file field_fe.hh.
|
private |
Value handler that allows get value of 1D elements.
Definition at line 265 of file field_fe.hh.
|
private |
Value handler that allows get value of 2D elements.
Definition at line 267 of file field_fe.hh.
|
private |
Value handler that allows get value of 3D elements.
Definition at line 269 of file field_fe.hh.