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

#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_varth variable is equal to value
 

Detailed Description

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.

Constructor & Destructor Documentation

◆ Vis_data()

hexed::Vis_data::Vis_data ( Element & elem,
const Qpoint_func & func,
const Basis & basis,
double time = 0. )
Parameters
elemElement for which visualization is to be performed
funcComputes variables to be visualized
basisBasis with which to perform interp/extrapolation
timeFlow time used to compute output variables

Member Function Documentation

◆ compute_contour()

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_varth variable is equal to value

the number of sample points in each direction is 2*n_div + 1

◆ edges()

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]

◆ interior()

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]))

◆ qpoints()

const Eigen::VectorXd & hexed::Vis_data::qpoints ( )
inline

return function evaluated at quadrature points.

layout: [n_var][n_qpoint]

◆ sample()

Eigen::MatrixXd hexed::Vis_data::sample ( Eigen::MatrixXd ref_coords)

sample the function at a set of points given in reference coordinates

Parameters
ref_coordsreference coordinates of sample points. layout: [n_sample][n_dim]
Returns
values of visualization variables at sample points. layout: [n_sample][n_var]

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