doc:user:geometry:mesh:3d
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
doc:user:geometry:mesh:3d [2014/08/08 17:40] – joris | doc:user:geometry:mesh:3d [2021/11/19 14:52] (current) – papeleux | ||
---|---|---|---|
Line 1: | Line 1: | ||
- | ====== 3D meshers | + | ====== 3D Meshers (Volumes) |
- | ===== Transfinite | + | ===== Transfinite |
- | Metafor | + | Metafor |
__Preliminary note:__ To mesh a '' | __Preliminary note:__ To mesh a '' | ||
Line 19: | Line 19: | ||
| '' | | '' | ||
- | In this case, the '' | + | In this case, the '' |
{{ doc: | {{ doc: | ||
Line 79: | Line 79: | ||
===== Mesher by extrusion ===== | ===== Mesher by extrusion ===== | ||
- | 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 [[doc: | + | 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 114: | Line 126: | ||
=== Example 2 ==== | === Example 2 ==== | ||
- | De la même manière, une face plane maillée en triangles | + | In a same way, a planar |
{{ commit: | {{ commit: | ||
- | ==== Création de la géométrie | + | ==== Creation of the geometry |
- | === Cas général: Extrusion | + | === General case: Extrusion |
- | Après l'extrusion | + | After the extrusion |
mesher.createGeometryOn(Side, | mesher.createGeometryOn(Side, | ||
- | Les objets géométriques créés sont numérotés à partir de NoGObject. | + | Geometrical objects are created and numbered starting from NoGObject. |
+ | |||
+ | The function '' | ||
- | Une fonction permet de créer uniquement une '' | ||
line = createLineAbove(pt1, | line = createLineAbove(pt1, | ||
- | | line | '' | + | | line | '' |
- | | pt1 | '' | + | | pt1 | reference |
- | | NumPtOnTop | numéro du '' | + | | NumPtOnTop | number of the '' |
- | === Cas particulier: extrusion | + | === Particular case : extrusion |
- | + | To create a geometry after the extrusion | |
- | Pour créer la géométrie après l'extrusion | + | |
mesher.createGeometry(NoGObject, | mesher.createGeometry(NoGObject, | ||
- | :!: Pour utiliser cette fonction il faut que la cible à extruder soit de type '' | + | :!: To use this function, the target to extrude must be of type '' |
- | Les objets géométriques créés sont numérotés à partir de NoGObject. | + | Geometrical objects are created and numbered starting from NoGObject. |
=== Récupération des objets géométrique === | === Récupération des objets géométrique === | ||
- | + | The retrieval of the created geometrical objetcs is done with the functions: | |
- | La récupération des objets géométrique créés se fait avec les fonctions: | + | |
Vol1 = mesher.getVolumeOnTop(side1) | Vol1 = mesher.getVolumeOnTop(side1) | ||
Line 156: | Line 167: | ||
point = mesher.getPointOnTop(ptref) | point = mesher.getPointOnTop(ptref) | ||
- | | Vol1 | '' | + | | Vol1 | '' |
- | | side | '' | + | | side | '' |
- | | curve | '' | + | | curve | '' |
- | | point | '' | + | | point | '' |
- | La géométrie est crée dans le cas test '' | + | The geometry is created in the test cases '' |
- | <note important> | + | < |
- | ATTENTION, après la création de la géométrie, il faut ajouter le '' | + | CAREFUL, after creating the geometry, the '' |
</ | </ | ||
+ | ===== Mesher by extrusion of revolution ===== | ||
- | ===== Mailleur par extrusion | + | Axisymmetric |
+ | The extrusion can be open ($0 < \mbox{angle} < 360^\circ$) or close ($\mbox{angle} | ||
- | Extrusion axisymétrique d'une face maillée. | + | To this day, no reconstruction |
- | L' | + | |
- | A ce jour, il n'y a pas de reconstruction | + | |
mesher = RevolutionExtrusionMesher3D(gobject, | mesher = RevolutionExtrusionMesher3D(gobject, | ||
Line 181: | Line 191: | ||
mesher.execute() | mesher.execute() | ||
- | | gobject | + | | gobject |
- | | group | Group father | + | | group | Group father |
- | | axe | Ligne géométrique définissant l'axe de révolution | + | | axe | Line which defines the revolution axis |
- | | setLength | + | | setAngle |
- | | setNbOfLayers | + | | setNbOfLayers |
- | | execute | + | | setFillGroup |
+ | | execute | ||
+ | | getLastLayer | ||
- | ==== Exemple | + | ==== Example |
{{: | {{: |
doc/user/geometry/mesh/3d.1407512403.txt.gz · Last modified: 2016/03/30 15:22 (external edit)