24 #ifndef _GEMA_INT2D_CELL_GEOMETRY_INFO_H_ 25 #define _GEMA_INT2D_CELL_GEOMETRY_INFO_H_ 88 GmInt2DEdgeIntegrationRuleSet, GmLinearInt2DEdgeIntegrationRuleSetDefaults>
137 constexpr
int order[] = { 0,1,5,2,3,4 };
154 GmInt2DEdgeIntegrationRuleSet, GmQuadraticInt2DEdgeIntegrationRuleSetDefaults>
166 Xm.col(0) = 0.5*(X.col(0)+X.col(3));
167 Xm.col(1) = 0.5*(X.col(1)+X.col(2));
168 Xm.col(2) = 0.5*(X.col(4)+X.col(5));
176 Xm.col(0) = 0.5*(X.col(0)+X.col(3));
177 Xm.col(1) = 0.5*(X.col(1)+X.col(2));
178 Xm.col(2) = 0.5*(X.col(4)+X.col(5));
187 constexpr
int order[] = {0,4,1,2,5,3};
218 constexpr
int order[] = {0,4,1,7,2,5,3,6};
GmCellGeometryIntegrationRuleSet< GmQuadGaussEdgeIntegrationRule, GmQuadLobattoEdgeIntegrationRule, GmCellGeometryNullIntegrationRule, GmCellGeometryNullIntegrationRule > GmInt2DEdgeIntegrationRuleSet
The set of possible EDGE integration rules, per integration rule type, for the family of 2D interface...
Definition: gmInt2dCellGeometryInfo.h:50
GmInt2DQ6CellGeometryInfo(GmCellGeometryMetadata &&metadata)
Protected constructor. Only a single Int2DQ6 geometry info object is ever necessary,...
Definition: gmInt2dCellGeometryInfo.h:194
1D Lobatto Integration rules (for bar elements)
Definition: gmBarIntegrationRule.h:83
virtual bool isValid(const GmMatrix &X, double tol) const
Virtual method that should be implemented if this geometry info supports the GM_CELL_GEOMETRY_VALID c...
Definition: gmInt2dCellGeometryInfo.h:134
Lobatto integration rule for Quad element borders.
Definition: gmQuadIntegrationRule.h:144
GmCellGeometryIntegrationRuleSetDefaultRules< GM_GAUSS_RULE_TYPE, 2, 2, 2, 2 > GmLinearInt2DIntegrationRuleSetDefaults
The set of default rules for a linear 2D interface ELEMENT. Template parameters 2 to 5 are the defaul...
Definition: gmInt2dCellGeometryInfo.h:59
void centroidByIntegration(const GmMatrix &X, GmVector &coord, const GmIntegrationRule *ir=NULL) const
Given a cell geometry defined by matrix X (with node coordinates organized by column) performs a nume...
Definition: gmCellGeometryInfo.cpp:114
Declaration of the 2D shapes for interface elements inheriting from GmShape class Previosuly part of ...
1D Newton cotes Integration rules (for bar elements)
Definition: gmBarIntegrationRule.h:59
Gauss rules.
Definition: gmIntegrationRule.h:75
virtual GmShape * shapeInstance(int P, int Q) const
Shape function factory. Should return a NEW instance of the shape function object for this type....
Definition: gmInt2dCellGeometryInfo.h:211
virtual bool isValid(const GmMatrix &X, double tol) const
Virtual method that should be implemented if this geometry info supports the GM_CELL_GEOMETRY_VALID c...
Definition: gmInt2dCellGeometryInfo.h:184
GmMatrix shuffle(const GmMatrix &X, const int order[], int size)
Returns quad8 vertices in circular order.
Definition: gmGeometryUtils.cpp:612
A type used to represent a 'unexistant" integration rule. Should be used as template parameter for Gm...
Definition: gmCellGeometryIntegrationRuleSet.h:35
The Int2DL6 implementation.
Definition: gmInt2dCellGeometryInfo.h:124
GmCellGeometryIntegrationRuleSetDefaultRules< GM_GAUSS_RULE_TYPE, 3, 3, 3, 3 > GmQuadraticInt2DIntegrationRuleSetDefaults
The set of default rules for a quadratic 2D interface ELEMENT. Template parameters 2 to 5 are the def...
Definition: gmInt2dCellGeometryInfo.h:73
A helper class used to store the default rules for each rule type. Template parameters are the defaul...
Definition: gmCellGeometryIntegrationRuleSet.h:43
virtual GmShape * shapeInstance(int P, int Q) const
Shape function factory. Should return a NEW instance of the shape function object for this type....
Definition: gmInt2dCellGeometryInfo.h:94
GmCellGeometryIntegrationRuleSetDefaultRules< GM_GAUSS_RULE_TYPE, 2, 2, -1, -1 > GmLinearInt2DEdgeIntegrationRuleSetDefaults
The set of default rules for a linear 2D interface EDGE. Template parameters 2 to 5 are the default r...
Definition: gmInt2dCellGeometryInfo.h:64
virtual bool isValid(const GmMatrix &X, double tol) const
Virtual method that should be implemented if this geometry info supports the GM_CELL_GEOMETRY_VALID c...
Definition: gmInt2dCellGeometryInfo.h:110
A bar cell 2D with 3 nodes.
Definition: gmCellType.h:33
GmShape specialization for a 2D quadratic interface element with 8 nodes object 2 nodes (x,...
Definition: gmInt2DShape.h:208
void edgeCentroid(const GmVector &p1, const GmVector &p2, GmVector &coord)
Returns the cartesian coordinate of the edge centroid.
Definition: gmGeometryUtils.cpp:283
Shape function handling base classe.
Definition: gmShape.h:37
virtual double dimension(const GmMatrix &X) const
Returns the Int2DQ6 length at the "mid edge".
Definition: gmInt2dCellGeometryInfo.h:163
GmCellGeometryIntegrationRuleSet< GmLineGaussIntegrationRule, GmLineLobattoIntegrationRule, GmLineNewtonIntegrationRule, GmLineNewtonIntegrationRule > GmInt2DIntegrationRuleSet
The set of possible ELEMENT integration rules, per integration rule type, for the family of 2D interf...
Definition: gmInt2dCellGeometryInfo.h:42
Declaration of the GmCellGeometryIntegrationRuleSet class & friends.
GmInt2DL6CellGeometryInfo(GmCellGeometryMetadata &&metadata)
Private constructor. Only a single Int2DL6 geometry info object is ever necessary,...
Definition: gmInt2dCellGeometryInfo.h:144
static const GmCellGeometryInfo * geometryInfo(GmCellType type)
Returns the geometry info objct associated with type. NOT FOR GENERAL USE.
Definition: gmCellGeometry.h:522
A helper class used to store the class types for each rule type. Template parameters are the implemen...
Definition: gmCellGeometryIntegrationRuleSet.h:196
The Int2DL4 implementation.
Definition: gmInt2dCellGeometryInfo.h:86
GmShape specialization for a 2D linear interface element with 4 nodes object.
Definition: gmInt2DShape.h:133
bool polygon2DIsCCW(const GmMatrix &X)
Returns true if the polygon delimited by the cell vertices is oriented CCW.
Definition: gmGeometryUtils.cpp:527
virtual double dimension(const GmMatrix &X) const
Returns the Int2DL4 length at the "mid edge".
Definition: gmInt2dCellGeometryInfo.h:97
Utilitary functions for working with geometry.
An auxiliary class that can be used as base for surface elements. Implements the needed integration r...
Definition: gmCellGeometryInfo.h:348
double dimensionByIntegration(const GmMatrix &X, const GmIntegrationRule *ir=NULL) const
Given a cell geometry defined by matrix X (with node coordinates organized by column) performs a nume...
Definition: gmCellGeometryInfo.cpp:76
virtual void centroidCartesian(const GmMatrix &X, GmVector &coord) const
Returns the Int2DQ6 centroid as a Bar3 at the "mid edge".
Definition: gmInt2dCellGeometryInfo.h:173
virtual GmShape * shapeInstance(int P, int Q) const
Shape function factory. Should return a NEW instance of the shape function object for this type....
Definition: gmInt2dCellGeometryInfo.h:160
#define GMC_API_EXPORT
Macro for controling if the class is being exported (GEMA_CORE_LIB defined) or imported (GEMA_CORE_LI...
Definition: gmCoreConfig.h:35
Declaration of the GmQuadXxxxIntegrationRule family of classes, including border rules....
static const GmInt2DQ6CellGeometryInfo * instance()
Instance function for the Int2DQ6 single geometry object.
Definition: gmInt2dCellGeometryInfo.cpp:150
GmInt2DQ8CellGeometryInfo(GmCellGeometryMetadata &&metadata)
Private constructor. Only a single Int2DQ8 geometry info object is ever necessary,...
Definition: gmInt2dCellGeometryInfo.h:225
double edgeLength(const GmVector &p1, const GmVector &p2)
Calculates the length of the edge determined by points p1 and p2.
Definition: gmGeometryUtils.cpp:157
virtual GmShape * shapeInstance(int P, int Q) const
Shape function factory. Should return a NEW instance of the shape function object for this type....
Definition: gmInt2dCellGeometryInfo.h:130
The Int2DQ8 implementation.
Definition: gmInt2dCellGeometryInfo.h:205
virtual void centroidCartesian(const GmMatrix &X, GmVector &coord) const
Returns the Int2DL4 centroid as a Bar2 at the "mid edge".
Definition: gmInt2dCellGeometryInfo.h:103
static const GmInt2DL4CellGeometryInfo * instance()
Instance function for the Int2DL4 single geometry object.
Definition: gmInt2dCellGeometryInfo.cpp:34
Declaration of the GmCellGeometryInfo base class.
GmCellGeometryIntegrationRuleSetDefaultRules< GM_GAUSS_RULE_TYPE, 3, 3, -1, -1 > GmQuadraticInt2DEdgeIntegrationRuleSetDefaults
The set of default rules for a quadratic 2D interface EDGE. Template parameters 2 to 5 are the defaul...
Definition: gmInt2dCellGeometryInfo.h:78
arma::vec GmVector
The basic type for a GeMA vector object. Currently based on an Armadillo vector.
Definition: gmVector.h:34
The Int2DQ6 implementation.
Definition: gmInt2dCellGeometryInfo.h:152
arma::mat GmMatrix
The basic type for a GeMA matrix object. Currently based on an Armadillo matrix.
Definition: gmMatrix.h:38
GmShape specialization for a 2D quadratic interface element with 6 nodes object.
Definition: gmInt2DShape.h:182
virtual bool isValid(const GmMatrix &X, double tol) const
Virtual method that should be implemented if this geometry info supports the GM_CELL_GEOMETRY_VALID c...
Definition: gmInt2dCellGeometryInfo.h:215
GmInt2DL4CellGeometryInfo(GmCellGeometryMetadata &&metadata)
Protected constructor. Only a single Int2DL4 geometry info object is ever necessary,...
Definition: gmInt2dCellGeometryInfo.h:114
1D Gauss Integration rules (for bar elements)
Definition: gmBarIntegrationRule.h:36
Declaration of the GmLineXxxxIntegrationRule family of classes Content previously in gmIntegrationRul...
GmShape specialization for a 2D coupled interface element with 6 nodes object with 4 nodes (x,...
Definition: gmInt2DShape.h:166
Gauss integration rule for Quad element borders.
Definition: gmQuadIntegrationRule.h:130