MechanicalFemPhysics
The GeMA Mechanical FEM Physics Plugin
Public Member Functions | Protected Types | Protected Member Functions | Private Attributes | List of all members
GmpMechanicalEmbeddedFracture Class Reference

Basic class for the mechanical physics plugin object. More...

#include <gmpMechanicalEmbeddedFracture.h>

Inheritance diagram for GmpMechanicalEmbeddedFracture:
Inheritance graph
[legend]
Collaboration diagram for GmpMechanicalEmbeddedFracture:
Collaboration graph
[legend]

Public Member Functions

 GmpMechanicalEmbeddedFracture (const char *pluginType, GmSimulationData *simulation, QString id, QString description, const GmpFemPhysicsCommonMaterialFactory *matFactory, const GmLogCategory &logger)
 Constructor. Will be called by the plugin loading code.
 
virtual ~GmpMechanicalEmbeddedFracture ()
 Destructor.
 
virtual const QVariantMap * physicsMetaDataMap ()
 Returns a reference for the single mechanical physics attribute map, built when the function is called for the first time.
 
bool numberEnhancedDofs (const GmElement *e, int &ndofw)
 
virtual FemResultType fillElementData (const GmElement *e, GmpFemMatrixSet &elemMatrices, GmpFemVectorSet &elemVectors)
 Fills the element matrices and vectors for a generic elements.
 
virtual FemResultType fillEnrichedElementData (const GmElement *e, GmMatrix &K, GmVector &Fi, bool needsK, bool needsFi)
 
void initializeFractureGeometry (double &ld, GmVector &m1, GmVector &m2, GmVector &nd, GmVector &Xref, GmMatrix &Xf, int nfn)
 
void elementStiffnessSubMtrcs (const GmElement *e, const GmElement *ef, GmVector &we, GmMatrix &Kaa, GmMatrix &Kaw, GmMatrix &Kwa, GmVector &Fi, bool needsFi)
 
void fillBulkContribution (const GmElement *e, const GmElement *ef, GmVector &we, GmMatrix &Kww, GmVector &Fint)
 
void fillGrMtrx (const GmElement *e, GmMatrix &Gr, GmMatrix &Bu, GmVector &Xip)
 
void elementStiffnessSubMtrx_Kaw (GmMatrix &Kaa, GmMatrix &Kaw, GmMatrix &Xe, const GmElement *e, const GmElement *ef)
 
void elementStiffnessSubMtrx_Kwa (GmMatrix &Kaa, GmMatrix &Kwa, GmMatrix &Xe, GmVector &m1, GmVector &nd, GmVector &Xref, double ld, int d, int ne, int nfn)
 
void elementStiffnessSubMtrx_Kww (GmMatrix &Kaa, GmMatrix &Kww, GmMatrix &Xe, GmVector &m1, GmVector &nd, GmVector &Xref, double ld, int d, int ne, int nfn)
 
void computeJumpDisplacements (const GmElement *e, GmVector &we, GmMatrix &Kww)
 
void fillFractureElementData (const GmElement *ef, GmVector &strain, GmMatrix &Kd, GmVector &Fdi)
 
void updateFractureDisplacementJumps (const GmElement *ef, GmVector &we)
 
void getNodalDisplacementJumps (const GmElement *ef, GmVector &we)
 
double heavisideFnc (GmVector &X, GmVector &Xref, GmVector &nd)
 
void elementHeavisideMtrx (GmMatrix &Hd, GmVector &Xref, GmMatrix &Xe, GmVector &nd, int ne)
 
void rotationMtrx (const GmElement *ef, GmMatrix &Rot)
 
void mappingTranslationMtrx (GmMatrix &Mtr)
 
void mappingRelativeRotationMtrx (GmMatrix &Mrot, GmVector &X, GmVector &m1, GmVector &Xref, double ld)
 
void mappingRigidBodyMtrx (GmMatrix &Mrb, GmVector &X, GmVector &m1, GmVector &Xref, double ld, int nfn)
 
