GMSH macro
Forum rules
Be nice to others! Respect the FreeCAD code of conduct!
Be nice to others! Respect the FreeCAD code of conduct!
Re: GMSH macro
Gave the macro a home on FreeCAD wiki --> Macro_GMSH.
-
- Posts: 107
- Joined: Tue Feb 10, 2015 12:33 pm
- Location: General Pacheco (Buenos Aires) - Argentina
- Contact:
Re: GMSH macro
Hi, I have installed on Windows and works very very well, thanks!
Maybe in the future you could add one more botton "Apply", then the workflow would be
1) Select the part to mesh
2) Adjust the mesh parameters
3) Push the Apply button to create the mesh
4) Then the user should check visually if the mesh is good enough for his requeriments
Then if they see that the mesh is not good as he wants, could loop between 2-4. Maybe then the OK buton should be renameed to "ok and keep" or something similar.
Best regards, and thanks in advance.
Maybe in the future you could add one more botton "Apply", then the workflow would be
1) Select the part to mesh
2) Adjust the mesh parameters
3) Push the Apply button to create the mesh
4) Then the user should check visually if the mesh is good enough for his requeriments
Then if they see that the mesh is not good as he wants, could loop between 2-4. Maybe then the OK buton should be renameed to "ok and keep" or something similar.
Best regards, and thanks in advance.
Engineering Consultor at 4P Ingeniería
http://www.4p-ingenieria.com/
https://www.youtube.com/channel/UClZPfO ... Cx-_J36o_Q
http://www.4p-ingenieria.com/
https://www.youtube.com/channel/UClZPfO ... Cx-_J36o_Q
-
- Posts: 107
- Joined: Tue Feb 10, 2015 12:33 pm
- Location: General Pacheco (Buenos Aires) - Argentina
- Contact:
Re: GMSH macro
How could be this macro mapped to a button on the FEM toolbar???
I have copied on the user/appdata/roaming folder, but when I try to customize the toolbars, on the macro tab it says me that there is no macro available.
Thanks
I have copied on the user/appdata/roaming folder, but when I try to customize the toolbars, on the macro tab it says me that there is no macro available.
Thanks
Engineering Consultor at 4P Ingeniería
http://www.4p-ingenieria.com/
https://www.youtube.com/channel/UClZPfO ... Cx-_J36o_Q
http://www.4p-ingenieria.com/
https://www.youtube.com/channel/UClZPfO ... Cx-_J36o_Q
Re: GMSH macro
Before going to the toolbars tab in customize, go to the macro tab and add the macro. Then the macro will be available in custom toolbars
"fight the good fight"
change suggestion
Hi,
first would like to thank for the work of the macro, it resulted quite important for whole fem meshing imho, and for so long keeps being it.
Then: Suggest the following change:
1) who suspect the string option universal interface for hole gmsh function space? It will guide the new fc user a lot with the external tool.
2) We freecaders at the moment use it in special way, where compounds are modeled in fc and then afterwards needs to be sewed at gmsh side. This was a whole hurdle run work to find out, and one needs not do it twice.
And neither what do you think of it?
Regards
first would like to thank for the work of the macro, it resulted quite important for whole fem meshing imho, and for so long keeps being it.
Then: Suggest the following change:
1) who suspect the string option universal interface for hole gmsh function space? It will guide the new fc user a lot with the external tool.
2) We freecaders at the moment use it in special way, where compounds are modeled in fc and then afterwards needs to be sewed at gmsh side. This was a whole hurdle run work to find out, and one needs not do it twice.
Do not know how the procedure ("pull requests"?) on this goes, first.diff newGMSHMesh.FCMacro oldGMSHMesh.py
84,85c84
< self.le_cmd_line_opt.setText(" -string Geometry.OCCSewFaces=1; ")
< # Ok buttons:
---
> # Ok buttons:
And neither what do you think of it?
Regards
Re: GMSH macro
Still using with v0.16git, but (small) changes as commited here https://github.com/FreeCAD/FreeCAD/comm ... 859ef6234e
change:
change:
Code: Select all
[ilyxa@orca Macros]$ diff gmshFEM.FCMacro gmshFEM.FCMacro.orig
16c16
< import FemAnalysis
---
> import MechanicalAnalysis
203c203
< FemAnalysis.makeFemAnalysis('MechanicalAnalysis')
---
> MechanicalAnalysis.makeMechanicalAnalysis('MechanicalAnalysis')
Re: GMSH macro
I made a PullRequst to psicofils github: https://github.com/psicofil/Macros_FreeCAD/pull/3ilyxa wrote:Still using with v0.16git, but (small) changes as commited here https://github.com/FreeCAD/FreeCAD/comm ... 859ef6234e
change:Code: Select all
[ilyxa@orca Macros]$ diff gmshFEM.FCMacro gmshFEM.FCMacro.orig 16c16 < import FemAnalysis --- > import MechanicalAnalysis 203c203 < FemAnalysis.makeFemAnalysis('MechanicalAnalysis') --- > MechanicalAnalysis.makeMechanicalAnalysis('MechanicalAnalysis')
Re: GMSH macro
Is merged. Means the macro works with current FreeCAD 0.16.6189. Good in the regard of coming up release 0.16bernd wrote:I made a PullRequst to psicofils github: https://github.com/psicofil/Macros_FreeCAD/pull/3
-
- Posts: 19
- Joined: Sat Aug 30, 2014 9:47 am
Re: GMSH macro
Hi bernd,bernd wrote:Gave the macro a home on FreeCAD wiki --> Macro_GMSH.
I got the same error when using the GMSHMesh.FCMacro. Could you please help me to fix the problem?
Code: Select all
Running: /usr/bin/gmsh c:\users\xxjj\appdata\local\temp\tmp3zrm_w.step -3 -format unv -o c:\users\xxjj\appdata\local\temp/Box_Mesh.unv -algo netgen -clmax 5.00 -optimize -order 2
Unexpected error in GMSHMesh macro: <class 'subprocess.CalledProcessError'>
https://github.com/psicofil/Macros_Free ... sh.FCMacro
- OS: Windows 8
Word size of OS: 64-bit
Word size of FreeCAD: 64-bit
Version: 0.16.6237 (Git)
Build type: Release
Branch: master
Hash: f480791472af7f4585e814c266c3c48d901c59b0
Python version: 2.7.8
Qt version: 4.8.6
Coin version: 4.0.0a
OCC version: 6.8.0.oce-0.17
Revol
Re: GMSH macro
The macro only runs on linux os. You are on windows. If you would like to mesh solid geometry (volumes) just use FreeCAD built in Netgen meshing by selecting the solid and click on FEM_Create Further informations for FEM mesh creation on http://www.freecadweb.org/wiki/index.ph ... a_FEM_Mesh.revolver1941 wrote:... I got the same error when using the GMSHMesh
- OS: Windows 8...
If you really would like to use GMSH or if you would like to mesh 2D or 1D Geometry install GMSH --> export brep or step from FreeCAD --> import into GMSH --> mesh --> export *.unv --> import *.unv in FreeCAD