doc:user:geometry:mesh:3d
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revisionNext revisionBoth sides next revision | ||
doc:user:geometry:mesh:3d [2014/08/08 22:33] – [Mesher by extrusion] joris | doc:user:geometry:mesh:3d [2020/07/06 15:53] – [Mesher by extrusion] papeleux | ||
---|---|---|---|
Line 1: | Line 1: | ||
- | ====== 3D meshers | + | ====== 3D Meshers (Volumes) |
- | ===== Transfinite | + | ===== Transfinite |
Metafor possesses a simple transfinite mesher, which is able to mesh hexahedra (object with 6 sides, such as a cube). For more complex geometries, it is necessary to divide it into hexaedra or use external meshers ([[doc: | Metafor possesses a simple transfinite mesher, which is able to mesh hexahedra (object with 6 sides, such as a cube). For more complex geometries, it is necessary to divide it into hexaedra or use external meshers ([[doc: | ||
Line 19: | Line 19: | ||
| '' | | '' | ||
- | In this case, the '' | + | In this case, the '' |
{{ doc: | {{ doc: | ||
Line 81: | Line 81: | ||
This method can be used, but could be improved upon: density non-constant along the extrusion direction, improvement of meshing speed, giving the extruded nodes as groups (internal ones, external surface, ...). For now on, a '' | This method can be used, but could be improved upon: density non-constant along the extrusion direction, improvement of meshing speed, giving the extruded nodes as groups (internal ones, external surface, ...). For now on, a '' | ||
- | The geometry associated to the extrusion can also be created (only for a '' | + | The geometry associated to the extrusion can also be created (only for a '' |
=== Example ==== | === Example ==== | ||
- | Extrusion of a circle pierced by a square (see'' | + | Extrusion of a circle pierced by a square (see '' |
- | {{ commit: | + | {{commit: |
+ | {{: | ||
+ | {{: | ||
+ | {{: | ||
The definition and meshing of the circle can be seen in the the file. To extrude the result ('' | The definition and meshing of the circle can be seen in the the file. To extrude the result ('' | ||
Line 94: | Line 97: | ||
mesher.setFillGroup(True) | mesher.setFillGroup(True) | ||
mesher.setDirection(0.0, | mesher.setDirection(0.0, | ||
- | mesher.setLength(8) | + | mesher.setLength(length) |
- | mesher.setNbOfLayers(10) | + | mesher.setNbOfLayers(nLayers, dist = 1.0) |
+ | mesher.setAnglefct(fctAngle) | ||
+ | mesher.setXfct(fctX) | ||
+ | mesher.setYfct(fctY) | ||
mesher.execute() | mesher.execute() | ||
grpNo = mesher.getLastLayer(no) | grpNo = mesher.getLastLayer(no) | ||
Line 104: | Line 110: | ||
| setLength | | setLength | ||
- | | setNbOfLayers | + | | setNbOfLayers |
+ | | | dist : ratio between the length of the last and first element (default : dist = 1.0) | | ||
+ | | setAnglefct(fctAngle) | Application of a rotation of slices around extrusion vector (direction ' | ||
+ | | fctAngle | One parameter defining rotation of slices function in degrees (t) - t=[0,1] ATTENTION : fctAngle(0) = 0 | | ||
+ | | setXfct(fctX) | Application of a modification of the generatrice direction in X Direction | | ||
+ | | setYfct(fctY) | Application of a modification of the generatrice direction in Y Direction | | ||
+ | | fctX/fctY | One parameter defining modification of generatrice : fct(t) - ATTENTION t=[0, | ||
| execute | | execute | ||
| getLastLayer(no) | returns the group grpNo (number '' | | getLastLayer(no) | returns the group grpNo (number '' | ||
Line 169: | Line 181: | ||
===== Mesher by extrusion of revolution ===== | ===== Mesher by extrusion of revolution ===== | ||
- | Asymmetric | + | Axisymmetric |
The extrusion can be open ($0 < \mbox{angle} < 360^\circ$) or close ($\mbox{angle} = 360^\circ$). | The extrusion can be open ($0 < \mbox{angle} < 360^\circ$) or close ($\mbox{angle} = 360^\circ$). | ||
doc/user/geometry/mesh/3d.txt · Last modified: 2021/11/19 14:52 by papeleux