LifeV
SetOfFun.hpp
Go to the documentation of this file.
1 //@HEADER
2 /*
3 *******************************************************************************
4 
5  Copyright (C) 2004, 2005, 2007 EPFL, Politecnico di Milano, INRIA
6  Copyright (C) 2010 EPFL, Politecnico di Milano, Emory University
7 
8  This file is part of LifeV.
9 
10  LifeV is free software; you can redistribute it and/or modify
11  it under the terms of the GNU Lesser General Public License as published by
12  the Free Software Foundation, either version 3 of the License, or
13  (at your option) any later version.
14 
15  LifeV is distributed in the hope that it will be useful,
16  but WITHOUT ANY WARRANTY; without even the implied warranty of
17  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
18  Lesser General Public License for more details.
19 
20  You should have received a copy of the GNU Lesser General Public License
21  along with LifeV. If not, see <http://www.gnu.org/licenses/>.
22 
23 *******************************************************************************
24 */
25 //@HEADER
26 
27 /*!
28  @file
29  @brief Quadrature Rule test
30 
31  @author Samuel Quinodoz <samuel.quinodoz@epfl.ch>
32  @author Umberto Villa <uvilla@emory.edu>
33  @contributor
34  @maintainer Umberto Villa <uvilla@emory.edu>
35 
36  @date 02-03-2010
37 
38 Definition of all the polynomials we need to integrate to check the degree of exactness.
39 The last function is an exponential function to check the convergence rate
40 
41 
42 */
43 
44 #ifndef SETOFFUN_HPP_
45 #include <lifev/core/LifeV.hpp>
46 
47 namespace LifeV
48 {
49 class SetofFun
50 {
51 public:
52  SetofFun();
53  Real val (int fun, Real& x, Real& y, Real& z);
54  UInt degree (UInt fun);
55  Real ex_int (UInt fun);
56  std::string name (UInt fun);
57  UInt nfun();
58 private:
59  int _i;
63 };
64 }
65 #define SETOFFUN_HPP_
66 
67 
68 #endif /* SETOFFUN_HPP_ */
std::vector< std::string > _name
Definition: SetOfFun.hpp:61
std::vector< Real > _integral
Definition: SetOfFun.hpp:60
Real ex_int(UInt fun)
Definition: SetOfFun.cpp:236
void updateInverseJacobian(const UInt &iQuadPt)
std::vector< UInt > _degree
Definition: SetOfFun.hpp:62
std::string name(UInt fun)
Definition: SetOfFun.cpp:226
double Real
Generic real data.
Definition: LifeV.hpp:175
UInt degree(UInt fun)
Definition: SetOfFun.cpp:231
Real val(int fun, Real &x, Real &y, Real &z)
Definition: SetOfFun.cpp:153
uint32_type UInt
generic unsigned integer (used mainly for addressing)
Definition: LifeV.hpp:191