FEM MeshRegion: Difference between revisions

From FreeCAD Documentation
No edit summary
(Module to Workbench renaming.)
(11 intermediate revisions by 2 users not shown)
Line 1: Line 1:
<languages/>
<languages/>
{{UnfinishedDocu{{#translation:}}}}
<translate>
<translate>


Line 7: Line 6:
|[[FEM_MeshBoundaryLayer|FEM mesh boundary layer]]
|[[FEM_MeshBoundaryLayer|FEM mesh boundary layer]]
|[[FEM_MeshGroup|FEM mesh group]]
|[[FEM_MeshGroup|FEM mesh group]]
|[[FEM_Module|FEM]]
|[[FEM_Workbench|FEM]]
|IconL=FEM_MeshBoundaryLayer.svg
|IconL=FEM_MeshBoundaryLayer.svg
|IconR=FEM_MeshGroup.svg
|IconR=FEM_MeshGroup.svg
Line 17: Line 16:
|Name=FEM MeshRegion
|Name=FEM MeshRegion
|MenuLocation= Mesh → FEM mesh region
|MenuLocation= Mesh → FEM mesh region
|Workbenches=[[Fem_Workbench|FEM]]
|Workbenches=[[FEM_Workbench|FEM]]
|SeeAlso=[[FEM_tutorial|FEM tutorial]]
|SeeAlso=[[FEM_tutorial|FEM tutorial]]
}}
}}
Line 23: Line 22:
==Description== <!--T:8-->
==Description== <!--T:8-->


<!--T:11-->
FEM MeshRegion enables the user to set a localized set of meshing parameters by selecting a set of elements (Vertex, Edge, Face) and applying the parameters to it.
FEM MeshRegion enables the user to set a localized set of meshing parameters by selecting a set of elements (Vertex, Edge, Face) and applying the parameters to it.
It is especially useful for refining meshes in areas of interest or areas where the solver will generate stronger gradient of a variable. For example, it can be used to refine the mesh around stress-risers (sharp edges, circles...) in mechanical analysis, or at areas of contraction in a fluid flow.
It is especially useful for refining meshes in areas of interest or areas where the solver will generate stronger gradient of a variable. For example, it can be used to refine the mesh around stress-risers (sharp edges, circles...) in mechanical analysis, or at areas of contraction in a fluid flow.


<!--T:12-->
Refining the mesh has the advantage of enabling accurate simulation where needed, while allowing coarser mesh in the wider domain, thus drastically optimizing the computation time while maintaining meaningful solutions output.
Refining the mesh has the advantage of enabling accurate simulation where needed, while allowing coarser mesh in the wider domain, thus drastically optimizing the computation time while maintaining meaningful solutions output.


==Usage== <!--T:9-->
==Usage== <!--T:9-->


<!--T:13-->
# To enable the function a mesh must be first provided [[Image:FEM_MeshGmshFromShape.svg|32px]] [[FEM_MeshGmshFromShape|FEM mesh from shape by Gmsh]].
# To enable the function a mesh must be first provided [[Image:FEM_MeshGmshFromShape.svg|32px]] [[FEM_MeshGmshFromShape|FEM mesh from shape by Gmsh]].
#* Select the Mesh object in the Model Tree and press the [[Image:FEM_MeshRegion.svg|32px]] button.
#* Select the Mesh object in the Model Tree and press the [[Image:FEM_MeshRegion.svg|32px]] button.
Line 35: Line 37:
# Edit the maximal element size for the region.
# Edit the maximal element size for the region.
# Click the {{Button|OK}} button.
# Click the {{Button|OK}} button.
# Close the task.
# Close the task. You now should see a new FEMMeshRegion object under the FEMMeshGMSH object in your active analysis container.
#: Result: You now should see a new {{incode|FEMMeshRegion}} object under the {{incode|FEMMeshGMSH}} object (see example #3 below) in your active analysis container.
# Double-click on the FEMMeshGMSH parent object in your Model Tree and press {{Button|Apply}} to force a mesh recalculation.
# Double-click on the {{incode|FEMMeshGMSH}} parent object in your Model Tree and press {{Button|Apply}} to force a mesh recalculation.
# Close the task.
# Close the task.


