computes the average of the provided Qpoint_func
within the element by Gaussian quadrature
More...
#include <Element_func.hpp>
Public Member Functions | |
Elem_average (const Qpoint_func &func) | |
Elem_average (Qpoint_func &&)=delete | |
can't accept temporaries because that could create a dangling reference | |
int | n_var (int n_dim) const override |
number of output variables when called on n_dim -dimensional input | |
std::string | variable_name (int n_dim, int i_var) const override |
name of i_var th variable (for plotting) when called on n_dim -dimensional input | |
std::vector< double > | operator() (Element &elem, const Basis &, double time) const override |
![]() | |
std::vector< double > | operator() (Element &, const Basis &, int i_qpoint, double time) const override |
computes the average of the provided Qpoint_func
within the element by Gaussian quadrature
hexed::Elem_average::Elem_average | ( | const Qpoint_func & | func | ) |
func | function you want to compute the average of |
|
overridevirtual |
number of output variables when called on n_dim
-dimensional input
Implements hexed::Output_data.
|
overridevirtual |
–
Implements hexed::Element_func.
|
inlineoverridevirtual |
name of i_var
th variable (for plotting) when called on n_dim
-dimensional input
Reimplemented from hexed::Output_data.