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 IntIdx* mem_ptr =
const_cast<IntIdx*
>(&((*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 IntIdx* mem_ptr =
const_cast<IntIdx*
>(&((*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.
std::shared_ptr< std::vector< IntIdx > > boundary_dofs_
unsigned int comp_index_
Index of component (of vector_value/tensor_value)
arma::Col< IntIdx > LocDofVec
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.
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
void set_boundary_dofs_vector(std::shared_ptr< std::vector< IntIdx > > boundary_dofs)
TODO: Temporary solution. Fix problem with merge new DOF handler and boundary Mesh. Will be removed in future.
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.
VectorMPI data_vec_
Store data of Field.
Value::return_type r_value_
void set_boundary_dofs_vector(std::shared_ptr< std::vector< IntIdx > > boundary_dofs)
TODO: Temporary solution. Fix problem with merge new DOF handler and boundary Mesh. Will be removed in future.
std::shared_ptr< std::vector< IntIdx > > boundary_dofs_
VectorMPI data_vec
Store data of Field.
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.