Class for computation of data on cell and side.
More...
#include <element_values.hh>
|
| ElementValues (Quadrature &_quadrature, UpdateFlags _flags, unsigned int dim) |
| Constructor. More...
|
|
| ~ElementValues () |
| Correct deallocation of objects created by 'initialize' methods. More...
|
|
void | reinit (const ElementAccessor< spacedim > &cell) |
| Update cell-dependent data (gradients, Jacobians etc.) More...
|
|
void | reinit (const Side &cell_side) |
| Update side-dependent data (Jacobians etc.) More...
|
|
UpdateFlags | update_each (UpdateFlags flags) |
| Determine quantities to be recomputed on each cell. More...
|
|
double | determinant (const unsigned int point_no) const |
| Return the relative volume change of the cell (Jacobian determinant). More...
|
|
arma::mat | jacobian (const unsigned int point_no) const |
| Return Jacobian matrix at point point_no . More...
|
|
arma::mat | inverse_jacobian (const unsigned int point_no) const |
| Return inverse Jacobian matrix at point point_no . More...
|
|
double | JxW (const unsigned int point_no) const |
| Return the product of Jacobian determinant and the quadrature weight at given quadrature point. More...
|
|
double | side_JxW (const unsigned int point_no) const |
| Return the product of side Jacobian determinant and the quadrature weight at given quadrature point. More...
|
|
arma::vec::fixed< spacedim > | point (const unsigned int point_no) const |
| Return coordinates of the quadrature point in the actual cell system. More...
|
|
const Armor::array & | point_list () const |
| Return coordinates of all quadrature points in the actual cell system. More...
|
|
arma::vec::fixed< spacedim > | normal_vector (unsigned int point_no) |
| Returns the normal vector to a side at given quadrature point. More...
|
|
unsigned int | n_points () |
| Returns the number of quadrature points. More...
|
|
const ElementAccessor< spacedim > & | cell () const |
| Return cell at which the values were reinited. More...
|
|
const Side & | side () const |
| Return cell side where the values were reinited. More...
|
|
template<unsigned int spacedim>
class ElementValues< spacedim >
Class for computation of data on cell and side.
Definition at line 128 of file element_values.hh.
◆ ElementValues()
template<unsigned int spacedim>
Constructor.
Initializes structures and calculates cell-independent data. The quadrature can have dimension either dim or dim-1 (for values on side). In the later case also normal vectors and side jacobians are computed.
- Parameters
-
_quadrature | The quadrature rule. |
_flags | The update flags. |
dim | Dimension of space of reference cell. |
Definition at line 159 of file element_values.cc.
◆ ~ElementValues()
template<unsigned int spacedim>
Correct deallocation of objects created by 'initialize' methods.
Definition at line 205 of file element_values.cc.
◆ cell()
template<unsigned int spacedim>
◆ determinant()
template<unsigned int spacedim>
double ElementValues< spacedim >::determinant |
( |
const unsigned int |
point_no | ) |
const |
|
inline |
Return the relative volume change of the cell (Jacobian determinant).
If dim==spacedim then the sign may be negative, otherwise the result is a positive number.
- Parameters
-
point_no | Number of the quadrature point. |
Definition at line 182 of file element_values.hh.
◆ fill_data()
template<unsigned int spacedim>
template<unsigned int dim>
◆ fill_side_data()
template<unsigned int spacedim>
template<unsigned int dim>
◆ init_ref_data()
template<unsigned int spacedim>
◆ inverse_jacobian()
template<unsigned int spacedim>
arma::mat ElementValues< spacedim >::inverse_jacobian |
( |
const unsigned int |
point_no | ) |
const |
|
inline |
◆ jacobian()
template<unsigned int spacedim>
arma::mat ElementValues< spacedim >::jacobian |
( |
const unsigned int |
point_no | ) |
const |
|
inline |
◆ JxW()
template<unsigned int spacedim>
double ElementValues< spacedim >::JxW |
( |
const unsigned int |
point_no | ) |
const |
|
inline |
Return the product of Jacobian determinant and the quadrature weight at given quadrature point.
- Parameters
-
point_no | Number of the quadrature point. |
Definition at line 208 of file element_values.hh.
◆ n_points()
template<unsigned int spacedim>
◆ normal_vector()
template<unsigned int spacedim>
arma::vec::fixed<spacedim> ElementValues< spacedim >::normal_vector |
( |
unsigned int |
point_no | ) |
|
|
inline |
Returns the normal vector to a side at given quadrature point.
- Parameters
-
point_no | Number of the quadrature point. |
Definition at line 249 of file element_values.hh.
◆ point()
template<unsigned int spacedim>
arma::vec::fixed<spacedim> ElementValues< spacedim >::point |
( |
const unsigned int |
point_no | ) |
const |
|
inline |
Return coordinates of the quadrature point in the actual cell system.
- Parameters
-
point_no | Number of the quadrature point. |
Definition at line 231 of file element_values.hh.
◆ point_list()
template<unsigned int spacedim>
Return coordinates of all quadrature points in the actual cell system.
Definition at line 238 of file element_values.hh.
◆ reinit() [1/2]
template<unsigned int spacedim>
Update cell-dependent data (gradients, Jacobians etc.)
- Parameters
-
Definition at line 215 of file element_values.cc.
◆ reinit() [2/2]
template<unsigned int spacedim>
Update side-dependent data (Jacobians etc.)
- Parameters
-
cell_side | The actual cell and side. |
Definition at line 244 of file element_values.cc.
◆ side()
template<unsigned int spacedim>
◆ side_JxW()
template<unsigned int spacedim>
double ElementValues< spacedim >::side_JxW |
( |
const unsigned int |
point_no | ) |
const |
|
inline |
Return the product of side Jacobian determinant and the quadrature weight at given quadrature point.
- Parameters
-
point_no | Number of the quadrature point. |
Definition at line 220 of file element_values.hh.
◆ update_each()
template<unsigned int spacedim>
Determine quantities to be recomputed on each cell.
- Parameters
-
flags | Flags that indicate what has to be recomputed. |
Definition at line 133 of file element_values.cc.
◆ data
template<unsigned int spacedim>
◆ dim_
template<unsigned int spacedim>
◆ n_points_
template<unsigned int spacedim>
◆ n_sides_
template<unsigned int spacedim>
◆ ref_data
template<unsigned int spacedim>
◆ side_ref_data
template<unsigned int spacedim>
The documentation for this class was generated from the following files: