Logo  0.95.0-final
Finite Element Embedded Library and Language in C++
Feel++ Feel++ on Github Feel++ community
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
air.hpp
1 /* -*- mode: c++; coding: utf-8; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4; show-trailing-whitespace: t -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4
2 
3  This file is part of the Feel library
4 
5  Author(s): Christophe Prud'homme <christophe.prudhomme@feelpp.org>
6  Date: 2008-05-25
7 
8  Copyright (C) 2008 Université Joseph Fourier (Grenoble I)
9 
10  This library is free software; you can redistribute it and/or
11  modify it under the terms of the GNU Lesser General Public
12  License as published by the Free Software Foundation; either
13  version 3.0 of the License, or (at your option) any later version.
14 
15  This library 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
21  License along with this library; if not, write to the Free Software
22  Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
23 */
29 #include <cmath>
30 
31 #include <boost/any.hpp>
32 #include <map>
33 #include <utility>
34 
36 
37 namespace Feel
38 {
39 
47 class Air : public Material
48 {
49 public:
50 
51 
55 
56 
58 
62 
63  Air() : Material( "Air" ) {}
64  Air( Air const & m ): Material( m ) {}
65  ~Air() {}
66 
68 
72 
73 
75 
79 
80 
82  virtual double k() const
83  {
84  double T = 273; // K (default)
85  return pow( 10,( 0.8616*log10( abs( T ) )-3.7142 ) );
86  }
87 
89  virtual double rho() const
90  {
91 
92  return 1.2;
93  }
94 
96  virtual double C() const
97  {
98  double T=273;
99  return 0.0769*T+1076.9;
100  }
101 
103  virtual double nu() const
104  {
105  return 1.7*1e-5;
106  }
107 
109  virtual double E() const
110  {
111  return -1;
112  }
113 
114 
116 
120 
121 
123 
127 
128 
130 
131 
132 
133 protected:
134 
135 private:
136 
137 };
138 
139 } // Feel
140 

Generated on Sun Oct 20 2013 08:24:54 for Feel++ by doxygen 1.8.4