GRINS-0.8.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-2017 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  MooneyRivlin( const GetPot& input, const std::string& material );
44 
45  virtual ~MooneyRivlin();
46 
47  // So we can make implementation private
49 
50  private:
51 
52  MooneyRivlin();
53 
54  libMesh::Real dI1_imp( libMesh::Real I1, libMesh::Real I2, libMesh::Real I3 ) const;
55  libMesh::Real dI2_imp( libMesh::Real I1, libMesh::Real I2, libMesh::Real I3 ) const;
56  libMesh::Real dI3_imp( libMesh::Real I1, libMesh::Real I2, libMesh::Real I3 ) const;
57 
58  libMesh::Real _C1;
59  libMesh::Real _C2;
60 
61  };
62 
63  inline
64  libMesh::Real MooneyRivlin::dI1_imp( libMesh::Real /*I1*/, libMesh::Real /*I2*/, libMesh::Real /*I3*/ ) const
65  {
66  return _C1;
67  }
68 
69  inline
70  libMesh::Real MooneyRivlin::dI2_imp( libMesh::Real /*I1*/, libMesh::Real /*I2*/, libMesh::Real /*I3*/ ) const
71  {
72  return _C2;
73  }
74 
75  inline
76  libMesh::Real MooneyRivlin::dI3_imp( libMesh::Real /*I1*/, libMesh::Real /*I2*/, libMesh::Real /*I3*/ ) const
77  {
78  return 0.0;
79  }
80 
81 
82 } // end namespace GRINS
83 
84 #endif // GRINS_MOONEY_RIVLIN_H
libMesh::Real dI2_imp(libMesh::Real I1, libMesh::Real I2, libMesh::Real I3) const
Definition: mooney_rivlin.h:70
GRINS namespace.
libMesh::Real dI1_imp(libMesh::Real I1, libMesh::Real I2, libMesh::Real I3) const
Definition: mooney_rivlin.h:64
ParameterUser base class. Utility methods for subclasses.
libMesh::Real _C2
Definition: mooney_rivlin.h:59
libMesh::Real _C1
Definition: mooney_rivlin.h:58
libMesh::Real dI3_imp(libMesh::Real I1, libMesh::Real I2, libMesh::Real I3) const
Definition: mooney_rivlin.h:76

Generated on Tue Dec 19 2017 12:47:28 for GRINS-0.8.0 by  doxygen 1.8.9.1