Greg-Hamel / FEMur

Simple Finite Element Model (FEM) Library
MIT License
0 stars 0 forks source link

Create 2D mesher #8

Closed Greg-Hamel closed 7 years ago

Greg-Hamel commented 7 years ago

A Mesh2D class and its methods need to be implemented in order to create a solvable 2D mesh.

Greg-Hamel commented 7 years ago

The 2D mesher will start by being a simple Quadratic Element mesher, for simplicity of first implementation.

The mesher will follow these steps to obtain the requested mesh:

  1. Get user's data point, being the minimal number of points defining the 2D shape (i.e. corners)
  2. Find the biggest length and width of the given points
  3. Create a Rectangle with the a size based on the two values found in point 3.
  4. Mesh the rectangle created in point 4 with quad elements with a maximal nodal distance provided by the user.
  5. Scale the Rectangle's nodes and elements to fit the provided data points. Assume all provided points are connected in a linear fashion.

If the provided section is of a complex geometry, the mesher should subdivide the data points into more simple data sections allowing for a rectangle interpolation as described above. For example, a rectangle with a single sawtooth edge would be interpreted as a multitude of rectangles matching the number of tooth and spanning towards the other edge.

Greg-Hamel commented 7 years ago

This issue has been closed since a mesher feature is a project of its own. Might be tackled later.