24#ifndef _GEMA_PLUGIN_SPRING_H_
25#define _GEMA_PLUGIN_SPRING_H_
28#include <gmpFemPhysicsCommon.h>
41 const GmpFemPhysicsCommonMaterialFactory* matFactory,
const GmLogCategory& logger);
60 virtual FemResultType
fillElementData(
const GmElement* e, GmpFemMatrixSet& elemMatrices, GmpFemVectorSet& elemVectors);
Basic class for the mechanical physics plugin object.
Definition gmpMechanicalPhysics.h:38
Basic class for the standard stress bar physics plugin object.
Definition gmpSpring.h:36
GmpSpring(const char *pluginType, GmSimulationData *simulation, QString id, QString description, const GmpFemPhysicsCommonMaterialFactory *matFactory, const GmLogCategory &logger)
Constructor.
Definition gmpSpring.cpp:50
virtual ~GmpSpring()
Destructor.
Definition gmpSpring.cpp:57
virtual bool checkAndLoadAttributeAccessors(LuaTable &nodeTable, LuaTable &cellTable, LuaTable &gaussTable)
Reimplementation of the common function to init the _mechanicPoint structure.
Definition gmpSpring.cpp:84
double calcElementStress(GmElement *e)
Calculates the bar internal stress.
Definition gmpSpring.cpp:226
virtual double fillBuMatrix(const GmElement *e, const GmShape *shape, const GmVector &ncoord, const GmMatrix &X, const GmVector &N, const GmMatrix &J, GmMatrix &Bp)
Given a point 'ncood', the element coordinate matrix 'X', the point shape functions 'N' and the trans...
Definition gmpSpring.cpp:192
virtual const QVariantMap * physicsMetaDataMap()
Returns a reference for the single Hydraulics attribute map, built when the function is called for th...
Definition gmpSpring.cpp:62
virtual FemResultType fillElementData(const GmElement *e, GmpFemMatrixSet &elemMatrices, GmpFemVectorSet &elemVectors)
Fills the element internal force and stiffness.
Definition gmpSpring.cpp:118
virtual bool calcDerivedResults(bool nonLinearSolver)
Recovers per element stresses for bar elements, storing the results in an element attribute.
Definition gmpSpring.cpp:210
springPropertyIds
IDs for physics element properties.
Definition gmpSpring.h:48
@ KS_ID
Id for retrieving the accessor of axial elastic stiffness.
Definition gmpSpring.h:49
@ NUM_PROPER_IDS
The number of property ids above.
Definition gmpSpring.h:52
Declaration of the GmpMechanicalPhysics class.