void elementMappingMtrx (GmMatrix &Me, GmVector &m1, GmMatrix &Xe, GmVector &Xref, double ld, int nfn, int ne)
 
void fillMiddleCoordinates (const GmElement *e, GmMatrix &X, GmMatrix &MX)
 See comments on base class. Fills matrix with middle coordinates.
 
void constructShapeFncMtrx (GmMatrix &Nw, GmVector &N)
 
virtual bool calcDerivedResults (bool nonLinearSolver)
 Calc stress component on nodes and/or Gauss points, ADDING the calculated value to the current result.
 
virtual const GmElementDofdofMapping (const GmElement *e) const
 
- Public Member Functions inherited from GmpMechanicalSolid
 GmpMechanicalSolid (const char *pluginType, GmSimulationData *simulation, QString id, QString description, const GmpFemPhysicsCommonMaterialFactory *matFactory, const GmLogCategory &logger)
 Constructor. Will be called by the plugin loading code.
 
virtual ~GmpMechanicalSolid ()
 Destructor.
 
virtual bool beforeElementStiffnessLoop (const GmpFemMatrixSet &elemMatrices, const GmpFemVectorSet &elemVectors)
 
virtual void fillBodyForce (const GmElement *e, const GmVector *coord, int ip, GmVector &BFc, GmVector &N, double c)
 
virtual void gravityForce (const GmElement *e, const GmVector *coord, int ip, GmVector &Fext_u, GmVector &N, double c)
 
virtual bool checkLoadedData ()
 Checks the loaded data.
 
virtual bool addStateItemsToGroup (GmStateDump *state, bool fixedHint, int groupId)
 
- Public Member Functions inherited from GmpMechanicalPhysics
 GmpMechanicalPhysics (const char *pluginType, GmSimulationData *simulation, QString id, QString description, const GmpFemPhysicsCommonMaterialFactory *matFactory, const GmLogCategory &logger)
 Constructor. Will be called by the plugin loading code.
 
virtual ~GmpMechanicalPhysics ()
 Destructor.
 
virtual const char * pluginName () const
 
virtual const char * pluginType () const
 
virtual bool supportsStateDumping ()
 
virtual unsigned stress_state (void)
 Returns the number of stress components. More...
 
virtual bool fixedNodalForcesBc (QList< int > &nodes, QList< int > &dof, QList< double > &values) const
 See comments on base class. Fills vectors with prescribed nodal concentrated forces.
 
virtual bool fixedNodalDofsBc (QList< int > &nodes, QList< int > &dof, QList< double > &values, bool *constantValues) const
 See comments on base class. Fills vectors with prescribed node displacements.
 
virtual FemResultType fillElementDataForBc (const GmElement *e, const GmBoundaryCondition *bc, int bcIndex, int bcListIndex, int border, GmpFemMatrixSet &elemMatrices, GmpFemVectorSet &elemVectors)
 Fills the element stiffness matrix elemK and/or the force vector elemF for element 'e', taking into account pressure load and/or point generation boundary conditions, as indicated by the bc parameter. More...
 
virtual FemResultType fillElementDataForLoads (const GmElement *e, int loadId, GmpFemVectorSet &elemVectors)
 
virtual FemResultType fillElementDataPressBc (const GmElement *e, const GmBoundaryCondition *bc, int bcIndex, int bcListIndex, int border, GmMatrix &elemMat, GmVector &elemVec)
 calc nodal equivalent force vector due uniforme pressure load.
 
virtual FemResultType fillElementDataHydPressBc (const GmElement *e, const GmBoundaryCondition *bc, int bcIndex, int bcListIndex, int border, GmMatrix &elemMat, GmVector &elemVec)
 calc nodal equivalent force vector due hydraulic pressure load. Information is provided from two vertical reference coordinates with the respective
 
