36 template<
unsigned int dim,
unsigned int spacedim>
class MappingP1;
37 template <
int elemdim,
int spacedim,
class Value>
class FEValueHandler;
44 template <
int spacedim,
class Value>
74 void set_fe_data(std::shared_ptr<DOFHandlerMultiDim> dh,
86 void set_native_dh(std::shared_ptr<DOFHandlerMultiDim> dh)
override;
114 void set_mesh(
const Mesh *mesh,
bool boundary_domain)
override;
148 std::shared_ptr<DOFHandlerMultiDim>
dh_;
virtual ~FieldFE()
Destructor.
Declaration of class which handles the ordering of degrees of freedom (dof) and mappings between loca...
virtual void value_list(const std::vector< Point > &point_list, const ElementAccessor< spacedim > &elm, std::vector< typename Value::return_type > &value_list)
FEValueHandler< 0, spacedim, Value > value_handler0_
Value handler that allows get value of 0D elements.
std::shared_ptr< std::vector< T > > ComponentDataPtr
void interpolate(ElementDataCache< double >::ComponentDataPtr data_vec)
Interpolate data over all elements of target mesh.
VectorSeqDouble * data_vec_
Store data of Field.
std::string field_name_
field name read from input
void fill_data_to_cache(ElementDataCache< double > &output_data_cache)
FEValueHandler< 2, spacedim, Value > value_handler2_
Value handler that allows get value of 2D elements.
FilePath reader_file_
mesh reader file
Helper struct stores data for initizalize descentants of FieldAlgorithmBase.
FieldAlgorithmBase< spacedim, Value >::Point Point
static const int registrar
Registrar of class to factory.
void set_mesh(const Mesh *mesh, bool boundary_domain) override
double default_value_
Default value of element if not set in mesh data file.
FEValueHandler< 3, spacedim, Value > value_handler3_
Value handler that allows get value of 3D elements.
bool set_time(const TimeStep &time) override
FiniteElement< 3 > * fe3_
Same as previous, but represents 3D element.
FieldAlgorithmBase< spacedim, Value > FactoryBaseType
unsigned int data_size() const
bool boundary_domain_
Is set in set_mesh method. Value true means, that we accept only boundary element accessors in the va...
void set_native_dh(std::shared_ptr< DOFHandlerMultiDim > dh) override
OutputTime::DiscreteSpace discretization_
Specify section where to find the field data in input mesh file.
std::shared_ptr< DOFHandlerMultiDim > dh_
DOF handler object.
static const Input::Type::Record & get_input_type()
Implementation.
virtual Value::return_type const & value(const Point &p, const ElementAccessor< spacedim > &elm)
Affine mapping between reference and actual cell.
Space< spacedim >::Point Point
void reinit_fe_data(MappingP1< 1, 3 > *map1, MappingP1< 2, 3 > *map2, MappingP1< 3, 3 > *map3)
Ensure data setting of methods set_fe_data and set_native_dh.
bool has_compatible_mesh_
Flag that determines if source mesh and target mesh are compatible.
void set_fe_data(std::shared_ptr< DOFHandlerMultiDim > dh, MappingP1< 1, 3 > *map1, MappingP1< 2, 3 > *map2, MappingP1< 3, 3 > *map3, VectorSeqDouble *data)
FEValueHandler< 1, spacedim, Value > value_handler1_
Value handler that allows get value of 1D elements.
Dedicated class for storing path to input and output files.
FiniteElement< 1 > * fe1_
Same as previous, but represents 1D element.
static const Input::Type::Selection & get_disc_selection_input_type()
FiniteElement< 2 > * fe2_
Same as previous, but represents 2D element.
Input::Record in_rec_
Accessor to Input::Record.
FieldFE(unsigned int n_comp=0)
std::vector< LongIdx > dof_indices_
Array of indexes to data_vec_, used for get/set values.
FiniteElement< 0 > * fe0_
virtual void init_from_input(const Input::Record &rec, const struct FieldAlgoBaseInitData &init_data)
void calculate_native_values(ElementDataCache< double >::ComponentDataPtr data_cache)
Calculate native data over all elements of target mesh.
FieldFlag::Flags flags_
Field flags.
Representation of one time step..
void make_dof_handler(const Mesh *mesh)
Create DofHandler object.
unsigned int n_comp() const