<!--T:14-->
After the mesh has been crated you can change its properties using the [[Property_editor|property editor]]. After you changed a property, you must reopen the Gmsh dialog again and click the {{Button|Apply}} button. (You can leave the dialog open while changing properties.)
After the mesh has been crated you can change its properties using the [[Property_editor|property editor]]. After you changed a property, you must reopen the Gmsh dialog again and click the {{Button|Apply}} button. (You can leave the dialog open while changing properties.)


<!--T:15-->
You can create as many different mesh regions as needed.
You can create as many different mesh regions as needed.




<!--T:3-->
==Visual examples== <!--T:16-->

<br />
<!--T:17-->
[[File:FEMMeshRegion_Example1.png|300px|]]
{{Caption|Example 1: The initial coarse FEMMeshGMSH}}


<!--T:18-->
[[File:FEMMeshRegion_Example2.png|300px]]
{{Caption|Example 2: After applying a Mesh refinement using two FEMMeshRegion, the large hole is refined to a maximum element size of 3 mm, the smaller hole is refined to 1 mm}}

<!--T:19-->
[[File:FEMMeshRegion_Example3.png|300px]]
{{Caption|Example 3: A simple example of the resulting Model Tree}}


==Notes== <!--T:10-->
==Notes== <!--T:10-->
Line 52: Line 69:
The order in which the regions are shown in [[Tree view|Tree view]] could change the mesh result. See this [https://forum.freecadweb.org/viewtopic.php?f=18&t=41955 forum thread].
The order in which the regions are shown in [[Tree view|Tree view]] could change the mesh result. See this [https://forum.freecadweb.org/viewtopic.php?f=18&t=41955 forum thread].


==Related== <!--T:20-->

<!--T:21-->
* "Mesh Regions for a Better Analysis" - Video Tutorial by Joko Engineering ([https://www.youtube.com/watch?v=X5RVe2SDPvw link])


<!--T:5-->
<!--T:5-->
Line 57: Line 78:
|[[FEM_MeshBoundaryLayer|FEM mesh boundary layer]]
|[[FEM_MeshBoundaryLayer|FEM mesh boundary layer]]
|[[FEM_MeshGroup|FEM mesh group]]
|[[FEM_MeshGroup|FEM mesh group]]
|[[FEM_Module|FEM]]
|[[FEM_Workbench|FEM]]
|IconL=FEM_MeshBoundaryLayer.svg
|IconL=FEM_MeshBoundaryLayer.svg
|IconR=FEM_MeshGroup.svg
|IconR=FEM_MeshGroup.svg

Revision as of 18:38, 21 August 2021

FEM MeshRegion

Menu location
Mesh → FEM mesh region
Workbenches
FEM
Default shortcut
None
Introduced in version
-
See also
FEM tutorial

Description

FEM MeshRegion enables the user to set a localized set of meshing parameters by selecting a set of elements (Vertex, Edge, Face) and applying the parameters to it. It is especially useful for refining meshes in areas of interest or areas where the solver will generate stronger gradient of a variable. For example, it can be used to refine the mesh around stress-risers (sharp edges, circles...) in mechanical analysis, or at areas of contraction in a fluid flow.

Refining the mesh has the advantage of enabling accurate simulation where needed, while allowing coarser mesh in the wider domain, thus drastically optimizing the computation time while maintaining meaningful solutions output.

Usage

  1. To enable the function a mesh must be first provided FEM mesh from shape by Gmsh.
    • Select the Mesh object in the Model Tree and press the button.
    • Select the Mesh object in the Model Tree and select the Mesh → FEM mesh region option from the menu.
  2. Edit the maximal element size for the region.
  3. Click the OK button.
  4. Close the task.
    Result: You now should see a new FEMMeshRegion object under the FEMMeshGMSH object (see example #3 below) in your active analysis container.
  5. Double-click on the FEMMeshGMSH parent object in your Model Tree and press Apply to force a mesh recalculation.
  6. Close the task.

After the mesh has been crated you can change its properties using the property editor. After you changed a property, you must reopen the Gmsh dialog again and click the Apply button. (You can leave the dialog open while changing properties.)

You can create as many different mesh regions as needed.


Visual examples

Example 1: The initial coarse FEMMeshGMSH


Example 2: After applying a Mesh refinement using two FEMMeshRegion, the large hole is refined to a maximum element size of 3 mm, the smaller hole is refined to 1 mm

Example 3: A simple example of the resulting Model Tree

Notes

The order in which the regions are shown in Tree view could change the mesh result. See this forum thread.

Related

  • "Mesh Regions for a Better Analysis" - Video Tutorial by Joko Engineering (link)