1 /*!
2  * \file   mfront/include/MFront/LSDYNA/LSDYNATraits.hxx
3  * \brief
4  *
5  * \author Thomas Helfer
6  * \date   13/02/2007
7  * \copyright Copyright (C) 2006-2018 CEA/DEN, EDF R&D. All rights
8  * reserved.
9  * This project is publicly released under either the GNU GPL Licence
10  * or the CECILL-A licence. A copy of thoses licences are delivered
11  * with the sources of TFEL. CEA or EDF may also distribute this
12  * project under specific licensing conditions.
13  */
14 
15 #ifndef LIB_MFRONT_LSDYNATRAITS_HXX
16 #define LIB_MFRONT_LSDYNATRAITS_HXX
17 
18 namespace lsdyna{
19 
20   enum LSDYNABehaviourType{
21     STANDARDSTRAINBASEDBEHAVIOUR,
22     STANDARDFINITESTRAINBEHAVIOUR
23   }; // end of enum LSDYNABehaviourType
24 
25   enum LSDYNASymmetryType{
26     ISOTROPIC,
27     ORTHOTROPIC
28   }; // end of enum LSDYNASymmetryType
29 
30   template<typename Behaviour>
31   struct LSDYNATraits{
32     static constexpr LSDYNABehaviourType btype = lsdyna::STANDARDSTRAINBASEDBEHAVIOUR;
33     // size of the driving variable array (STRAN)
34     static constexpr unsigned short GradientSize = 0u;
35     // size of the thermodynamic force variable array (STESS)
36     static constexpr unsigned short ThermodynamicForceVariableSize = 0u;
37     static constexpr bool requiresStiffnessTensor             = false;
38     static constexpr bool requiresUnAlteredStiffnessTensor    = true;
39     static constexpr bool requiresThermalExpansionCoefficientTensor  = false;
40     static constexpr unsigned short elasticPropertiesOffset          = 0u;
41     static constexpr unsigned short thermalExpansionPropertiesOffset = 0u;
42     // Type of the behaviour of the material (isotropic or orthotropic)
43     static constexpr LSDYNASymmetryType type   = lsdyna::ISOTROPIC;
44     // Type of the elastic behaviour of the material (isotropic or orthotropic)
45     static constexpr LSDYNASymmetryType  etype = lsdyna::ISOTROPIC;
46   }; // end of class LSDYNATraits
47 
48 } // end of namespace lsdyna
49 
50 #endif /* LIB_MFRONT_LSDYNATRAITS_HXX */
51 
52