Macro GMSH

From FreeCAD Documentation
Revision as of 19:26, 3 August 2018 by FuzzyBot (talk | contribs) (Updating to match new version of source page)

File:Text-x-python GMSHMacro

Description
Crée un maillage FÉM avec un mailleur GMSH

Version macro : 1.0
Date dernière modification : 2015-08-24
Auteur: psicofil
Auteur
psicofil
Téléchargement
None
Liens
Version Macro
1.0
Dernière modification
2015-08-24
Version(s) FreeCAD
None
Raccourci clavier
None
Voir aussi
None

Macro qui crée un maillage FEM avec le mailleur GMSH. Il est possible de créer une coquille et un volume linéaire ou bilinéaire (quadratique).

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 Manager. Link for optional manual installation: Macro


# This code is copied instead of the original macro code
# to guide the user to the online 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 somewhere else in the wiki.

from PySide import QtGui, QtCore

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

diag.setWindowFlags(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")


GMSH

Utilisation

Vous pouvez télécharger la macro dans le référentiel de GitHub : GMSH Macro

Installation additionnelle

Quand GMSH est installé, voir [1]. La macro fonctionne dans les systèmes d'exploitation Linux, OSX et Windows. Le chemin du binaire gmsh.exe doit être modifié dans le code de la macro (voir ligne 9).

Lien

La page de discussion sur le forum GMSH macro

Le fonctionnement de la macro sur YouTube.

Other languages: