MechanicalFemPhysics
The GeMA Mechanical FEM Physics Plugin
gmpMaterialModifMohrCoulomb.h
Go to the documentation of this file.
1 /************************************************************************
2 **
3 ** Copyright (C) 2014 by Nilthson NoreƱa
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 
25 #ifndef _GEMA_PLUGIN_MECHANICALMATERIAL_MODIFIEDMOHRCOULOMB_H_
26 #define _GEMA_PLUGIN_MECHANICALMATERIAL_MODIFIEDMOHRCOULOMB_H_
27 
29 #include "gmpMechanicPoint.h"
30 #include "gmpFemPhysics.h"
31 #include "gmMathUtils.h"
32 
33 class GMP_MECHANICAL_PHYSICS_API_EXPORT GmpMaterialModifiedMohrCoulomb : public GmpMaterialElastoplastic
34 {
35 protected:
38  {
42 
43  // --- NO ADDING BELOW THIS LINE
45  };
46 
47 public:
48 
50  GmpMaterialModifiedMohrCoulomb(int typeIndex, QString typeName, const GmLogCategory& logger)
51  : GmpMaterialElastoplastic(typeIndex, typeName, logger) {}
52 
55 
57  static GmpFemPhysicsCommonMaterial* instance(GmSimulationData* simulation, int typeIndex, QString typeName, const GmLogCategory& logger)
58  {
59  Q_UNUSED(simulation);
60  return new GmpMaterialModifiedMohrCoulomb(typeIndex, typeName, logger);
61  }
62 
63  // Returns a map with material associated properties.
64  virtual const QVariantMap* materialMetaDataMap();
65 
67  virtual bool isIsotropic() const { return true; }
68 
70  virtual double cohesion(const GmElement* e, const GmVector* coord, int ip) const
71  {
72  return propertyAc(COH_ID)->scalarValueAt(e, coord, ip);
73  }
75  virtual double frictionAngle(const GmElement* e, const GmVector* coord, int ip) const
76  {
77  return propertyAc(PHI_ID)->scalarValueAt(e, coord, ip);
78  }
80  virtual double dilationAngle(const GmElement* e, const GmVector* coord, int ip) const
81  {
82  return propertyAc(PSI_ID)->scalarValueAt(e, coord, ip);
83  }
84 
85  //yield criterion
86  virtual double yieldCriterion(const GmElement*, const GmVector&, const GmVector*, int, unsigned) const;
87  virtual bool yieldStressGradient(const GmElement*, GmVector&, const GmVector&, const GmVector*, int, unsigned, bool) const;
88  virtual bool yieldHessian(const GmElement*, GmMatrix&, const GmVector&, const GmVector*, int, unsigned, bool) const;
89 
90  //plastic potential
91  virtual double plasticFPotential(const GmElement*, const GmVector&, const GmVector*, int, unsigned) const;
92  virtual bool flowVector(const GmElement*, GmVector&, const GmVector&, const GmVector*, int, unsigned, bool) const;
93  virtual bool flowVectorStressGradient(const GmElement*, GmMatrix&, const GmVector&, const GmVector*, int, unsigned, bool) const;
94 
96  virtual double yieldStrengthRatio(const GmElement* e, const GmVector& S, const GmVector* coord, int ip, unsigned sc) const;
97 
98 };
99 
100 #endif
virtual bool isIsotropic() const
Returns true if the material is isotropic, false otherwise.
Definition: gmpMaterialModifMohrCoulomb.h:67
Id for retrieving the dilatance angle accessor.
Definition: gmpMaterialModifMohrCoulomb.h:41
virtual double dilationAngle(const GmElement *e, const GmVector *coord, int ip) const
Returns the material dilation angle.
Definition: gmpMaterialModifMohrCoulomb.h:80
virtual double frictionAngle(const GmElement *e, const GmVector *coord, int ip) const
Returns the material friction angle.
Definition: gmpMaterialModifMohrCoulomb.h:75
ElementPropertyIds
IDs for material element properties.
Definition: gmpMaterialElastic.h:38
The number of property ids above.
Definition: gmpMaterialElastoplastic.h:79
Definition: gmpMaterialModifMohrCoulomb.h:33
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: gmpMaterialModifMohrCoulomb.h:57
virtual ~GmpMaterialModifiedMohrCoulomb()
Virtual destructor.
Definition: gmpMaterialModifMohrCoulomb.h:54
Declaration of the gmpMaterialElastoplastic classes.
virtual double yieldStrengthRatio(const GmElement *e, const GmVector &S, const GmVector *coord, int ip, unsigned sc) const =0
Returns the Yield Strength Ratio (Ysr)
virtual double cohesion(const GmElement *e, const GmVector *coord, int ip) const
Returns the material cohesion.
Definition: gmpMaterialModifMohrCoulomb.h:70
Id for retrieving the friction angle accessor.
Definition: gmpMaterialModifMohrCoulomb.h:40
Declaration of the GmpMechanicPoint class.
GmpMaterialModifiedMohrCoulomb(int typeIndex, QString typeName, const GmLogCategory &logger)
Constructor. Gets as parameters the material index and its name.
Definition: gmpMaterialModifMohrCoulomb.h:50
arma::vec GmVector
Definition: gmpMaterialElastoplastic.h:35
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
The number of property ids above.
Definition: gmpMaterialModifMohrCoulomb.h:44