MechanicalFemPhysics
The GeMA Mechanical FEM Physics Plugin
Loading...
Searching...
No Matches
gmpMaterialMohrCoulomb.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_MOHRCOULOMB_H_
28#define _GEMA_PLUGIN_MECHANICALMATERIAL_MOHRCOULOMB_H_
29
31#include "gmpMechanicPoint.h"
32#include "gmpFemPhysics.h"
33#include "gmMathUtils.h"
34
35class GMP_MECHANICAL_PHYSICS_API_EXPORT GmpMaterialMohrCoulomb : public GmpMaterialElastoplastic
36{
37protected:
40 {
44
45 // --- NO ADDING BELOW THIS LINE
47 };
48
49public:
50
52 GmpMaterialMohrCoulomb(int typeIndex, QString typeName, const GmLogCategory& logger)
53 : GmpMaterialElastoplastic(typeIndex, typeName, logger) {}
54
57
59 static GmpFemPhysicsCommonMaterial* instance(GmSimulationData* simulation, int typeIndex, QString typeName, const GmLogCategory& logger)
60 {
61 Q_UNUSED(simulation);
62 return new GmpMaterialMohrCoulomb(typeIndex, typeName, logger);
63 }
64
65 // Returns a map with material associated properties.
66 virtual const QVariantMap* materialMetaDataMap();
67
69 virtual bool isIsotropic() const { return true; }
70
72 virtual double cohesion(const GmElement* e, const GmVector* coord, int ip) const
73 {
74 return propertyAc(COH_ID)->scalarValueAt(e, coord, ip);
75 }
77 virtual double frictionAngle(const GmElement* e, const GmVector* coord, int ip) const
78 {
79 return propertyAc(PHI_ID)->scalarValueAt(e, coord, ip);
80 }
82 virtual double dilationAngle(const GmElement* e, const GmVector* coord, int ip) const
83 {
84 return propertyAc(PSI_ID)->scalarValueAt(e, coord, ip);
85 }
86
87 //yield criterion
88 virtual double yieldCriterion(const GmElement*, const GmVector&, const GmVector*, int, unsigned) const;
89 virtual bool yieldStressGradient(const GmElement*, GmVector&, const GmVector&, const GmVector*, int, unsigned, bool) const;
90 virtual bool yieldHessian(const GmElement*, GmMatrix&, const GmVector&, const GmVector*, int, unsigned, bool) const;
91
92 //plastic potential
93 virtual double plasticFPotential(const GmElement*, const GmVector&, const GmVector*, int, unsigned) const;
94 virtual bool flowVector(const GmElement*, GmVector&, const GmVector&, const GmVector*, int, unsigned, bool) const;
95 virtual bool flowVectorStressGradient(const GmElement*, GmMatrix&, const GmVector&, const GmVector*, int, unsigned, bool) const;
96
98 virtual double yieldStrengthRatio(const GmElement* e, const GmVector& S, const GmVector* coord, int ip, unsigned sc) const;
99
100};
101
102#endif
Definition gmpMaterialElastoplastic.h:36
@ NUM_PROPERTY_IDS
The number of property ids above.
Definition gmpMaterialElastoplastic.h:79
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 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
Definition gmpMaterialMohrCoulomb.h:36
ElementPropertyIds
IDs for material element properties.
Definition gmpMaterialMohrCoulomb.h:40
@ PSI_ID
Id for retrieving the dilatance angle accessor.
Definition gmpMaterialMohrCoulomb.h:43
@ PHI_ID
Id for retrieving the friction angle accessor.
Definition gmpMaterialMohrCoulomb.h:42
@ NUM_PROPERTY_IDS
The number of property ids above.
Definition gmpMaterialMohrCoulomb.h:46
virtual ~GmpMaterialMohrCoulomb()
Virtual destructor.
Definition gmpMaterialMohrCoulomb.h:56
virtual double dilationAngle(const GmElement *e, const GmVector *coord, int ip) const
Returns the material dilation angle.
Definition gmpMaterialMohrCoulomb.h:82
virtual double cohesion(const GmElement *e, const GmVector *coord, int ip) const
Returns the material cohesion.
Definition gmpMaterialMohrCoulomb.h:72
virtual bool isIsotropic() const
Returns true if the material is isotropic, false otherwise.
Definition gmpMaterialMohrCoulomb.h:69
GmpMaterialMohrCoulomb(int typeIndex, QString typeName, const GmLogCategory &logger)
Constructor. Gets as parameters the material index and its name.
Definition gmpMaterialMohrCoulomb.h:52
virtual double frictionAngle(const GmElement *e, const GmVector *coord, int ip) const
Returns the material friction angle.
Definition gmpMaterialMohrCoulomb.h:77
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 gmpMaterialMohrCoulomb.h:59
arma::mat GmMatrix
arma::vec GmVector
Declaration of the gmpMaterialElastoplastic classes.
Declaration of the GmpMechanicPoint class.