FEM MeshDistance
Appearance
|
|
| Menu location |
|---|
| Mesh → GMSH Refinements → Distance-Based Refinement |
| Workbenches |
| FEM |
| Default shortcut |
| None |
| Introduced in version |
| 1.2 |
| See also |
| FEM tutorial |
| Solvers |
|---|
| All |
Description[edit | edit source]
The FEM MeshDistance command can be used to set mesh size based on the distance to vertices, edges and faces.
Task panel of the MeshDistance tool
Usage[edit | edit source]
- To enable the command a
Mesh From Shape by Gmsh must be provided first.
- Select the Mesh object in the Tree View.
- There are several ways to invoke the command:
- Press the
Distance-Based Refinement button.
- Select the Mesh → GMSH Refinements →
Distance-Based Refinement option from the menu.
- Press the
- Edit the four distance vs size fields. From the top to the right:
- Mesh size when distance = DistanceMaximum
- Mesh size when distance < DistanceMinimum
- Distance up to which the mesh size will be SizeMinimum
- Distance at which the mesh size will be SizeMaximum
- Optionally, switch the Interpolation: Linear field to define if interpolation of mesh size between SizeMinimum and SizeMaximum should be linear or sigmoid function.
- Optionally, specify the Sampling size to define the number of sampling points used to discretize curves and surfaces. For surfaces it is the sampling size per direction.
- Optionally, press the
button to edit the global refinement preview settings:
- Auto enable on open - automatically enables the visualization of the refinement mesh size when opening a refinement task dialog.
- Preview mesh fineness - determines how fine the preview mesh is. Larger number means finer mesh (smaller elements).
- Optionally, press the Visualize button to visualize the refinement mesh size output. It shows the mesh sizes given by the refinement as colors on a preview mesh. Note that the preview evaluates the refinement on a coarse mesh so details smaller than the mesh size may not be visible.
- Press the Add button. Select a vertex, edge or face. To remove objects from the selection, press the Remove button.
- Click the OK button.
- Close the task.
- Result: You now should see a new
Distanceobject under theFEMMeshGmshobject in your active analysis container.
- Result: You now should see a new
- Double-click on the
FEMMeshGmshparent object in your Model Tree and press Apply to force a mesh recalculation. - Close the task.
After the mesh has been created you can change its properties using the Property View. 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 distance-based refinements as needed.
Example of distance-based mesh refinement
- Materials: Solid Material, Fluid Material, Non-Linear Mechanical Material, Reinforced Material (Concrete); Material Editor
- Element Geometry: Beam Cross Section, Beam Rotation, Shell Plate Thickness, Fluid Section for 1D Flow
- Electromagnetic Boundary Conditions: Electrostatic Potential Boundary Condition, Current Density Boundary Condition, Magnetization Boundary Condition, Electric Charge Density
- Fluid Boundary Conditions: Initial Flow Velocity Condition, Initial Pressure Condition, Flow Velocity Boundary Condition
- Geometrical Analysis Features: Plane Multi-Point Constraint, Section Print Feature, Local Coordinate System
- Mechanical Boundary Conditions and Loads: Fixed Boundary Condition, Rigid Body Constraint, Displacement Boundary Condition, Contact Constraint, Tie Constraint, Spring Boundary Condition, Force Load, Pressure Load, Centrifugal Load, Gravity Load
- Thermal Boundary Conditions and Loads: Initial Temperature, Heat Flux Load, Temperature Boundary Condition, Body Heat Source
- Overwrite Constants: Constant Vacuum Permittivity
- Mesh: Mesh From Shape by Netgen, Mesh From Shape by Gmsh, Mesh Boundary Layer, Mesh Refinement, Mesh Group, Erase Elements, FEM Mesh to Mesh
- Solve: Solver CalculiX, Solver Elmer, Solver Mystran, Solver Z88; Mechanical Equations: Elasticity Equation, Deformation Equation; Electromagnetic Equations: Electrostatic Equation, Electricforce Equation, Magnetodynamic Equation, Magnetodynamic 2D Equation, Static Current Equation; Flow Equation, Flux Equation, Heat Equation, Solver Job Control, Run Solver
- Results: Purge Results, Show Result, Apply Changes to Pipeline, Post Pipeline From Result, Pipeline Branch, Warp Filter, Scalar Clip Filter, Function Cut Filter, Region Clip Filter, Contours Filter, Glyph Filter, Line Clip Filter, Stress Linearization Plot, Data at Point Clip Filter, Calculator Filter; Filter Functions: Plane, Sphere, Cylinder, Box; Data Visualizations: Create Lineplot, Create Histogram, Create Table
- Utilities: Clipping Plane on Face, Remove All Clipping Planes, FEM Examples; Clear FEM Mesh, Display Mesh Info
- Additional: Preferences; FEM Install, FEM Mesh, FEM Solver, FEM CalculiX, FEM Concrete; FEM Element Types
- Getting started
- Installation: Download, Windows, Linux, Mac, Additional components, Docker, AppImage, Ubuntu Snap
- Basics: About FreeCAD, Interface, Mouse navigation, Selection methods, Object name, Preferences, Workbenches, Document structure, Properties, Help FreeCAD, Donate
- Help: Tutorials, Video tutorials
- Workbenches: Std Base, Assembly, BIM, CAM, Draft, FEM, Inspection, Material, Mesh, OpenSCAD, Part, PartDesign, Points, Reverse Engineering, Robot, Sketcher, Spreadsheet, Surface, TechDraw, Test Framework
- Hubs: User hub, Power users hub, Developer hub