Nalu
Nalu: a generalized unstructured massively parallel low Mach flow code designed to support a variety of energy applications of interest (most notably Wind ECP) built on the Sierra Toolkit and Trilinos solver Tpetra/Epetra stack. The open source BSD, clause 3 license model has been chosen for the code base. See LICENSE for more information. http://NaluCFD.org
QuadratureRule.h
Go to the documentation of this file.
1 /*------------------------------------------------------------------------*/
2 /* Copyright 2014 Sandia Corporation. */
3 /* This software is released under the license detailed */
4 /* in the file, LICENSE, which is located in the top-level Nalu */
5 /* directory structure */
6 /*------------------------------------------------------------------------*/
7 #ifndef QuadratureRule_h
8 #define QuadratureRule_h
9 
10 #include <vector>
11 #include <Teuchos_SerialDenseVector.hpp>
12 
13 namespace sierra{
14 namespace nalu{
15 
16  // <abscissae, weights>
17  std::pair<std::vector<double>, std::vector<double>>
18  gauss_legendre_rule(int order);
19 
20  // <abscissae, weights>
21  std::pair<std::vector<double>, std::vector<double>>
22  gauss_lobatto_legendre_rule(int order, double xleft = -1.0, double xright = +1.0);
23 
24  // <abscissae, weights>
25  std::pair<std::vector<double>, std::vector<double>>
26  SGL_quadrature_rule(int order, std::vector<double> scsEndLocations);
27 
28  // a vector with -1 added at the first entry and +1 added at the last entry
29  std::vector<double> pad_end_points(std::vector<double> x, double xleft = -1.0, double xright = +1.0);
30 
31 } // namespace nalu
32 } // namespace Sierra
33 
34 #endif
std::vector< double > pad_end_points(std::vector< double > x, double xleft, double xright)
Definition: QuadratureRule.C:308
Definition: ABLForcingAlgorithm.C:26
std::pair< std::vector< double >, std::vector< double > > gauss_legendre_rule(int order)
Definition: QuadratureRule.C:63
std::pair< std::vector< double >, std::vector< double > > SGL_quadrature_rule(int order, std::vector< double > scsEndLocations)
Definition: QuadratureRule.C:272
std::pair< std::vector< double >, std::vector< double > > gauss_lobatto_legendre_rule(int order, double xleft, double xright)
Definition: QuadratureRule.C:171