LifeV
Laplacian.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 Laplacian Analytical Solution
29  @brief This file contains the exact solution and some additive function for testing codes
30 
31  @author Gwenol Grandperrin <gwenol.grandperrin@epfl.ch>
32  @maintainer Gwenol Grandperrin <gwenol.grandperrin@epfl.ch>
33 
34  @date 2011-08-03
35 
36  Exact solution for the problem \f$-\Delta\mathbf{u}=\mathbf{f} on the cube [0,1]x[0,1]x[0,1].
37  */
38 
39 #ifndef LAPLACIAN_HPP
40 #define LAPLACIAN_HPP 1
41 
42 #include <lifev/core/LifeV.hpp>
43 
44 namespace LifeV
45 {
46 
47 class Laplacian
48 {
49 public:
50  static Real f ( const Real& t, const Real& x, const Real& y,
51  const Real& z, const ID& i );
52  static Real uexact ( const Real& t, const Real& x, const Real& y,
53  const Real& z, const ID& i );
54 
55  static Real duexactdx ( const Real& t, const Real& x, const Real& y,
56  const Real& z, const ID& i );
57 
58  static Real duexactdy ( const Real& t, const Real& x, const Real& y,
59  const Real& z, const ID& i );
60 
61  static Real duexactdz ( const Real& t, const Real& x, const Real& y,
62  const Real& z, const ID& i );
63 
64  static void setModes ( const Int& xMode, const Int& yMode, const Int& zMode );
65 
66 private:
67  static Int M_xMode;
68  static Int M_yMode;
69  static Int M_zMode;
70 
71 }; // class Laplacian
72 
73 } // namespace LifeV
74 
75 #endif /* LAPLACIAN_HPP */
int32_type Int
Generic integer data.
Definition: LifeV.hpp:188
void updateInverseJacobian(const UInt &iQuadPt)
uint32_type ID
IDs.
Definition: LifeV.hpp:194
double Real
Generic real data.
Definition: LifeV.hpp:175