LifeV
core/testsuite/fe_function/user_fun.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  @author A. Fumagalli <alessio.fumagalli@mail.polimi.it>
30  @date 2010-07-29
31 */
32 
33 #ifndef __user_fun_H
34 #define __user_fun_H 1
35 
36 #include "fefct.hpp"
37 
38 namespace dataProblem
39 {
40 
41 using namespace LifeV;
42 
43 // ===================================================
44 //! Typedef
45 // ===================================================
46 
50 
52 
53 typedef Exporter < regionMesh_Type > exporter_Type;
55 
58 
61 
64 
67 
70 
71 // ===================================================
72 //! Data
73 // ===================================================
74 
75 class MyFun : public FEScalarFct_Type
76 {
77 public:
78  virtual Real eval ( const UInt& iElem,
79  const FEScalarFct_Type::point_Type& P,
80  const Real& time = 0. ) const;
81 };
82 
83 } // Namespace dataProblem
84 
85 #endif /* __user_fun_H */
std::shared_ptr< FEVectorField_Type > FEVectorFieldPtr_Type
FESpace - Short description here please!
Definition: FESpace.hpp:78
std::shared_ptr< FESpace_Type > FESpacePtr_Type
std::shared_ptr< FEScalarFct_Type > FEScalarFctPtr_Type
RegionMesh< geoElement_Type > regionMesh_Type
FESpace< regionMesh_Type, map_Type > FESpace_Type
virtual Real eval(const UInt &iElem, const FEScalarFct_Type::point_Type &P, const Real &time=0.) const
Abstract virtual eval function.
std::shared_ptr< FEScalarField_Type > FEScalarFieldPtr_Type
FEScalarField - This class gives an abstract implementation of a finite element scalar field...
Definition: FEField.hpp:307
Epetra_Import const & importer()
Getter for the Epetra_Import.
Definition: MapEpetra.cpp:394
std::vector< FEVectorFieldPtr_Type > FEVectorFieldPtrContainer_Type
Definition: FEFunction.hpp:100
FEFunction< regionMesh_Type, map_Type, Real > FEScalarFct_Type
std::shared_ptr< regionMesh_Type > regionMeshPtr_Type
double Real
Generic real data.
Definition: LifeV.hpp:175
FEVectorField< regionMesh_Type, map_Type > FEVectorField_Type
FEVectorField - This class gives an abstract implementation of a finite element vector field...
Definition: FEField.hpp:405
std::shared_ptr< exporter_Type > exporterPtr_Type
A Geometric Shape.
std::shared_ptr< FEVectorFct_Type > FEVectorFctPtr_Type
Exporter< regionMesh_Type > exporter_Type
FEScalarField< regionMesh_Type, map_Type > FEScalarField_Type
FEFunction< regionMesh_Type, map_Type, Vector > FEVectorFct_Type
uint32_type UInt
generic unsigned integer (used mainly for addressing)
Definition: LifeV.hpp:191
LinearTetra geoElement_Type
Typedef.