hexed 0.3.0
 
Loading...
Searching...
No Matches
hexed::Elem_average Class Reference

computes the average of the provided Qpoint_func within the element by Gaussian quadrature More...

#include <Element_func.hpp>

Inheritance diagram for hexed::Elem_average:
hexed::Element_func hexed::Qpoint_func hexed::Output_data

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_varth variable (for plotting) when called on n_dim-dimensional input
 
std::vector< double > operator() (Element &elem, const Basis &, double time) const override
 
- Public Member Functions inherited from hexed::Element_func
std::vector< double > operator() (Element &, const Basis &, int i_qpoint, double time) const override
 

Detailed Description

computes the average of the provided Qpoint_func within the element by Gaussian quadrature

Constructor & Destructor Documentation

◆ Elem_average()

hexed::Elem_average::Elem_average ( const Qpoint_func & func)
Parameters
funcfunction you want to compute the average of

Member Function Documentation

◆ n_var()

int hexed::Elem_average::n_var ( int n_dim) const
overridevirtual

number of output variables when called on n_dim-dimensional input

Implements hexed::Output_data.

◆ operator()()

std::vector< double > hexed::Elem_average::operator() ( Element & elem,
const Basis & ,
double time ) const
overridevirtual

Implements hexed::Element_func.

◆ variable_name()

std::string hexed::Elem_average::variable_name ( int n_dim,
int i_var ) const
inlineoverridevirtual

name of i_varth variable (for plotting) when called on n_dim-dimensional input

Reimplemented from hexed::Output_data.


The documentation for this class was generated from the following files: