Metafor

ULiege - Aerospace & Mechanical Engineering

User Tools

Site Tools


doc:user:geometry:mesh:3d

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
doc:user:geometry:mesh:3d [2018/07/10 14:50] – [With auto-detection] boemerdoc:user:geometry:mesh:3d [2021/11/19 14:52] (current) papeleux
Line 85: Line 85:
 === Example ==== === Example ====
  
-Extrusion of a circle pierced by a square (see ''apps.qs.extruMesher3d'' and ''apps.qs.extruMesher3dTx'' or ''apps.qs.extruMesher3dTorsion'' for modified extrusions).+Extrusion of a circle pierced by a square (see ''apps.qs.extruMesher3d'' and ''apps.qs.extruMesher3dTx'' or ''apps.qs.extruMesher3dTorsion'' ''apps.qs.extruMesher3dDist03'' for modified extrusions).
  
 {{commit:2006:extru2_000.jpg?200|Extrusion d'un cercle troué}} {{commit:2006:extru2_000.jpg?200|Extrusion d'un cercle troué}}
 {{:doc:user:geometry:mesh:extrusionmeshertx.jpg?150|setXfct(fctX) }} {{:doc:user:geometry:mesh:extrusionmeshertx.jpg?150|setXfct(fctX) }}
 {{:doc:user:geometry:mesh:extrusionmesherrot.jpg?150|setAnglefct(fctAngle)}} {{:doc:user:geometry:mesh:extrusionmesherrot.jpg?150|setAnglefct(fctAngle)}}
 +{{:doc:user:geometry:mesh:extrusionmesherDist.png?100|setNbOfLayers(10,0.3)}}
  
 The definition and meshing of the circle can be seen in the the file. To extrude the result (''[[doc:user:geometry:user:faces|Side]]'' #1): The definition and meshing of the circle can be seen in the the file. To extrude the result (''[[doc:user:geometry:user:faces|Side]]'' #1):
Line 96: Line 97:
   mesher.setFillGroup(True)   mesher.setFillGroup(True)
   mesher.setDirection(0.0,0.0,1.0)   mesher.setDirection(0.0,0.0,1.0)
-  mesher.setLength(8+  mesher.setLength(length
-  mesher.setNbOfLayers(10)+  mesher.setNbOfLayers(nLayers, dist = 1.0)
   mesher.setAnglefct(fctAngle)    mesher.setAnglefct(fctAngle)
   mesher.setXfct(fctX)    mesher.setXfct(fctX)
Line 109: Line 110:
 | setLength        | length of the extrusion | | setLength        | length of the extrusion |
  
-| setNbOfLayers    | number of extruded elements                                                         |+| setNbOfLayers    | nLayers : number of extruded elements                                          | 
 +|                  | 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 'z' but starting from origin!!!) |  | setAnglefct(fctAngle) | Application of a rotation of slices around extrusion vector (direction 'z' but starting from origin!!!) | 
 | fctAngle | One parameter defining rotation of slices function in degrees (t) - t=[0,1] ATTENTION : fctAngle(0) = 0 | | fctAngle | One parameter defining rotation of slices function in degrees (t) - t=[0,1] ATTENTION : fctAngle(0) = 0 |
Line 189: Line 191:
   mesher.execute()   mesher.execute()
  
-| gobject          | Meshed 2D geometrical entity                                                              +| gobject          | Meshed 2D geometrical entity                                                            
-| group            | Group father of the 3D mesh elements                                                             +| group            | Group father of the 3D mesh elements                                                    
-| axe              | Line which defines the revolution axis                                       +| axe              | Line which defines the revolution axis                                                  
-setLength        length of the extrusion                                                                    |+setAngle         Angle of the extrusion (in degrees 0.0 < angle <= 360.0 - default = 180.0)              |
 | setNbOfLayers    | number of extruded elements                                                             | | setNbOfLayers    | number of extruded elements                                                             |
 +| setFillGroup     | fill the reference group with all nodes (base & generated)                              |
 | execute          | executes the extrusion                                                                  | | execute          | executes the extrusion                                                                  |
 +| getLastLayer     | return the group of the last layer (if not closed extrusion)                            |
  
 ==== Example ==== ==== Example ====
  
 {{:commit:2012:revolutionextusion1.png?200|}} {{:commit:2012:revolutionextrusion2.png?200|}} {{:commit:2012:revolutionextrusion3.png?200|}} {{:commit:2012:revolutionextusion1.png?200|}} {{:commit:2012:revolutionextrusion2.png?200|}} {{:commit:2012:revolutionextrusion3.png?200|}}
doc/user/geometry/mesh/3d.1531227036.txt.gz · Last modified: 2018/07/10 14:50 by boemer

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki