#include <Vis_data.hpp>
Classes | |
struct | Contour |
stores data representing a contour line/surface More... | |
Public Member Functions | |
Vis_data (Element &elem, const Qpoint_func &func, const Basis &basis, double time=0.) | |
Eigen::VectorXd | edges (int n_sample=21) |
interpolate function to n_sample + 1 uniformly spaced points along element edges | |
Eigen::VectorXd | interior (int n_sample=21) |
interpolate function to a uniformly-spaced block of sample points n_sample on a side | |
Eigen::VectorXd | face (int i_dim, bool is_positive, int n_sample=21) |
interpolate function to a uniformly-spaced block of sample points on a specified face | |
const Eigen::VectorXd & | qpoints () |
return function evaluated at quadrature points. | |
Eigen::MatrixXd | sample (Eigen::MatrixXd ref_coords) |
sample the function at a set of points given in reference coordinates | |
Contour | compute_contour (double value, int n_div=10, int n_newton=4, double tol=1e-3) |
compute a contour line/surface where the i_var th variable is equal to value | |
Computes data to be visualized for a single element (e.g. edge positions, non-conserved variables, values at uniformly-spaced sample points) without knowing anything about the choice of visualization software.
hexed::Vis_data::Vis_data | ( | Element & | elem, |
const Qpoint_func & | func, | ||
const Basis & | basis, | ||
double | time = 0. ) |
Vis_data::Contour hexed::Vis_data::compute_contour | ( | double | value, |
int | n_div = 10, | ||
int | n_newton = 4, | ||
double | tol = 1e-3 ) |
compute a contour line/surface where the i_var
th variable is equal to value
the number of sample points in each direction is 2*n_div + 1
Eigen::VectorXd hexed::Vis_data::edges | ( | int | n_sample = 21 | ) |
interpolate function to n_sample + 1
uniformly spaced points along element edges
layout: [number of edges in element][n_var (of Qpoint_func)][n_sample]
Eigen::VectorXd hexed::Vis_data::interior | ( | int | n_sample = 21 | ) |
interpolate function to a uniformly-spaced block of sample points n_sample
on a side
layout: [n_var][n_sample]([n_sample]([n_sample]))
|
inline |
return function evaluated at quadrature points.
layout: [n_var][n_qpoint]
Eigen::MatrixXd hexed::Vis_data::sample | ( | Eigen::MatrixXd | ref_coords | ) |
sample the function at a set of points given in reference coordinates
ref_coords | reference coordinates of sample points. layout: [n_sample][n_dim] |