48 template <
int spacedim,
class Value>
128 void set_mesh(
const Mesh *mesh,
bool boundary_domain)
override;
186 template <
unsigned int dim>
190 unsigned int i_dof,
unsigned int i_qp,
unsigned int comp_index);
194 std::shared_ptr<DOFHandlerMultiDim>
dh_;
257 template <
int spacedim,
class Value>
258 std::shared_ptr<FieldFE<spacedim, Value> >
create_field_fe(std::shared_ptr<DOFHandlerMultiDim> dh,
259 unsigned int comp = 0,
263 std::shared_ptr< FieldFE<spacedim, Value> > field_ptr = std::make_shared< FieldFE<spacedim, Value> >();
265 field_ptr->set_fe_data( dh, comp, dh->create_vector() );
267 field_ptr->set_fe_data( dh, comp, *
vec );
274 template <
int spacedim,
class Value>
278 std::shared_ptr<DOFHandlerMultiDim> dh_par = std::make_shared<DOFHandlerMultiDim>(mesh);
279 std::shared_ptr<DiscreteSpace> ds = std::make_shared<EqualOrderDiscreteSpace>( &mesh, fe);
280 dh_par->distribute_dofs(ds);
282 return create_field_fe<spacedim,Value>(dh_par);
virtual ~FieldFE()
Destructor.
Declaration of class which handles the ordering of degrees of freedom (dof) and mappings between loca...
void interpolate_gauss(ElementDataCache< double >::ComponentDataPtr data_vec)
Interpolate data (use Gaussian distribution) over all elements of target mesh.
FEValueHandler< 0, spacedim, Value > value_handler0_
Value handler that allows get value of 0D elements.
std::shared_ptr< std::vector< T > > ComponentDataPtr
P0 interpolation (with the use of calculation of intersections)
MixedPtr< FiniteElement > fe_
void calculate_equivalent_values(ElementDataCache< double >::ComponentDataPtr data_cache)
Calculate data of equivalent_mesh interpolation on input over all elements of target mesh...
std::vector< FEValues< spacedim > > fe_values_
List of FEValues objects of dimensions 0,1,2,3 used for value calculation.
std::string field_name_
field name read from input
FEValueHandler< 2, spacedim, Value > value_handler2_
Value handler that allows get value of 2D elements.
VectorMPI data_vec_
Store data of Field.
FilePath reader_file_
mesh reader file
Directing class of FieldValueCache.
Helper struct stores data for initizalize descentants of FieldAlgorithmBase.
FieldAlgorithmBase< spacedim, Value >::Point Point
Class FESystem for compound finite elements.
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
static const Input::Type::Selection & get_interp_selection_input_type()
void fill_boundary_dofs()
FieldAlgorithmBase< spacedim, Value > FactoryBaseType
Base class for quadrature rules on simplices in arbitrary dimensions.
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...
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.
Quadrature init_quad(std::shared_ptr< EvalPoints > eval_points)
Initialize FEValues object of given dimension.
Armor::ArmaMat< typename Value::element_type, Value::NRows_, Value::NCols_ > handle_fe_shape(unsigned int dim, unsigned int i_dof, unsigned int i_qp, unsigned int comp_index)
DataInterpolation interpolation_
Specify type of FE data interpolation.
Definitions of basic Lagrangean finite elements with polynomial shape functions.
void interpolate_intersection(ElementDataCache< double >::ComponentDataPtr data_vec)
Interpolate data (use intersection library) over all elements of target mesh.
std::shared_ptr< std::vector< IntIdx > > boundary_dofs_
void cache_update(FieldValueCache< typename Value::element_type > &data_cache, ElementCacheMap &cache_map, unsigned int region_idx) override
virtual Value::return_type const & value(const Point &p, const ElementAccessor< spacedim > &elm)
void local_to_ghost_data_scatter_begin()
Call begin scatter functions (local to ghost) on data vector.
Space< spacedim >::Point Point
void local_to_ghost_data_scatter_end()
Call end scatter functions (local to ghost) on data vector.
VectorMPI set_fe_data(std::shared_ptr< DOFHandlerMultiDim > dh, unsigned int component_index=0, VectorMPI dof_values=VectorMPI::sequential(0))
typename arma::Mat< Type >::template fixed< nr, nc > ArmaMat
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.
std::shared_ptr< DOFHandlerMultiDim > get_dofhandler() const
static const Input::Type::Selection & get_disc_selection_input_type()
Input::Record in_rec_
Accessor to Input::Record.
FieldFE(unsigned int n_comp=0)
std::shared_ptr< std::vector< LongIdx > > source_target_mesh_elm_map_
Maps element indices between source (data) and target (computational) mesh if data interpolation is s...
virtual void value_list(const Armor::array &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)
Abstract class for description of finite elements.
equivalent mesh (default value)
void calculate_native_values(ElementDataCache< double >::ComponentDataPtr data_cache)
Calculate native data over all elements of target mesh.
FieldFlag::Flags flags_
Field flags.
std::shared_ptr< FieldFE< spacedim, Value > > create_field_fe(std::shared_ptr< DOFHandlerMultiDim > dh, unsigned int comp=0, VectorMPI *vec=nullptr)
Representation of one time step..
void make_dof_handler(const Mesh *mesh)
Create DofHandler object.
Implementation of range helper class.
void native_data_to_cache(ElementDataCache< double > &output_data_cache)
static VectorMPI sequential(unsigned int size)
P0 interpolation (with the use of Gaussian distribution)
unsigned int n_comp() const
void calculate_identic_values(ElementDataCache< double >::ComponentDataPtr data_cache)
Calculate data of identict_mesh interpolation on input data over all elements of target mesh...