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

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
 

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 ( Array< double > qpoint_data,
const Basis & basis )
Parameters
qpoint_dataData to be visualized, at the quadrature points.
basisBasis with which to perform interp/extrapolation

Member Function Documentation

◆ compute_contour()

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

◆ edges()

Array< double > hexed::Vis_data::edges ( Int n_sample) const

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]

◆ sample()

Array< double > hexed::Vis_data::sample ( Array< double > coords) const

Samples the quadrature point data at a set of arbitrary reference coordinates.

Parameters
coordsArray of reference coordinates to sample at. Layout: [n_dim][n_sample_point]
Returns
Array of data sampled at the specified points. Layout: [n_var][n_sample_point]

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