FEM MeshAdvanced
Appearance
|
|
| Menu location |
|---|
| Mesh → GMSH Refinements → Advanced Refinement Types |
| Workbenches |
| FEM |
| Default shortcut |
| None |
| Introduced in version |
| 1.2 |
| See also |
| FEM tutorial |
| Solvers |
|---|
| All |
Description[edit | edit source]
The FEM MeshAdvanced command allows to define the mesh size by various advanced means.
Task panel of the MeshAdvanced 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
Advanced Refinement Types button.
- Select the Mesh → GMSH Refinements →
Advanced Refinement Types option from the menu.
- Press the
- Select the refinement type:
- AttractorAnisoCurve - computes the distance to the selected reference edges and specifies the mesh size independently in the direction normal and parallel to the nearest curve. For efficiency, each curve is replaced by a set of Sampling points to which the distance is actually computed. Anisotropic mesh refinements work only with the BAMG (2D) and MMG3D (3D) algorithms.
- Edit the six distance vs size normal/tangent fields
- Optionally, change Sampling
- MathEval - calculates the mesh size from a formula based on coordinates (x,y,z) and other refinements (F1, F2, etc.). Drag refinements into the advanced mesh object in the tree to make them accessible in the Formula.
- Enter the Mesh size equation. The usual math functions such as Sin and Log (upper case) as well as operators +, -, *, /, ^ are available.
- MathEvalAniso - calculates the anisotropic mesh size from multiple formulas based on coordinates (x,y,z) and other refinements (F1, F2, etc.). Drag refinements into the advanced mesh object in the tree to make them accessible in the Formula. Anisotropic mesh refinements work only with the BAMG (2D) and MMG3D (3D) algorithms.
- Enter the mesh size equations in the fields corresponding to metric tensor elements M11, M22, M12, M23, M13 and M33.
- Distance - computes the distance to the selected reference geometry (vertices, edges and surfaces). For efficiency, curves and surfaces are replaced by a set of points.
- Optionally, change Sampling
- Result - uses a data field from a FEM postprocessing pipeline as mesh size. This allows you to adapt the mesh according to the physical behavior of the result.
- Select the Result and the Field.
- AttractorAnisoCurve - computes the distance to the selected reference edges and specifies the mesh size independently in the direction normal and parallel to the nearest curve. For efficiency, each curve is replaced by a set of Sampling points to which the distance is actually computed. Anisotropic mesh refinements work only with the BAMG (2D) and MMG3D (3D) algorithms.
- 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 face, edge or vertex as reference geometries for AnisoCurve and Distance refinements. To remove objects from the selection, press the Remove button.
- Click the OK button.
- Close the task.
- Result: You now should see a new
Advancedobject 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 advanced refinements as needed.
Example of MathEval advanced refinement with the following function:
- 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