GRINS-0.6.0
elasticity_tensor.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_ELASTICITY_TENSOR_H
26 #define GRINS_ELASTICITY_TENSOR_H
27 
28 // libMesh
29 #include "libmesh/libmesh_common.h"
30 
31 namespace GRINS
32 {
34  {
35  public:
36 
38  virtual ~ElasticityTensor(){};
39 
41  libMesh::Real operator()( unsigned int i, unsigned int j, unsigned int k, unsigned int l ) const;
42 
43  libMesh::Real& operator()( unsigned int i, unsigned int j, unsigned int k, unsigned int l );
44 
45  protected:
46 
48 
49  libMesh::Real _C[3][3][3][3];
50  };
51 
52  inline
53  libMesh::Real ElasticityTensor::operator()( unsigned int i, unsigned int j, unsigned int k, unsigned int l ) const
54  {
55  return _C[i][j][k][l];
56  }
57 
58  inline
59  libMesh::Real& ElasticityTensor::operator()( unsigned int i, unsigned int j, unsigned int k, unsigned int l )
60  {
61  return _C[i][j][k][l];
62  }
63 
64 } // end namespace GRINS
65 
66 #endif // GRINS_ELASTICITY_TENSOR_H
libMesh::Real _C[3][3][3][3]
Elasticity tensor.
GRINS namespace.
libMesh::Real operator()(unsigned int i, unsigned int j, unsigned int k, unsigned int l) const
Value of C_{ijkl}.

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