Squared error metric for computing \(L^2\) error of Ringleb flow. More...
#include <Domain_func.hpp>
Public Member Functions | |
Ringleb_errsq (double heat_rat=1.4) | |
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() (std::vector< double > point_pos, double point_time, std::vector< double > state) const override |
![]() | |
std::vector< double > | operator() (Element &, const Basis &, int i_qpoint, double time) const override |
std::vector< double > | operator() (std::vector< double > pos, double time, std::vector< double > state, std::vector< double > outward_normal) const override |
normal is surface unit normal vector pointing out of the surface (into the domain). | |
![]() | |
std::vector< double > | operator() (Boundary_connection &, int i_fqpoint, double time) const override |
Squared error metric for computing \(L^2\) error of Ringleb flow.
Computes the squared difference between the given position vector and what the position vector should be based on the state if the state were an exact solution. Computing the error in the state vector based on the position would be nicer, but that's actually kind of hard because it involves numerically finding roots of a somewhat ill-behaved function.
|
inlineoverridevirtual |
number of output variables when called on n_dim
-dimensional input
Implements hexed::Output_data.
|
overridevirtual |
Implements hexed::Domain_func.
|
inlineoverridevirtual |
name of i_var
th variable (for plotting) when called on n_dim
-dimensional input
Reimplemented from hexed::Output_data.