Computes data to be visualized for a single element. More...
#include <Vis_data.hpp>
Classes | |
| struct | Contour |
| stores data representing a contour line/surface More... | |
Public Member Functions | |
| Vis_data (Array< double > qpoint_data, const Basis &basis) | |
| Array< double > | sample (Array< double > coords) const |
| Samples the quadrature point data at a set of arbitrary reference coordinates. | |
| Array< double > | interior (Int n_sample) const |
| Array< double > | edges (Int n_sample) const |
interpolate function to n_sample + 1 uniformly spaced points along element edges | |
| Contour | compute_contour (int i_var, double value, Int n_div, int n_newton=4, double tol=1e-3) |
compute a contour line/surface where the i_varth 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.
| qpoint_data | Data to be visualized, at the quadrature points. |
| basis | Basis with which to perform interp/extrapolation |
| Vis_data::Contour hexed::Vis_data::compute_contour | ( | int | i_var, |
| double | value, | ||
| Int | n_div, | ||
| int | n_newton = 4, | ||
| double | tol = 1e-3 ) |
compute a contour line/surface where the i_varth variable is equal to value
the number of sample points in each direction is 2*n_div + 1
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]