LifeV
ETA_Blocks2DTest.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  @file ETA_Blocks2DTest.cpp
28  @author L. Pasquale <luca.pasquale@mail.polimi.it>
29  @date 2012-11-20
30 */
31 
32 #ifndef __ETA_ABLOCKS2DTEST_H
33 #define __ETA_ABLOCKS2DTEST_H 1
34 
35 
36 
37 #include <Epetra_ConfigDefs.h>
38 #ifdef EPETRA_MPI
39 #include <mpi.h>
40 #include <Epetra_MpiComm.h>
41 #else
42 #include <Epetra_SerialComm.h>
43 #endif
44 
45 
46 #include <lifev/core/LifeV.hpp>
47 
48 #include <lifev/core/mesh/MeshPartitioner.hpp>
49 #include <lifev/core/mesh/RegionMesh2DStructured.hpp>
50 #include <lifev/core/mesh/RegionMesh.hpp>
51 
52 #include <lifev/core/array/MatrixEpetra.hpp>
53 #include <lifev/core/array/VectorEpetra.hpp>
54 
55 #include <lifev/core/array/MatrixEpetraStructured.hpp>
56 #include <lifev/core/array/VectorEpetraStructured.hpp>
57 
58 #include <boost/shared_ptr.hpp>
59 
60 #include <lifev/core/fem/FESpace.hpp>
61 
62 #include <lifev/core/util/LifeChrono.hpp>
63 
64 
65 // ---------------------------------------------------------------
66 // We work in the LifeV namespace and define the mesh, matrix and
67 // vector types that we will need several times.
68 // ---------------------------------------------------------------
69 
70 /*!
71  @class ETA_Blocks2DTest
72  @brief Simple ETA test to compute a block matrix associated to the Stokes problem
73 
74  @author L. Pasquale <luca.pasquale@mail.polimi.it>
75 
76  This test computes the matrix and teh RHS vector associated to the Stokes problem: \n
77  \f$
78  \left\{\begin{array}{ll}
79  - \delta u + \nabla p = f \\
80  \nabla \cdot u=0
81  \end{array}\right. \mathrm{in} (-1,1)\mathrm{x}(-1,1)
82  \f$ \n
83  with \f$u\f$ a scalar field approximated with P2 functions and p approximated with P1 \n
84 */
86  // :
87  // public LifeV::Application
88 {
89 public:
90 
91  /* @name Constructors and destructor
92  */
93  //@{
94 
95  //! Constructor
97 
98 
99  //! Destructor
101 
102  //@}
103 
104  /* @name Methods
105  */
106  //@{
107 
108  //! To lunch the simulation
109  std::vector<LifeV::Real> run();
110 
111  //@}
112 
113 
114 private:
116  bool M_verbose;
117 
118 };
119 
120 #endif /* __ETA_ABLOCKS2DTEST_H */
std::shared_ptr< Epetra_Comm > M_comm
std::vector< LifeV::Real > run()
To lunch the simulation.
ETA_Blocks2DTest()
Constructor.
~ETA_Blocks2DTest()
Destructor.
Simple ETA test to compute a block matrix associated to the Stokes problem.