Personal tools
You are here: Home User Section Tutorials EDF Exercise 2

EDF Exercise 2

2D Modeling and Meshing Example

This sample is known to work on the latest SALOME release.
The compatibility with previous versions of SALOME is not guaranteed, though the sample can work on old versions also.

Objective

Geometrical Primitives, triangular 2D mesh, Zone Refinement, mesh modification, sewing.

Copyright © EDF R&D 2014.
This tutorial is a part of the EDF internal training course; it does not describe a real use case.

 Geometry

  • Launch SALOME.

  • Create a new study.

  • Launch GEOM module.

Modification of preferences: (menu File/Preferences).

  • Geometry: Step value for spin boxes = 100.
  • Mesh: Check Automatic update.
  • Display Mode: Shading
  • Modify the color of Nodes.

Creation of reference vectors: (menu New Entity/Basic/Vector)

  • (2nd Constructor): 0 ; 0 ; 100.
  • Validation => Vector_1.

Creation of a LCS (Local Coordinate System): (menu New Entity/Basic/LCS) (1st constructor):

  • Origin : 0 ; 0 ; -50.
  • X axis : 1 ; 0 ; 0.
  • Y axis : 0 ; 1 ; 0.
  • Validation => LocalCS_1.

Creation of a wire using the sketcher: (menu New Entity/Basic/2D Sketch). Validate using Apply after each line except for the last one.

  • First Point: 100 ; 0.
  • Segment (Point - absolute): 300 ; 0.
  • Segment (Point - absolute): 300 ; 400.
  • Segment (Point - absolute): 0 ; 400.
  • Segment (Point - absolute): 0 ; 100.
  • Arc (Direction-Perpendicular): -100 ; 90° 
  • Close => Sketch_1.

Creation of 2nd wire in the local working plane: (menu New Entity/Basic/2D Sketch).

  • Select "Coordinate System" - LocalCS_1.
  • First Point: 0 ; -150.
  • Arc (Direction-Tangent): 150 ; 270°.
  • Close => Sketch_2.

Save the study in a file.

 

Creation of a face to be meshed: (menu New Entity/Build/Face).

  • Select Sketch_1 => Face_1.

Creation of a face by extrusion: (menu New Entity/Generation/Extrusion).

  • Base: Sketch_2 
  • Vector: Vector_1
  • Height: 100
  • Validation => Extrusion_1.

Display 2 faces in Shading mode.

EDF2_screen2

Partition of the face to be meshed: (menu Operations/Partition)

  • Objects: Face_1.
  • Tool Object: Extrusion_1.
  • Resulting Type: Face
  • Validation => Partition_1.

Show Only face Partition_1.

Modify the properties of the object (Color, transparency, isos…).

Explode into basic elements: (menu New Entity/Explode)

  • Explode Partition_1 into Faces.
  • Validation => Face_2 and Face_3.

Create a group : (menu New Entity/Group/Create Group)

  • Select shape type -> Edge.
  • Main Shape: Partition_1
  • Select in the viewer 4 outer edges of Face_3 and click Add before validation.
  • Validation => Group_1.

Meshing

Launch module SMESH

Creation of Mesh_1: (menu Mesh/Create Mesh)

  • Geometry: Partition_1
  • 2D Algorithm -> Triangle (Mefisto)
  • 1D Algorithm -> Wire Discretisation
  • Create 1D Hypothesis "Automatic length", Fitness: 0.2

Compute Mesh_1.

Creation of a SubMesh : (menu Mesh/Create Sub-Mesh)

  • Mesh: Mesh_1
  • Geometry: Face_2
  • 2D Algorithm -> Triangle (Mefisto)
  • 1D Algorithm -> Wire Discretisation
  • Create 1D Hypothesis "Automatic length", Fitness: 0.8

Compute Mesh_1.

 
Creation of another Sub-Mesh:(menu Mesh/Create Sub-Mesh)

  • Mesh: Mesh_1
  • Geometry: Group_1
  • Algorithm: Wire Discretisation.
  • Create hypothesis Nb. Segments (10, Scale distribution, factor : 20)

Compute Mesh_1.


 

 



EDF2_screen6

Use functionalities of menu Modification:

  • Diagonal Inversion (choose an edge of the element)

  • Union of two triangles (choose the edge between 2 triangles)

  • Union of triangles (Apply to all, Area, 160)

  • Cutting of quadrangles (Apply to all, Use numeric functor: Aspect ratio)

  • Transformation/Merge Node (Manual, tolerance 10.0, detect, select all, apply…)

  • Smoothing

Remove a mesh: menu Modification / Remove / Clear Mesh Data

Control the mesh via Mesh Information (right-click or menu Mesh).

Creation of a symmetrical mesh: (menu Modification/Transformation/Symmetry)

Select the entire mesh Mesh_1 and use the 3rd constructor.
  • Point: 305 ; 0 ; 0.
  • Normal: 10 ; 0 ; 0.
  • Create a new mesh Mesh_1_Mirrored.
  • Compute

Create a compound Coumpound_Mesh_1 of two meshes (Mesh_1 and Mesh_1_Mirrored) (menu Mesh/Build Compound)

  • Select both meshes with default parameters.
  • Compute "Compound_Mesh_1"




Sew mesh Coumpound_Mesh_1 :

(menu Modification/Transformation/Sewing)

  • (1st constructor : Sew Free Borders)
  • Border 1: 1st, 2nd and last node of border 1

  • Border 2: 1st, 2nd and last node of border 2

  • Select “Merge equal elements” and “Create polygons instead of splitting”.



 

Document Actions