GRINS-0.6.0
mooney_rivlin.h
Go to the documentation of this file.
1 //-----------------------------------------------------------------------bl-
2 //--------------------------------------------------------------------------
3 //
4 // GRINS - General Reacting Incompressible Navier-Stokes
5 //
6 // Copyright (C) 2014-2015 Paul T. Bauman, Roy H. Stogner
7 // Copyright (C) 2010-2013 The PECOS Development Team
8 //
9 // This library is free software; you can redistribute it and/or
10 // modify it under the terms of the Version 2.1 GNU Lesser General
11 // Public License as published by the Free Software Foundation.
12 //
13 // This library is distributed in the hope that it will be useful,
14 // but WITHOUT ANY WARRANTY; without even the implied warranty of
15 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
16 // Lesser General Public License for more details.
17 //
18 // You should have received a copy of the GNU Lesser General Public
19 // License along with this library; if not, write to the Free Software
20 // Foundation, Inc. 51 Franklin Street, Fifth Floor,
21 // Boston, MA 02110-1301 USA
22 //
23 //-----------------------------------------------------------------------el-
24 
25 #ifndef GRINS_MOONEY_RIVLIN_H
26 #define GRINS_MOONEY_RIVLIN_H
27 
28 // GRINS
30 #include "grins/parameter_user.h"
31 
32 // Forward declarations
33 class GetPot;
34 
35 namespace GRINS
36 {
37  class MooneyRivlin : public HyperelasticStrainEnergy<MooneyRivlin>,
38  public ParameterUser
39  {
40  public:
41  MooneyRivlin( const GetPot& input );
42 
43  virtual ~MooneyRivlin();
44 
45  // So we can make implementation private
47 
48  private:
49 
50  MooneyRivlin();
51 
52  libMesh::Real dI1_imp( libMesh::Real I1, libMesh::Real I2, libMesh::Real I3 ) const;
53  libMesh::Real dI2_imp( libMesh::Real I1, libMesh::Real I2, libMesh::Real I3 ) const;
54  libMesh::Real dI3_imp( libMesh::Real I1, libMesh::Real I2, libMesh::Real I3 ) const;
55 
56  libMesh::Real _C1;
57  libMesh::Real _C2;
58 
59  };
60 
61  inline
62  libMesh::Real MooneyRivlin::dI1_imp( libMesh::Real /*I1*/, libMesh::Real /*I2*/, libMesh::Real /*I3*/ ) const
63  {
64  return _C1;
65  }
66 
67  inline
68  libMesh::Real MooneyRivlin::dI2_imp( libMesh::Real /*I1*/, libMesh::Real /*I2*/, libMesh::Real /*I3*/ ) const
69  {
70  return _C2;
71  }
72 
73  inline
74  libMesh::Real MooneyRivlin::dI3_imp( libMesh::Real /*I1*/, libMesh::Real /*I2*/, libMesh::Real /*I3*/ ) const
75  {
76  return 0.0;
77  }
78 
79 
80 } // end namespace GRINS
81 
82 #endif // GRINS_MOONEY_RIVLIN_H
libMesh::Real dI2_imp(libMesh::Real I1, libMesh::Real I2, libMesh::Real I3) const
Definition: mooney_rivlin.h:68
GRINS namespace.
libMesh::Real dI1_imp(libMesh::Real I1, libMesh::Real I2, libMesh::Real I3) const
Definition: mooney_rivlin.h:62
virtual ~MooneyRivlin()
Definition: mooney_rivlin.C:56
ParameterUser base class. Utility methods for subclasses.
libMesh::Real _C2
Definition: mooney_rivlin.h:57
libMesh::Real _C1
Definition: mooney_rivlin.h:56
libMesh::Real dI3_imp(libMesh::Real I1, libMesh::Real I2, libMesh::Real I3) const
Definition: mooney_rivlin.h:74

Generated on Mon Jun 22 2015 21:32:20 for GRINS-0.6.0 by  doxygen 1.8.9.1