MechanicalFemPhysics
The GeMA Mechanical FEM Physics Plugin
Public Member Functions | Static Public Member Functions | Static Private Member Functions | Static Private Attributes | List of all members
GmpMechanicalMaterialLua Class Reference

A Mechanical material whose behaviour is implemented through Lua functions. More...

#include <gmpMaterialLua.h>

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

Public Member Functions

 GmpMechanicalMaterialLua (const GmPluginData *pdata, int typeIndex, QString typeName, const GmLogCategory &logger)
 
virtual bool mechanicalConstitutiveModel (const GmElement *e, GmMatrix &Dep, const GmpMechanicPoint *mp, const GmVector *coord, const GmVector &Time, unsigned nc, bool ips=false) const
 The mechanicalConstitutiveModel() interface method implementation based on the constitutiveModel() user Lua function.
 
virtual bool isIsotropic () const
 The isIsotropic() interface method implementation based on the isIsotropic field on the plugin data.
 
virtual bool setInitialConditions (const GmElement *e, GmpMechanicPoint *mp, const GmVector *coord, unsigned sc) const
 The setInitialConditions() interface method implementation based on the setInitialConditions() user Lua function.
 
virtual bool updateDeformationGradient (GmMatrix &F, const GmElement *e, const GmVector *coord, int ip, bool ips=false) const
 The updateDeformationGradient() interface method implementation based on the updateDeformationGradient() user Lua function.
 
virtual bool calcDerivedResults (const GmElement *e, GmpMechanicPoint *mp, const GmVector *coord, unsigned sc) const
 The calcDerivedResults() interface method implementation based on the calcDerivedResults() user Lua function.
 

Static Public Member Functions

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. Before instancing a material object finds its corresponding PluginData in the simulation data object. Matching is done by typeName. If not found, returns NULL.
 

Static Private Member Functions

static QVariant getMpValue (QString field, const void *context, const GmElement *e, int ip, const GmVector *coord, const GmLogCategory &logger)
 The method used to fill the material point values used by the Lua function.
 
static bool setMpValue (QString field, const void *context, const GmElement *e, int ip, const QVariant &v)
 The method used to update the material point values calculated by the Lua function.
 

Static Private Attributes

static QMap< QString, int > _mpNameMap
 Maps mechanic point data names used in the user functions to their internal id. More...
 

Detailed Description

A Mechanical material whose behaviour is implemented through Lua functions.

Member Data Documentation

◆ _mpNameMap

QMap< QString, int > GmpMechanicalMaterialLua::_mpNameMap
staticprivate
Initial value:
={
{"oldState", GmpMechanicPoint::SD_oldState},
{"newState", GmpMechanicPoint::SD_newState},
{"oldStrain", GmpMechanicPoint::SD_oldStrain},
{"newStrain", GmpMechanicPoint::SD_newStrain},
{"oldStress", GmpMechanicPoint::SD_oldStress},
{"newStress", GmpMechanicPoint::SD_newStress},
{"residualStress", GmpMechanicPoint::SD_residualStress},
{"newYSR", GmpMechanicPoint::SD_newYSR},
{"oldYSR", GmpMechanicPoint::SD_oldYSR},
{"iteration", GmpMechanicPoint::SD_iteration},
{"oldTemp", GmpMechanicPoint::SD_oldTemp},
{"newTemp", GmpMechanicPoint::SD_newTemp},
{"F", GmpMechanicPoint::SD_F},
{"enabledK0", GmpMechanicPoint::SD_enabledK0},
{"updatedLD", GmpMechanicPoint::SD_updatedLD},
}

Maps mechanic point data names used in the user functions to their internal id.

< Maps mechanic point data names used in the user functions to their internal id


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