Implemented Gmsh Mesh Property "MeshSizeFromCurvature"

About the development of the FEM module/workbench.

Moderator: bernd

User avatar
uwestoehr
Veteran
Posts: 4961
Joined: Sun Jan 27, 2019 3:21 am
Location: Germany
Contact:

Re: Implemented Gmsh Mesh Property "MeshSizeFromCurvature"

Post by uwestoehr »

many thanks for this new feature!

However, as a FEM newbie I struggle permanently because there is no documentation. Can you therefore please always do these 2 things:

1. document the new feature in the Wiki, in this case in https://wiki.freecadweb.org/FEM_MeshGmshFromShape
2. add an entry to the FEM section in the release notes: https://wiki.freecadweb.org/Release_not ... _Workbench (just steal the formatting from the 0.19 release noes https://wiki.freecadweb.org/Release_not ... _Workbench)
User avatar
uwestoehr
Veteran
Posts: 4961
Joined: Sun Jan 27, 2019 3:21 am
Location: Germany
Contact:

Re: Implemented Gmsh Mesh Property "MeshSizeFromCurvature"

Post by uwestoehr »

I documented the feature now at least in the Wiki: https://wiki.freecadweb.org/FEM_MeshGms ... Properties

@UR_ and @Bernd, I wanted to play with the Gmsh settings and would like if we could maybe improve the situation:

- after closing the Gmsh dialog, the mesh is always made invisible. This is annoying because one often has to check out a different option and therefore has to re-enable it all the time. Can we change it so that the mesh is not made invisible?

- It would be very helpful if one can directly change/set in the mesh dialog if second order mesh or first order. Could this setting be added to the dialog?
User avatar
johnwang
Veteran
Posts: 1345
Joined: Sun Jan 27, 2019 12:41 am

Re: Implemented Gmsh Mesh Property "MeshSizeFromCurvature"

Post by johnwang »

uwestoehr wrote: Sun Mar 21, 2021 1:41 pm 2. add an entry to the FEM section in the release notes: https://wiki.freecadweb.org/Release_not ... _Workbench (just steal the formatting
I suggest one document there only after he/she got a commit num.

0.19 FEM has a lot which you can't use in 0.19.
hfc series CAE workbenches for FreeCAD (hfcNastran95, hfcMystran, hfcFrame3DD, hfcSU2 and more)
User avatar
uwestoehr
Veteran
Posts: 4961
Joined: Sun Jan 27, 2019 3:21 am
Location: Germany
Contact:

Re: Implemented Gmsh Mesh Property "MeshSizeFromCurvature"

Post by uwestoehr »

johnwang wrote: Mon Mar 22, 2021 3:42 am I suggest one document there only after he/she got a commit num.
But there is one: https://github.com/FreeCAD/FreeCAD/pull/4596

I added it now to the release notes: https://wiki.freecadweb.org/Release_not ... _Workbench

0.19 FEM has a lot which you can't use in 0.19.
What do you mean? Do you have an example?
User avatar
uwestoehr
Veteran
Posts: 4961
Joined: Sun Jan 27, 2019 3:21 am
Location: Germany
Contact:

Re: Implemented Gmsh Mesh Property "MeshSizeFromCurvature"

Post by uwestoehr »

UR_ wrote: Mon Mar 08, 2021 4:39 pm So you have to place a third circle in the middle (without refined mesh) to let gmsh calculate it's growth rate.
many thanks! This was a very valuable hint. I documented it now: https://wiki.freecadweb.org/FEM_MeshGms ... esh_growth
User avatar
johnwang
Veteran
Posts: 1345
Joined: Sun Jan 27, 2019 12:41 am

Re: Implemented Gmsh Mesh Property "MeshSizeFromCurvature"

Post by johnwang »

uwestoehr wrote: Mon Mar 22, 2021 9:31 am But there is one: https://github.com/FreeCAD/FreeCAD/pull/4596
It's just a pull number. Who knows if it will be committed.

Better use commit number.

