PatchMesher class

For for meshing quadrilateral two-dimensional domains.

../../design/images/patch.png

Meshing a quadrilateral patch with quadrilaterals or triangles.

Note

Meshers are currently under development but not yet fully functional with the current distribution. Stay tuned for updates.

Parent class

Class doc

class femedu.mesher.PatchMesher.PatchMesher(model, *pts)

Mesher for plate and shell elements on a quadrilateral domain, including in-plane and out-of plane loaded plates.

map(s, t)

maps the local coordinates (s,t) from a bi-unit-square to the actual position (x,y) in the global model space

quadMesh(NeX, NeY, element_type, material, **kwargs)

2D mesher using quadrilateral elements

Parameters:
  • NeX (int) – number of elements along the first axis

  • NeY (int) – number of elements along the second axis

  • element_type – compatible element type

  • material – a material object

Returns (nodes, elements):

Variables:
  • nodes – list of created Node objects

  • elements – list of created (subclass of) Element objects

triangleMesh(NeX, NeY, element_type, material, **kwargs)

2D mesher using triangular elements

This is an abstract class - requires implementation in subclass

Parameters:
  • NeX (int) – number of elements along the first axis

  • NeY (int) – number of elements along the second axis

  • element_type – compatible element type

  • material – a material object

Returns (nodes, elements):

Variables:
  • nodes – list of created Node objects

  • elements – list of created (subclass of) Element objects