blitzdg
an open-source project aiming to implement parallel discontinuous Galerkin (dg) solvers for common partial differential equations systems using blitz++ for array and tensor manipulations and MPI for distributed parallelism.
Public Member Functions | List of all members
Nodes1DProvisioner Class Reference

Public Member Functions

 Nodes1DProvisioner (int NOrder, int NumElements, double xmin, double xmax, SparseMatrixConverter &converter, EigenSolver &eigenSolver, DirectSolver &directSolver)
 Constructor. More...
 
void buildNodes ()
 Build nodes and geometric factors for all elements.
 
void buildDr ()
 Build differentiation matrix Dr on the standard element.
 
void buildVandermondeMatrix ()
 Compute Vandermonde matrix which maps modal coefficients to nodal values.
 
void computeGradVandermonde (Array< double, 2 > &DVr)
 
Array< double, 2 > & get_xGrid ()
 Get reference to physical x-grid.
 
Array< double, 1 > & get_rGrid ()
 Get reference to r-grid on the standard element.
 
Array< double, 2 > & get_Dr ()
 Get reference to differentiation matrix Dr on the standard element.
 
Array< double, 2 > & get_V ()
 Get reference to generalized Vandermonde matrix V.
 
void computeJacobiPolynomial (Array< double, 1 > const &x, const double alpha, const double beta, const int N, Array< double, 1 > &p)
 Compute the Nth Jacobi polynomial of type (alpha,beta) > -1 ( != -0.5) and weights, w, associated with the Jacobi polynomial at the points x.
 
void computeJacobiQuadWeights (double alpha, double beta, int N, Array< double, 1 > &x, Array< double, 1 > &w)
 Compute the Nth order Gauss quadrature points, x, and weights, w, associated with the Jacobi polynomial, of type (alpha,beta) > -1 ( != -0.5).
 
void computeGaussLobottoPoints (double alpha, double beta, int N, Array< double, 1 > &x)
 Compute the Nth order Gauss Lobatto quadrature points, x, associated with the Jacobi polynomial, of type (alpha,beta) > -1 ( != -0.5).
 
void computeGradJacobi (Array< double, 1 > const &x, const double alpha, const double beta, const int N, Array< double, 1 > &dp)
 
 ~Nodes1DProvisioner ()
 Destructoructor.
 

Constructor & Destructor Documentation

Nodes1DProvisioner::Nodes1DProvisioner ( int  _NOrder,
int  _NumElements,
double  _xmin,
double  _xmax,
SparseMatrixConverter converter,
EigenSolver eigenSolver,
DirectSolver directSolver 
)

Constructor.

Takes order of polynomials, number of elements, and dimensions of the domain. Assumes equally-spaced elements.


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