MechanicalFemPhysics
The GeMA Mechanical FEM Physics Plugin
gmpMaterialExtendedDruckerPrager.h
Go to the documentation of this file.
1 /************************************************************************
2 **
3 ** Copyright (C) 2016 by Carlos Augusto Teixera Mendes
4 ** All rights reserved.
5 **
6 ** This file is part of the "GeMA" software. It's use should respect
7 ** the terms in the license agreement that can be found together
8 ** with this source code.
9 ** It is provided AS IS, with NO WARRANTY OF ANY KIND,
10 ** INCLUDING THE WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR
11 ** A PARTICULAR PURPOSE.
12 **
13 ************************************************************************/
14 
27 #ifndef _GEMA_PLUGIN_MECHANICALMATERIAL_EXTENDED_DRUCKER_PRAGER_H_
28 #define _GEMA_PLUGIN_MECHANICALMATERIAL_EXTENDED_DRUCKER_PRAGER_H_
29 
31 #include "gmpMechanicPoint.h"
32 #include "gmpFemPhysics.h"
33 #include "gmMathUtils.h"
34 
35 class GMP_MECHANICAL_PHYSICS_API_EXPORT GmpMaterialExtendedDruckerPrager : public GmpMaterialElastoplastic
36 {
37 protected:
40  {
44  K_ID,
45 
46  // --- NO ADDING BELOW THIS LINE
48  };
49 
50 public:
51 
53  GmpMaterialExtendedDruckerPrager(int typeIndex, QString typeName, const GmLogCategory& logger)
54  : GmpMaterialElastoplastic(typeIndex, typeName, logger) {}
55 
58 
60  static GmpFemPhysicsCommonMaterial* instance(GmSimulationData* simulation, int typeIndex, QString typeName, const GmLogCategory& logger)
61  {
62  Q_UNUSED(simulation);
63  return new GmpMaterialExtendedDruckerPrager(typeIndex, typeName, logger);
64  }
65 
66  // Returns a map with material associated properties.
67  virtual const QVariantMap* materialMetaDataMap();
68 
70  virtual bool isIsotropic() const { return true; }
71 
73  virtual double cohesion(const GmElement* e, const GmVector* coord, int ip) const
74  {
75  return propertyAc(COH_ID)->scalarValueAt(e, coord, ip);
76  }
78  virtual double frictionAngle(const GmElement* e, const GmVector* coord, int ip) const
79  {
80  return propertyAc(PHI_ID)->scalarValueAt(e, coord, ip);
81  }
83  virtual double dilationAngle(const GmElement* e, const GmVector* coord, int ip) const
84  {
85  return propertyAc(PSI_ID)->scalarValueAt(e, coord, ip);
86  }
88  virtual double shapeFactor(const GmElement* e, const GmVector* coord, int ip) const
89  {
90  return propertyAc(K_ID)->scalarValueAt(e, coord, ip);
91  }
92 
93  //Yield criterion
94  virtual double yieldCriterion(const GmElement*, const GmVector&, const GmVector*, int, unsigned) const;
95  virtual bool yieldStressGradient(const GmElement*, GmVector&, const GmVector&, const GmVector*, int, unsigned, bool) const;
96  virtual bool yieldHessian(const GmElement*, GmMatrix&, const GmVector&, const GmVector*, int, unsigned, bool) const;
97 
98  // Plastic potential
99  virtual double plasticFPotential(const GmElement*, const GmVector&, const GmVector*, int, unsigned) const;
100  virtual bool flowVector(const GmElement*, GmVector&, const GmVector&, const GmVector*, int, unsigned, bool) const;
101  virtual bool flowVectorStressGradient(const GmElement*, GmMatrix&, const GmVector&, const GmVector*, int, unsigned, bool) const;
102 
104  virtual double yieldStrengthRatio(const GmElement* e, const GmVector& S, const GmVector* coord, int ip, unsigned sc) const;
105 
106 };
107 
108 #endif
virtual double dilationAngle(const GmElement *e, const GmVector *coord, int ip) const
Returns the material dilation angle.
Definition: gmpMaterialExtendedDruckerPrager.h:83
Id for retrieving the friction angle accessor.
Definition: gmpMaterialExtendedDruckerPrager.h:42
ElementPropertyIds
IDs for material element properties.
Definition: gmpMaterialElastic.h:38
The number of property ids above.
Definition: gmpMaterialElastoplastic.h:79
virtual double shapeFactor(const GmElement *e, const GmVector *coord, int ip) const
Returns the hydrostatic tension strength of the material.
Definition: gmpMaterialExtendedDruckerPrager.h:88
virtual bool isIsotropic() const
Returns true if the material is isotropic, false otherwise.
Definition: gmpMaterialExtendedDruckerPrager.h:70
Declaration of the gmpMaterialElastoplastic classes.
Definition: gmpMaterialExtendedDruckerPrager.h:35
virtual double yieldStrengthRatio(const GmElement *e, const GmVector &S, const GmVector *coord, int ip, unsigned sc) const =0
Returns the Yield Strength Ratio (Ysr)
Id for retrieving the dilatance angle accessor.
Definition: gmpMaterialExtendedDruckerPrager.h:43
static GmpFemPhysicsCommonMaterial * instance(GmSimulationData *simulation, int typeIndex, QString typeName, const GmLogCategory &logger)
A "factory" function used to register the material with the physics material factory.
Definition: gmpMaterialExtendedDruckerPrager.h:60
Declaration of the GmpMechanicPoint class.
Id for retrieving the ratio of the yield stress in triaxial tension to the yield stress in triaxial c...
Definition: gmpMaterialExtendedDruckerPrager.h:44
GmpMaterialExtendedDruckerPrager(int typeIndex, QString typeName, const GmLogCategory &logger)
Constructor. Gets as parameters the material index and its name.
Definition: gmpMaterialExtendedDruckerPrager.h:53
The number of property ids above.
Definition: gmpMaterialExtendedDruckerPrager.h:47
arma::vec GmVector
Definition: gmpMaterialElastoplastic.h:35
virtual ~GmpMaterialExtendedDruckerPrager()
Virtual destructor.
Definition: gmpMaterialExtendedDruckerPrager.h:57
arma::mat GmMatrix
virtual const QVariantMap * materialMetaDataMap()
Returns a pointer to the material/Gauus attribute map, built when the function is called for the firs...
Definition: gmpMaterialElastoplastic.cpp:45