Download Python Interface

Transcript
Python Interface, Release 4.0
•E = Eltm(’grad’, Fem FEM) return a descriptor for the integration of the gradient of shape functions on elements, using the Fem FEM.
•E = Eltm(’hessian’, Fem FEM) return a descriptor for the integration of the hessian of shape
functions on elements, using the Fem FEM.
•E = Eltm(’normal’) return a descriptor for the unit normal of convex faces.
•E = Eltm(’grad_geotrans’) return a descriptor to the gradient matrix of the geometric transformation.
•E = Eltm(’grad_geotrans_inv’) return a descriptor to the inverse of the gradient matrix of the
geometric transformation (this is rarely used).
•E = Eltm(’product’, Eltm A, Eltm B) return a descriptor for the integration of the tensorial
product of elementary matrices A and B.
7.3 Fem
class Fem(*args)
GetFEM Fem object
This object represents a finite element method on a reference element.
General constructor for Fem objects
•Fem TF = Fem(’interpolated_fem’, MeshFem mf, MeshIm mim, [ivec
blocked_dof]) Build a special Fem which is interpolated from another MeshFem.
Using this special finite element, it is possible to interpolate a given MeshFem mf on another mesh, given
the integration method mim that will be used on this mesh.
Note that this finite element may be quite slow, and eats much memory.
•Fem(string fem_name) The fem_name should contain a description of the finite element method.
Please refer to the getfem++ manual (especially the description of finite element and integration methods)
for a complete reference. Here is a list of some of them:
–FEM_PK(n,k) classical Lagrange element Pk on a simplex of dimension n.
–FEM_PK_DISCONTINUOUS(N,K[,alpha]) discontinuous Lagrange element Pk on a simplex of dimension n.
–FEM_QK(n,k) classical Lagrange element Qk on quadrangles, hexahedrons etc.
–FEM_QK_DISCONTINUOUS(n,k[,alpha]) discontinuous Lagrange element Qk on quadrangles,
hexahedrons etc.
–FEM_Q2_INCOMPLETE incomplete 2D Q2 element with 8 dof (serendipity Quad 8 element).
–FEM_PK_PRISM(n,k) classical Lagrange element Pk on a prism.
–FEM_PK_PRISM_DISCONTINUOUS(n,k[,alpha]) classical discontinuous Lagrange element Pk on
a prism.
–FEM_PK_WITH_CUBIC_BUBBLE(n,k) classical Lagrange element Pk on a simplex with an additional volumic bubble function.
–FEM_P1_NONCONFORMING non-conforming P1 method on a triangle.
–FEM_P1_BUBBLE_FACE(n) P1 method on a simplex with an additional bubble function on face 0.
–FEM_P1_BUBBLE_FACE_LAG P1 method on a simplex with an additional lagrange dof on face 0.
–FEM_PK_HIERARCHICAL(n,k) PK element with a hierarchical basis.
–FEM_QK_HIERARCHICAL(n,k) QK element with a hierarchical basis
–FEM_PK_PRISM_HIERARCHICAL(n,k) PK element on a prism with a hierarchical basis.
–FEM_STRUCTURED_COMPOSITE(FEM,k) Composite fem on a grid with k divisions.
–FEM_PK_HIERARCHICAL_COMPOSITE(n,k,s) Pk composite element on a grid with s subdivisions and with a hierarchical basis.
28
Chapter 7. API reference