19 #ifndef QUADRATURE_HH_ 20 #define QUADRATURE_HH_ 48 template<
unsigned int dim>
55 Quadrature(
const unsigned int n_quadrature_points = 0);
74 void resize(
const unsigned int n_q_points);
77 const unsigned int size()
const;
80 arma::vec::fixed<dim>
point(
const unsigned int i)
const;
90 void set_point(
const unsigned int i,
const arma::vec::fixed<dim> &p);
93 double weight(
const unsigned int i)
const;
99 void set_weight(
const unsigned int i,
const double w);
120 template<
unsigned int dim>
126 template<
unsigned int dim>
132 template<
unsigned int dim>
139 template<
unsigned int dim>
144 template<
unsigned int dim>
146 const unsigned int i)
const {
150 template<
unsigned int dim>
155 template<
unsigned int dim>
161 template<
unsigned int dim>
166 template<
unsigned int dim>
171 template<
unsigned int dim>
177 template<
unsigned int dim>
181 template<
unsigned int dim>
inline 222 arma::vec::fixed<dim+1> el_bar_coords, final_bar;
224 for (
unsigned int k=0; k<subq.
size(); k++)
228 arma::vec::fixed<dim> pp;
231 for (
unsigned int i=0; i<RefElement<dim>::n_nodes_per_side; i++) {
arma::vec::fixed< dim > point(const unsigned int i) const
Returns the ith quadrature point.
void set_weight(const unsigned int i, const double w)
Sets individual quadrature weight.
Mat< Type, nr, nc > get(uint i) const
std::vector< double > weights
List of weights to the quadrature points.
Quadrature(const unsigned int n_quadrature_points=0)
Constructor.
Base class for quadrature rules on simplices in arbitrary dimensions.
const Armor::array & get_points() const
Return a reference to the whole array of quadrature points.
virtual ~Quadrature()
Virtual destructor.
double weight(const unsigned int i) const
Returns the ith weight.
void resize(const unsigned int n_q_points)
Modify the number of quadrature points.
void set_point(const unsigned int i, const arma::vec::fixed< dim > &p)
Sets individual quadrature point coordinates.
const unsigned int size() const
Returns number of quadrature points.
const std::vector< double > & get_weights() const
Return a reference to the whole array of weights.
static BaryPoint local_to_bary(const LocalPoint &lp)
Converts from local to barycentric coordinates.
Class RefElement defines numbering of vertices, sides, calculation of normal vectors etc...
Armor::array quadrature_points
List of quadrature points.