LifeV
laplacianSource.hpp
Go to the documentation of this file.
1 /* -*- mode: c++ -*-
2 
3  This file is part of the LifeV Applications.
4 
5  Copyright (C) 2015 EPFL
6 
7  This program is free software; you can redistribute it and/or modify
8  it under the terms of the GNU General Public License as published by
9  the Free Software Foundation; either version 2.1 of the License, or
10  (at your option) any later version.
11 
12  This program is distributed in the hope that it will be useful, but
13  WITHOUT ANY WARRANTY; without even the implied warranty of
14  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
15  General Public License for more details.
16 
17  You should have received a copy of the GNU General Public License
18  along with this program; if not, write to the Free Software
19  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
20  USA
21  */
22 /*!
23  @file laplacianSource.hpp
24  @author Niccolo' Dal Santo <niccolo.dalsanto@epfl.ch>
25  @date 2015-01-19
26  */
27 
28 #ifndef LAPLACIANSOURCE_HPP
29 #define LAPLACIANSOURCE_HPP
30 
31 #include <lifev/core/LifeV.hpp>
32 
33 
34 namespace LifeV
35 {
36 
38 {
39 public:
40  typedef Real return_Type;
41 
42  return_Type operator() ( const VectorSmall<3> spaceCoordinates )
43  {
44 
45  Real x = spaceCoordinates[0];
46  Real y = spaceCoordinates[1];
47  Real z = spaceCoordinates[2];
48 
49  return 3 * M_PI * M_PI * sin( M_PI * x ) * sin( M_PI * y ) * sin( M_PI * z );
50  }
51 
55 };
56 
57 } // end namespace LifeV
58 
59 #endif // LAPLACIANSOURCE_HPP
laplacianSource(const laplacianSource &)
#define M_PI
Definition: winmath.h:20
void updateInverseJacobian(const UInt &iQuadPt)
double Real
Generic real data.
Definition: LifeV.hpp:175
return_Type operator()(const VectorSmall< 3 > spaceCoordinates)