Macro GMSH

From FreeCAD Documentation
Jump to: navigation, search
Other languages:
English • ‎français • ‎italiano

Macro GMSH.png GMSH Macro

Description
Create FEM Meshes by GMSH Mesh Generator. It is possible to create linear or bilinear (quadratic) Beam-, Shell- and Volumeelements in

Macro version : 1.0
Date last modification : 2015-08-24
FreeCAD version : All
Download : ToolBar Icon
Author
psicofil
Download
ToolBar Icon
Links
Macro Version
1.0
Date last modification
2015-08-24
FreeCAD Version(s)
All
Default shortcut
None
See also
None


Description

Simple macro to create FEM Meshes by the Mesh Generator GMSH. It is possible to create linear or bilinear (quadratic) Beam-, Shell- and Volumeelements in

Temporary code for external macro link. Do not use this code. This code is used exclusively by Addon_Installer.


##This code is copied instead of the original macro code

##to guide the user to the offline download page

##Use it if the code of the macro is larger than 64 KB and cannot be included in the wiki

##or if the RAW code url is extra wiki location

import PySide

from PySide import QtGui ,QtCore

diag = QtGui.QMessageBox(QtGui.QMessageBox.Information,u"Information",
    "This macro must by downloaded with this link" + "\n"
    " " + "\n"
    "https://raw.githubusercontent.com/psicofil/Macros_FreeCAD/master/Macros/GMSHMesh.FCMacro" + "\n"
    " " + "\n"
    "Quit this window for access in the download page" )

diag.setWindowFlags(PySide.QtCore.Qt.WindowStaysOnTopHint)

diag.setWindowModality(QtCore.Qt.ApplicationModal)

diag.exec_()

import webbrowser 

webbrowser.open("https://raw.githubusercontent.com/psicofil/Macros_FreeCAD/master/Macros/GMSHMesh.FCMacro")
<class="rawcodeurl"><a href="https://raw.githubusercontent.com/psicofil/Macros_FreeCAD/master/Macros/GMSHMesh.FCMacro">raw code</a>


GMSH

Script

The macro you can find in the following github repository: GMSH Macro

ToolBar Icon Macro GMSH.png

GMSHMesh.FCMacro GMSH Macro.FCMacro

Additional Installations

GMSH has to be installed. See gmsh.info. The macro is intended to run on Linux, OSX and Windows operating system. The binary path of GMSH has to be adapted in the macro.

Link

The page discussion GMSH macro

See the how to use the macro on YouTube.