virtual FemResultType fillElementDataWaterSheepPressBc (const GmElement *e, const GmBoundaryCondition *bc, int bcIndex, int bcListIndex, int border, GmMatrix &elemMat, GmVector &elemVec)
 calc nodal equivalent force vector due water sheet pressure load. Information is provided from reference coordinates to level of water with the respective
 
virtual FemResultType fillContactData (const GmContactBoundaryCondition *cbc, int bcIndex1, int bcIndex2, GmMatrixDof &dofMap, GmpFemMatrixSet &matrixSet, GmpFemVectorSet &vecSet)
 Fills the contact boundary contribution. More...
 
virtual bool calcMaterialDerivedResults () const
 The virtual function used by calcDerivedResults() to effectively calculate gauss attributes required by the Material.
 
virtual double fillBuMatrix (const GmElement *e, const GmShape *shape, const GmVector &ncoord, const GmMatrix &X, const GmVector &N, const GmMatrix &J, GmMatrix &Bu)=0
 Given a point 'ncood', the element coordinate matrix 'X', the point shape functions 'N' and the transformation Jacobian 'J', fills the matrix with cartesian partial derivatives Bu using the provided shape function and returns the scaled jacobian determinant. More...
 
void fillElementDisplacements (const GmElement *e, GmVector &ue)
 Given an element, fills the vector 'ue' with nodal displacements. The vector should have size equal to n * d where n is the number of element nodes and d is the node dimension. More...
 
virtual void fillMiddleCoordinates (const GmElement *e, GmMatrix Xnode, GmMatrix &MX) const
 
virtual double axisymmetricFactor (const GmElement *e, const GmMatrix &X, const GmVector &N)
 Returns the factor that should be applied when using axis symetric elements. 1.0 for other etypes.
 
virtual bool isPlaneStress ()
 Returns the factor that should be applied when using axis symetric elements. 1.0 for other etypes.
 
virtual bool isAxisymmetric ()
 Returns TRUE only for axisymmetric models.
 
GmpMechanicPointmechanicPoint ()
 Returns the physics mechanical material point.
 
GmMatrixdep ()
 Returns a reference to the physics constitutive tangent matrix.
 
virtual GmVector timeSim () const
 Returns the simulation time used by the simulation. More...
 

Protected Types

enum  StateVarIds { W_ID = GmpMechanicalSolid::NUM_STATEVAR_IDS, NUM_STATEVAR_IDS }
 IDs for Mechanical and Hydro physics state vars. More...
 
enum  embeddedPhysicsAttributeIds { CONDENSATION_ID = GmpMechanicalSolid::NUM_ATTRI_IDS, NUM_ATTRI_IDS }
 IDs for physics attributes. More...
 

Protected Member Functions

virtual bool loadPrivateData (LuaTable &table)
 
- Protected Member Functions inherited from GmpMechanicalSolid
virtual bool checkAndLoadAttributeAccessors (LuaTable &nodeTable, LuaTable &gaussTable)
 Reimplementation of the common function t o init the _mechanicPoint structure.
 
virtual void calcElementDerivedResultAtPoints (const GmElement *e, int resultId, const GmMatrix &evalPoints, bool evalAtIp, GmMatrix &result)
 The virtual function used by calcDerivedResults() to effectivelly calculate stresses at the given evaluation points. More...
 
virtual void calcElementResetStrains (const GmElement *e)
 The virtual function used by calcDerivedResults() to effectivelly calculate strain reset to zero. When the displacement are defined as zero, the deformation must also be made zero.
 
virtual bool setInitialConditions ()
 Sets the initial conditionrequired by interface elements.
 
virtual bool updatesReturnMappingInfo ()
 Updates the number of iteration and substeps of return mapping algorithm.
 
virtual bool calcMaterialDerivedResults ()
 The virtual function used by calcDerivedResults() to effectively calculate gauss attributes defined by Material.
 

Private Attributes

const char * _pluginType
 The plugin type name.
 
GmpFemPhysicsData _fractureData
 fiber data
 

Additional Inherited Members

