18 #ifndef FE_VALUE_HANDLER_HH_ 19 #define FE_VALUE_HANDLER_HH_ 36 std::shared_ptr<DOFHandlerMultiDim>
dh;
50 template <
int elemdim,
int spacedim,
class Value>
63 ASSERT_PTR(map_).error(
"Uninitialized FEValueHandler!\n");
80 this->boundary_dofs_ = boundary_dofs;
87 std::shared_ptr<DOFHandlerMultiDim>
dh_;
112 template <
int spacedim,
class Value>
120 : value_(r_value_) {}
127 point_list.push_back(p);
129 v_list.push_back(r_value_);
130 this->value_list(point_list, elm, v_list);
131 this->r_value_ = v_list[0];
132 return this->r_value_;
144 this->boundary_dofs_ = boundary_dofs;
152 std::shared_ptr<DOFHandlerMultiDim>
dh_;
unsigned int comp_index
index of component (of vector_value/tensor_value)
Class MappingP1 implements the affine transformation of the unit cell onto the actual cell...
void set_boundary_dofs_vector(std::shared_ptr< std::vector< LongIdx > > boundary_dofs)
TODO: Temporary solution. Fix problem with merge new DOF handler and boundary Mesh. Will be removed in future.
unsigned int comp_index_
Index of component (of vector_value/tensor_value)
VectorMPI * data_vec
Store data of Field.
VectorMPI * data_vec_
Store data of Field.
std::vector< LongIdx > dof_indices
Array of indexes to data_vec_, used for get/set values.
Space< spacedim >::Point Point
Value value_
Last value, prevents passing large values (vectors) by value.
Value::return_type const & value(const Point &p, const ElementAccessor< spacedim > &elm)
Returns one value in one given point.
static constexpr bool value
MappingP1< elemdim, 3 > * map_
Mapping object.
FEValueHandler()
Constructor.
arma::vec::fixed< spacedim > Point
Value::return_type r_value_
Space< spacedim >::Point Point
std::vector< LongIdx > dof_indices
Array of indexes to data_vec_, used for get/set values.
std::shared_ptr< DOFHandlerMultiDim > dh_
DOF handler object.
unsigned int ndofs
number of dofs
std::shared_ptr< DOFHandlerMultiDim > dh
DOF handler object.
VectorMPI * data_vec_
Store data of Field.
~FEValueHandler()
Destructor.
MappingP1< elemdim, 3 > * get_mapping()
Return mapping object.
std::shared_ptr< std::vector< LongIdx > > boundary_dofs_
Value value_
Last value, prevents passing large values (vectors) by value.
#define ASSERT_PTR(ptr)
Definition of assert macro checking non-null pointer (PTR)
std::shared_ptr< std::vector< LongIdx > > boundary_dofs_
Value::return_type r_value_
void set_boundary_dofs_vector(std::shared_ptr< std::vector< LongIdx > > boundary_dofs)
TODO: Temporary solution. Fix problem with merge new DOF handler and boundary Mesh. Will be removed in future.
Abstract class for description of finite elements.
std::shared_ptr< DOFHandlerMultiDim > dh_
DOF handler object.
unsigned int n_comp
number of components
Initialization structure of FEValueHandler class.