Most things stated for 0.19, even don't have a pull number. So not inside 0.19 and you can't use them with 0.19.
hfc series CAE workbenches for FreeCAD (hfcNastran95, hfcMystran, hfcFrame3DD, hfcSU2 and more)
User avatar
uwestoehr
Veteran
Posts: 4961
Joined: Sun Jan 27, 2019 3:21 am
Location: Germany
Contact:

Re: Implemented Gmsh Mesh Property "MeshSizeFromCurvature"

Post by uwestoehr »

johnwang wrote: Mon Mar 22, 2021 10:21 pm It's just a pull number. Who knows if it will be committed.
But you know. Just click on the link: https://github.com/FreeCAD/FreeCAD/pull/4596 and you see that it was merged.

Most things stated for 0.19, even don't have a pull number. So not inside 0.19 and you can't use them with 0.19.
I still don't understand what you mean. What exactly is in the release notes of FC 0.19: https://wiki.freecadweb.org/Release_notes_0.19
that cannot be used with FreeCAD 0.19?
User avatar
uwestoehr
Veteran
Posts: 4961
Joined: Sun Jan 27, 2019 3:21 am
Location: Germany
Contact:

Re: Implemented Gmsh Mesh Property "MeshSizeFromCurvature"

Post by uwestoehr »

uwestoehr wrote: Mon Mar 22, 2021 3:16 am - after closing the Gmsh dialog, the mesh is always made invisible. This is annoying because one often has to check out a different option and therefore has to re-enable it all the time. Can we change it so that the mesh is not made invisible?
Fixed when this PR goes in: https://github.com/FreeCAD/FreeCAD/pull/4666

uwestoehr wrote: Mon Mar 22, 2021 3:16 am - It would be very helpful if one can directly change/set in the mesh dialog if second order mesh or first order. Could this setting be added to the dialog?
Already in since today: https://github.com/FreeCAD/FreeCAD/pull/4660
User avatar
bernd
Veteran
Posts: 12849
Joined: Sun Sep 08, 2013 8:07 pm
Location: Zürich, Switzerland
Contact:

Re: Implemented Gmsh Mesh Property "MeshSizeFromCurvature"

Post by bernd »

uwestoehr wrote: Mon Mar 22, 2021 3:16 am I documented the feature now at least in the Wiki: https://wiki.freecadweb.org/FEM_MeshGms ... Properties

@UR_ and @Bernd, I wanted to play with the Gmsh settings and would like if we could maybe improve the situation:

- after closing the Gmsh dialog, the mesh is always made invisible. This is annoying because one often has to check out a different option and therefore has to re-enable it all the time. Can we change it so that the mesh is not made invisible?

- It would be very helpful if one can directly change/set in the mesh dialog if second order mesh or first order. Could this setting be added to the dialog?
https://github.com/FreeCAD/FreeCAD/pull/4666
User avatar
HarryvL
Veteran
Posts: 1283
Joined: Sat Jan 06, 2018 7:38 pm
Location: Netherlands

Re: Implemented Gmsh Mesh Property "MeshSizeFromCurvature"

Post by HarryvL »

I keep getting the following error from GMSH:

Code: Select all

Unknown number option 'Mesh.MeshSizeFromCurvature
This may have to do with the input widget, because I also get the following error

Code: Select all

TypeError: Can't call meta function because I have no idea how to handle Base::Quantity
when I open the widget and the input values for max and min element size get reset to zero every time GMSH completes.

Code: Select all

OS: Ubuntu 20.04.4 LTS (ubuntu:GNOME/ubuntu)
Word size of FreeCAD: 64-bit
Version: 0.20.29178 (Git)
Build type: Unknown
Branch: master
Hash: ea7efbf96bb812ae31d36b4305cfa7fbce24bfce
Python 3.8.10, Qt 5.12.8, Coin 4.0.0, Vtk 7.1.1, OCC 7.3.0
Locale: English/United States (en_US)
Installed mods: 
  * main.py
Post Reply