- Public Types inherited from GmpMechanicalPhysics
enum  PhysicsAttributeIds {
  ISOPARAMETRIC_ID, STRESS_MODE_ID, STRAIN_MODE_ID, P_STRAIN_MODE_ID,
  BODY_FORCE_ID, CGRAV_ID, GEOMETRIC_ID, RF_MODE_ID,
  RMAPPINGINFO_ID, K0MODE_ID, STRAIN_RESET_ID, CONTACT_ID,
  NUM_ATTRI_IDS
}
 IDs for physics attributes. More...
 
enum  StateVarIds { U_ID, NUM_STATEVAR_IDS }
 IDs for Mechanical physics state vars. More...
 
enum  ExternalLoadsIds { PRESSURE_ID, THERMAL_ID, NUM_EXTLOADS_IDS }
 IDs for Mechanical physics state vars. More...
 
enum  NodeAttributeIds {
  S_NA_ID, E_NA_ID, RF_NA_ID, CF_NA_ID,
  CD_NA_ID, CIV_NA_ID, CIVOLD_NA_ID, NUM_NA_IDS
}
 IDs for physics node attributes. More...
 
enum  GaussAttributeIds {
  S_GA_ID, SOLD_GA_ID, RS_GA_ID, E_GA_ID,
  EOLD_GA_ID, YSR_GA_ID, YSROLD_GA_ID, ST_GA_ID,
  STOLD_GA_ID, ITER_GA_ID, ITEROLD_GA_ID, SUBSTEP_GA_ID,
  SUBSTEPOLD_GA_ID, LINESEARCH_GA_ID, LINESEARCHOLD_GA_ID, NUM_GA_IDS
}
 IDs for physics Gauss attributes. More...
 
enum  ElementPropertyIds {
  THICKNESS_ID, BF_ID, GRAV_ID, DENS_ID,
  DENSB_ID, NUM_PROPER_IDS
}
 IDs for physics element properties. More...
 
enum  BoundaryConditionIds {
  FIXED_U_BC_ID, FIXED_CF_BC_ID, PL_BC_ID, HL_BC_ID,
  WP_BC_ID, NUM_BC_IDS
}
 IDs for accepted boundary condition types. More...
 
enum  BoundaryConditionValueIds {
  BC_UX_ID, BC_UY_ID, BC_UZ_ID, BC_CF_ID,
  BC_PL_ID, BC_HLR_ID, BC_HL_ID, BC_NRL_ID,
  BC_SWF_ID, NUM_BCV_IDS
}
 IDs for property values from accepted boundary condition types. More...
 
enum  ContactBCIds { LOCAL_CBC_ID, GLOBAL_CBC_ID, NUM_CBC_IDS }
 IDs for accepted contact boundary conditions. More...
 
enum  ContactBCValueIds { CBC_KCN_ID, CBC_KSN_ID, CBC_MU_ID, NUM_CBCV_IDS }
 IDs for property values from accepted Contact boundary condition (CBC) More...
 
- Protected Attributes inherited from GmpMechanicalPhysics
GmpMechanicalContact _mecContact
 Object with general contact methods.
 
GmpMechanicPoint_mechanicPoint
 Access to mechanical material point.
 
GmMatrix _Dep
 Constitutive tangent matrix (2 x 2)
 
bool _setInitialCond
 Sets the initial conditions required by the physics.
 

Detailed Description

Basic class for the mechanical physics plugin object.

Member Enumeration Documentation

◆ embeddedPhysicsAttributeIds

IDs for physics attributes.

Enumerator
CONDENSATION_ID 

Id for retrieving the static condensation physics attribute.

NUM_ATTRI_IDS 

The number of physics attribute ids above.

◆ StateVarIds

IDs for Mechanical and Hydro physics state vars.

Enumerator
W_ID 

Id for retrieving the accessor to the jump displacement state var.

NUM_STATEVAR_IDS 

The number of state var ids above.


The documentation for this class was generated from the following files: