LifeV
ExpressionMetricTensor.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  @brief File containing the Expression for the metric tensor of the element
30 
31  @author Davide Forti
32  */
33 
34 #ifndef EXPRESSION_METRICTENSOR_HPP
35 #define EXPRESSION_METRICTENSOR_HPP
36 
37 #include <lifev/core/LifeV.hpp>
38 
39 #include <lifev/eta/expression/ExpressionBase.hpp>
40 
41 #include <iostream>
42 
43 namespace LifeV
44 {
45 
46 namespace ExpressionAssembly
47 {
48 
49 class ExpressionMetricTensor : public ExpressionBase< ExpressionMetricTensor >
50 {
51 public:
52 
53  //! @name Public Types
54  //@{
55 
56  typedef ExpressionBase<ExpressionMetricTensor> base_Type;
57 
58  //@}
59 
60 
61  //! @name Constructor & Destructor
62  //@{
63 
64  //! Empty Constructor
65  ExpressionMetricTensor();
66 
67  //! Copy constructor
68  ExpressionMetricTensor ( const ExpressionMetricTensor& );
69 
70  //! Destructor
71  ~ExpressionMetricTensor();
72 
73  //@}
74 
75 
76  //! @name Methods
77  //@{
78 
79  //! Display method
80  static void display (std::ostream& out = std::cout);
81 
82  //@}
83 };
84 
85 //! Instance to be used in the expressions
86 const ExpressionMetricTensor G;
87 
88 } // Namespace ExpressionAssembly
89 
90 } // Namespace LifeV
91 
92 #endif /* EXPRESSION_METRICTENSOR_HPP */
void updateInverseJacobian(const UInt &iQuadPt)
class ExpressionBase Base class (static polymorphism, CRTP sense) for all the expressions used in ass...