LifeV
ReferenceFE.cpp
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 Base structure for a reference finite element
30 
31  @author Jean-Frederic Gerbeau
32  @date 00-04-2002
33 
34  @contributor Samuel Quinodoz <samuel.quinodoz@epfl.ch>
35  @mantainer Samuel Quinodoz <samuel.quinodoz@epfl.ch>
36  */
37 
38 #include <lifev/core/fem/ReferenceFE.hpp>
39 
40 namespace LifeV
41 {
42 
43 // ===================================================
44 // Constructors & Destructor
45 // ===================================================
46 
47 ReferenceFE::ReferenceFE ( std::string name, FE_TYPE type, ReferenceShapes shape,
48  Int nbDofPerVertex, Int nbDofPerEdge, Int nbDofPerFace,
49  Int nbDofPerVolume, Int nbDof, Int nbLocalCoor, Int FEDim, const function_Type* phi,
50  const function_Type* dPhi, const function_Type* d2Phi, const function_Type* divPhi , const Real* refCoor,
51  DofPatternType patternType,
52  const ReferenceFE* bdRefFE ) :
53  ReferenceElement ( name, shape, nbDof, nbLocalCoor, FEDim, phi, dPhi, d2Phi, divPhi, refCoor ),
54  DOFLocalPattern ( nbDof, nbDofPerVertex, nbDofPerEdge, nbDofPerFace, nbDofPerVolume, patternType, nbLocalCoor ),
55  M_boundaryFE ( bdRefFE ), M_type ( type )
56 {}
57 
59 {}
60 
61 
62 
63 }
virtual ~ReferenceFE()
Destructor.
Definition: ReferenceFE.cpp:58
ReferenceElement - The basis class for the geometric mapping and the reference finite elements...
DofPatternType
Local pattern type.
DOFLocalPattern(const UInt &nbLocalDof, const UInt &nbDofPerVertex, const UInt &nbDofPerEdge, const UInt &nbDofPerFace, const UInt &nbDofPerVolume, const DofPatternType &patternType, UInt nbLocalCoor)
Full constructor.
int32_type Int
Generic integer data.
Definition: LifeV.hpp:188
void updateInverseJacobian(const UInt &iQuadPt)
const FE_TYPE M_type
Type of finite element (FE_P1_2D, ..., see the #define at the beginning of refFE.h.
DOFLocalPattern - A class to store the "couplings" between the basis functions.
const ReferenceFE * M_boundaryFE
Reference to the boundary finite element.
double Real
Generic real data.
Definition: LifeV.hpp:175
The class for a reference Lagrangian finite element.
ReferenceFE(std::string name, FE_TYPE type, ReferenceShapes shape, Int nbDofPerVertex, Int nbDofPerEdge, Int nbDofPerFace, Int nbDofPerVolume, Int nbDof, Int nbLocalCoor, Int FEDim, const function_Type *phi, const function_Type *dPhi, const function_Type *d2Phi, const function_Type *divPhi, const Real *refCoor, DofPatternType patternType, const ReferenceFE *bdRefFE)
Constructor of a reference Lagrangian finite element.
Definition: ReferenceFE.cpp:47
ReferenceElement(std::string name, ReferenceShapes shape, UInt nbDof, UInt nbLocalCoor, UInt feDim, const function_Type *phi, const function_Type *dPhi, const function_Type *d2Phi, const function_Type *divPhi, const Real *refCoor)
Full constructor.