Flow123d
release_3.0.0-973-g92f55e826
|
Go to the documentation of this file.
32 const arma::vec &point,
33 unsigned int comp_index)
const
35 OLD_ASSERT(basis_index < this->
dim(),
"Index of basis function is out of range.");
38 if (basis_index>0 && comp_index==basis_index-1)
39 return point[comp_index]-1;
41 return point[comp_index];
46 const arma::vec &point,
47 unsigned int comp_index)
const
49 OLD_ASSERT(basis_index < this->
dim(),
"Index of basis function is out of range.");
63 template<
unsigned int dim>
66 arma::vec::fixed<dim> sp;
69 this->function_space_ = make_shared<RT0_space>(dim);
71 for (
unsigned int sid=0; sid<RefElement<dim>::n_sides; ++sid)
74 for (
unsigned int i=0; i<RefElement<dim>::n_nodes_per_side; ++i)
78 arma::vec::fixed<dim+1> bsp;
79 bsp.subvec(1,dim) = sp;
80 bsp[0] = 1. - arma::sum(sp);
84 this->component_indices_.clear();
85 this->nonzero_components_.resize(this->dofs_.size(),
std::vector<bool>(this->n_components(),
true));
87 this->compute_node_matrix();
Raviart-Thomas element of order 0.
Class RefElement defines numbering of vertices, sides, calculation of normal vectors etc.
const double basis_value(unsigned int basis_index, const arma::vec &point, unsigned int comp_index) const override
Value of the i th basis function at point point.
Definitions of Raviart-Thomas finite elements.
Class FEValues calculates finite element data on the actual cells such as shape function values,...
Definitions of particular quadrature rules on simplices.
RT0_space(unsigned int dim)
unsigned int space_dim_
Space dimension of function arguments (i.e. 1, 2 or 3).
unsigned int n_components_
Number of components of function values.
const unsigned int dim() const override
Dimension of function space (number of basis functions).
const arma::vec basis_grad(unsigned int basis_index, const arma::vec &point, unsigned int comp_index) const override
Gradient of the i th basis function at point point.