18 #ifndef FE_VALUE_HANDLER_HH_ 19 #define FE_VALUE_HANDLER_HH_ 37 std::shared_ptr<DOFHandlerMultiDim>
dh;
51 template <
int elemdim,
int spacedim,
class Value>
76 this->boundary_dofs_ = boundary_dofs;
82 unsigned int ndofs = this->value_.n_rows() * this->value_.n_cols();
85 Idx* mem_ptr =
const_cast<Idx*
>(&((*boundary_dofs_)[ndofs*cell_idx]));
86 return LocDofVec(mem_ptr, ndofs,
false,
false);
90 std::shared_ptr<DOFHandlerMultiDim>
dh_;
111 template <
int spacedim,
class Value>
119 : value_(r_value_) {}
128 v_list.push_back(r_value_);
129 this->value_list(point_list, elm, v_list);
130 this->r_value_ = v_list[0];
131 return this->r_value_;
143 this->boundary_dofs_ = boundary_dofs;
149 unsigned int ndofs = this->value_.n_rows() * this->value_.n_cols();
152 Idx* mem_ptr =
const_cast<Idx*
>(&((*boundary_dofs_)[ndofs*cell_idx]));
153 return LocDofVec(mem_ptr, ndofs,
false,
false);
158 std::shared_ptr<DOFHandlerMultiDim>
dh_;
unsigned int comp_index
index of component (of vector_value/tensor_value)
VectorMPI data_vec_
Store data of Field.
unsigned int comp_index_
Index of component (of vector_value/tensor_value)
LocDofVec get_loc_dof_indices(unsigned int cell_idx) const
TODO: Temporary solution. Fix problem with merge new DOF handler and boundary Mesh. Will be removed in future.
LocDofVec get_loc_dof_indices(unsigned int cell_idx) const
TODO: Temporary solution. Fix problem with merge new DOF handler and boundary Mesh. Will be removed in future.
Armor::ArmaVec< double, spacedim > Point
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
FEValueHandler()
Constructor.
std::shared_ptr< std::vector< Idx > > boundary_dofs_
Value::return_type r_value_
Space< spacedim >::Point Point
Provides the numbering of the finite element degrees of freedom on the computational mesh...
ArrayMatSet set(uint index)
std::shared_ptr< DOFHandlerMultiDim > dh_
DOF handler object.
unsigned int ndofs
number of dofs
std::shared_ptr< DOFHandlerMultiDim > dh
DOF handler object.
~FEValueHandler()
Destructor.
typename arma::Col< Type >::template fixed< nr > ArmaVec
Value value_
Last value, prevents passing large values (vectors) by value.
std::shared_ptr< std::vector< Idx > > boundary_dofs_
void set_boundary_dofs_vector(std::shared_ptr< std::vector< Idx > > boundary_dofs)
TODO: Temporary solution. Fix problem with merge new DOF handler and boundary Mesh. Will be removed in future.
VectorMPI data_vec_
Store data of Field.
Value::return_type r_value_
VectorMPI data_vec
Store data of Field.
Abstract class for description of finite elements.
std::shared_ptr< DOFHandlerMultiDim > dh_
DOF handler object.
void set_boundary_dofs_vector(std::shared_ptr< std::vector< Idx > > boundary_dofs)
TODO: Temporary solution. Fix problem with merge new DOF handler and boundary Mesh. Will be removed in future.
unsigned int n_comp
number of components
Initialization structure of FEValueHandler class.
arma::Col< Idx > LocDofVec