View Issue Details
|ID||Project||Category||View Status||Date Submitted||Last Update|
|0002988||FEM||Bug||public||2017-03-28 06:08||2018-09-26 19:53|
|Summary||0002988: FEM, GUI, Netgen and GMSH FEM mesh creation buttons don't clean up on error or cancel|
|Description||Currently Netgen is disabled on my build, so when I click on e.g. a Part Cube, I get a "Meshing failure" error, and yet a mesh is dumped into my active FEM Analysis.|
Similarly, if I were to click the button to create a GMSH mesh instead, but decided I didn't want one and hit Cancel, I would find my Analysis with cluttered up with a useless FEM Mesh that should have been cleaned up by its creating code.
|Steps To Reproduce||1. Part WB > Part Cube.|
2. FEM WB > Create Analysis.
3. Select cube. Create Netgen or GMSH mesh button. Observe error or hit cancel. Note the extra mesh in Analysis object.
|Additional Information||OS: Linux|
Word size of OS: 64-bit
Word size of FreeCAD: 64-bit
Version: 0.17.10653 (Git)
Build type: Release
Python version: 2.7.13
Qt version: 4.8.7
Coin version: 3.1.3
OCC version: 7.1.0
|Tags||No tags attached.|
For sure a clean mesh is not useless! The clean mesh has the adjustments (properties) to create the mesh. Quite a few times in FEM we gone post a file with a mesh object with the properties to create the mesh and the mesh is cleared. There is even a tool to clear a mesh ... Create a GMSH mesh object --> create a mesh --> leave the mesh object --> select the mesh object --> right click --> clear mesh --> clears the mesh but keeps the mesh object and its properties
@berndhahnebach That's a good point, and I think that workflow should be supported. In the case of the disabled netgen mesh, though, it really should not be getting created. Although the user could indeed adjust the parameters of the mesh in the data view, you can't even test the mesh/FEM setup if you wanted to. In that instance, although it's possible someone would want to prepare a mesh for someone else to use, I think it's much more appropriate to just clean up what's left on an error, since that is much more likely.
Perhaps a better way to support what you're describing is a checkbox at the top of the mesh task panel: "Store parameters without (re)creating mesh"
Then, clicking 'Ok', 'Apply', and 'Cancel' can be made to behave in a standard way while still supporting the option to prepare FEM files for other people without needing to create the mesh.
It still is on my list to have a look at this.
||I will try to have a look at this.|
|2017-03-28 06:08||kkremitzki||New Issue|
|2017-03-29 11:49||berndhahnebach||Note Added: 0008729|
|2017-03-31 01:58||kkremitzki||Note Added: 0008741|
|2017-05-26 21:48||berndhahnebach||Note Added: 0009160|
|2017-05-26 21:50||berndhahnebach||Note Edited: 0009160||View Revisions|
|2017-05-27 09:58||berndhahnebach||Summary||Netgen and GMSH FEM mesh creation buttons don't clean up on error or cancel => FEM, GUI, Netgen and GMSH FEM mesh creation buttons don't clean up on error or cancel|
|2018-01-30 16:40||wmayer||Target Version||0.17 => 0.18|
|2018-09-18 06:24||berndhahnebach||Assigned To||=> berndhahnebach|
|2018-09-18 06:24||berndhahnebach||Status||new => confirmed|
|2018-09-18 06:24||berndhahnebach||Note Added: 0011785|
|2018-09-18 06:24||berndhahnebach||Status||confirmed => assigned|
|2018-09-26 19:53||berndhahnebach||Target Version||0.18 =>|