GRINS-0.6.0
hyperelastic_strain_energy.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_HYPERELASTIC_STRAIN_ENERGY_H
26 #define GRINS_HYPERELASTIC_STRAIN_ENERGY_H
27 
28 // libMesh
29 #include "libmesh/libmesh_common.h"
30 
31 namespace GRINS
32 {
33  template<typename Function>
35  {
36  public:
39 
40  libMesh::Real dI1( libMesh::Real I1, libMesh::Real I2, libMesh::Real I3 ) const;
41  libMesh::Real dI2( libMesh::Real I1, libMesh::Real I2, libMesh::Real I3 ) const;
42  libMesh::Real dI3( libMesh::Real I1, libMesh::Real I2, libMesh::Real I3 ) const;
43 
44  };
45 
46  template<typename Function>
47  libMesh::Real HyperelasticStrainEnergy<Function>::dI1( libMesh::Real I1, libMesh::Real I2, libMesh::Real I3 ) const
48  {
49  return static_cast<const Function*>(this)->dI1_imp(I1,I2,I3);
50  }
51 
52  template<typename Function>
53  libMesh::Real HyperelasticStrainEnergy<Function>::dI2( libMesh::Real I1, libMesh::Real I2, libMesh::Real I3 ) const
54  {
55  return static_cast<const Function*>(this)->dI2_imp(I1,I2,I3);
56  }
57 
58  template<typename Function>
59  libMesh::Real HyperelasticStrainEnergy<Function>::dI3( libMesh::Real I1, libMesh::Real I2, libMesh::Real I3 ) const
60  {
61  return static_cast<const Function*>(this)->dI3_imp(I1,I2,I3);
62  }
63 
64 } // end namespace GRINS
65 
66 
67 
68 #endif // GRINS_HYPERELASTIC_STRAIN_ENERGY_H
libMesh::Real dI1(libMesh::Real I1, libMesh::Real I2, libMesh::Real I3) const
libMesh::Real dI2(libMesh::Real I1, libMesh::Real I2, libMesh::Real I3) const
GRINS namespace.
libMesh::Real dI3(libMesh::Real I1, libMesh::Real I2, libMesh::Real I3) const

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