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
material.hpp
Go to the documentation of this file.
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 Universite 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 #ifndef __Material_H
30 #define __Material_H 1
31 
32 #include <string>
33 #include <boost/shared_ptr.hpp>
34 
35 namespace Feel
36 {
44 class Material
45 {
46 public:
47 
48 
52 
53 
55 
59 
60  Material( std::string const& name );
61  Material( Material const & );
62  virtual ~Material();
63 
65 
69 
70 
72 
76 
78  std::string const& name() const
79  {
80  return M_name;
81  }
82 
84  virtual double k() const = 0;
85 
87  virtual double rho() const = 0;
88 
90  virtual double C() const = 0;
91 
93  virtual double nu() const = 0;
94 
96  virtual double E() const = 0;
97 
99 
103 
104 
106 
110 
111 
113 
114 
115 
116 protected:
117 
119  std::string M_name;
120 
121 private:
122 
123 };
124 
125 typedef Material material_type;
126 typedef boost::shared_ptr<Material> material_ptrtype;
127 
128 } // Feel
129 
130 
131 #endif /* __Material_H */
std::string M_name
name of the material
Definition: material.hpp:119
virtual double nu() const =0
Poisson coefficient.
virtual double E() const =0
Young modulus in .
virtual double k() const =0
thermal conductivity in
virtual double rho() const =0
density in
virtual double C() const =0
thermal capacity in
Material base class.
Definition: material.hpp:44
std::string const & name() const
Definition: material.hpp:78

Generated on Sun Dec 22 2013 13:11:06 for Feel++ by doxygen 1.8.5