![]() |
MechanicalFemPhysics
The GeMA Mechanical FEM Physics Plugin
|
Basic class for the mechanical physics plugin object. More...
#include <gmpMechanicalPhysics.h>


Public Member Functions | |
| 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 const QVariantMap * | physicsMetaDataMap () |
| Returns a reference for the single mechanical physics attribute map, built when the function is called for the first time. | |
| virtual bool | supportsStateDumping () |
| virtual unsigned | stress_state (void) |
| Returns the number of stress components. More... | |
| virtual FemResultType | fillElementData (const GmElement *e, GmpFemMatrixSet &elemMatrices, GmpFemVectorSet &elemVectors)=0 |
| 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 | calcDerivedResults (bool nonLinearSolver) |
| Calc stress component on nodes and/or Gauss points, ADDING the calculated value to the current result. | |
| 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. | |
| GmpMechanicPoint * | mechanicPoint () |
| Returns the physics mechanical material point. | |
| GmMatrix & | dep () |
| Returns a reference to the physics constitutive tangent matrix. | |
| virtual GmVector | timeSim () const |
| Returns the simulation time used by the simulation. More... | |
Protected Attributes | |
| 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. | |
Private Attributes | |
| const char * | _pluginType |
| The plugin type name. | |
Basic class for the mechanical physics plugin object.
IDs for accepted boundary condition types.
IDs for property values from accepted boundary condition types.
IDs for property values from accepted Contact boundary condition (CBC)
IDs for physics element properties.
IDs for physics Gauss attributes.
IDs for physics node attributes.
IDs for physics attributes.
|
pure virtual |
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.
The shape function given as parameter is the shape function that should be used to calculate the partial derivatives. It will be a linear function in case of iso-parametric elements and the element shape function otherwise.
Matrices J, X and N should have been calculated using the element shape function even in an iso-parametric setting.
Implemented in GmpMechanicalLargeDisplacementSolid, GmpBar, and GmpSpring.
|
virtual |
Fills the contact boundary contribution.
Fills the contact data K_con, Fi_con and Fe_con.
|
virtual |
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.
Reference: "Programing the finite element Mthod", I.M. Smith and D. V. Griffits
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.
See comments on base class. Fills the vector ue with nodal displacements.
Values are stored in 'ue' by node. For a two nodes element with 3 dimensions ue is filled with [ux1, uy1, uz1, ux2, uy2, uz2]
|
virtual |
Returns the number of stress components.
See comments on base class. Returns the number of stress components.
|
virtual |
Returns the simulation time used by the simulation.
Returns a time vector with the current and the previous times.
1.8.15