Commit Graph

83 Commits

Author SHA1 Message Date
lyphrowny
359c1ae2bb FEM: reformat codebase 2024-06-23 16:26:36 +03:00
marioalexis
d8012f74ba Fem: Add partial support for hexahedral elements - fixes #12526 2024-03-11 12:03:15 -05:00
marioalexis
5350f94201 Fem: Update constraint symbols when moving reference shape - fixes #6093 2024-02-26 04:01:28 -03:00
Max Wilfinger
d491ac0865 Renaming FEM mesh region to mesh refinement (only Users POV / tooltips) (#11489)
* project to document on information, merge, util

* rename MehRegion to MeshRefinement (tooltip/user PoV only)
2023-12-04 10:41:04 -06:00
DeflateAwning
1e3179e9bc Find and replace http://freecad.org to https://freecad.org
Find and replace:
http:\/\/(.{0,10})freecad
https://$1freecad
Done in all remaining files (after doing it in SVGs in the last commit)
2023-10-29 22:39:22 -06:00
Roy-043
efda96b933 FEM: Avoid dictionary.keys() where possible 2023-08-16 16:47:27 +02:00
Jed Brown
f26c8d02ab FEM: fix gmsh relative paths
Relative paths appearing in Gmsh .geo files are relative to the .geo
file, not relative to the cwd when the gmsh executable was invoked. This
is okay when using absolute paths with the default "Temporary
directories" mode, but if one selects (in Preferences -> FEM) "Beside
.FCStd file", then relative paths are written to the .geo file. This
causes a (suppressed in FreeCAD output) warning from Gmsh that the brep
file is missing as well as the error:

Unexpected error when creating mesh: File to load not existing or not readable: partname/FEMMeshGmsh/BaseFeature_Mesh.unv

In this commit we just use relative paths, which is also convenient if
users move these files elsewhere (e.g., to work directly with advanced
features in Gmsh).
2023-07-20 10:46:49 -05:00
Jed Brown
542223f5b6 FEM: let gmsh infer format from file name
I sometimes use the FEM workbench to create meshes for a problem that
I'll solve with an external FE solver that doesn't yet have workbench
integration, or to prepare a Gmsh file for tweaks from directly running
Gmsh. The .unv format is pretty limited on technical grounds so I rename
the file to .msh (can express everything Gmsh can) or a
parallel-friendly format. Explicitly setting Mesh.Format = 2 is
confusing because this line also needs to be fixed (or deleted) when
renaming the output file name.
2023-06-23 21:35:36 +02:00
luzpaz
38a01939e0 Migrate domain name from freecadweb to freecad (#9352)
* Migrate domain name from freecadweb to freecad
* Migrate src/Mod/Material files
* Migrate Stylesheet related files
* Migrate *.svg files
* Migrate miscellaneous files
* Migrate some build files
* Migrate recently added TD AR_IRAM template files

Closes #6415
2023-04-24 15:19:20 -05:00
Bernd Hahnebach
f3cb55ef30 FEM: code formatting, pep8, E265 2023-04-06 08:13:42 +02:00
Uwe
eea83ae37e [FEM] improve messages in mesh generation
- no longer output an error on mesh from a BooleanFragments. There are cases when this fails, but other cases where one must use a BoopleanFragments compound and this works well, see https://forum.freecad.org/viewtopic.php?t=71070. Therefore a warning is sufficient.
- disable log messages not important for the average users.
- avoid code duplication
2023-02-13 16:55:00 +01:00
Bernd Hahnebach
c8b2215bed FEM: gmsh binary location on osx, add comment 2022-11-18 12:05:36 +01:00
Bernd Hahnebach
987159dd7f FEM: add standard path for gmsh on osx 2022-11-18 12:02:22 +01:00
Uwe
4a030cd949 [FEM] remove unneeded checks for Python 3
since we only support Python >=3, these checks can go
2022-07-31 15:36:54 +02:00
Bernd Hahnebach
41a8ed83af FEM: python code formatting 2022-07-12 15:04:26 +02:00
Anders Torger
7d628a6e03 Add General.NumThreads = CPU core count setting to Gmsh
settings file to enable multi-threaded meshing (much faster
for larger models)
2022-03-12 23:26:55 +01:00
Syres916
c787a44f49 [FEM] Bugfix Gmsh Version check to be...
...Python 3.6 compatible
2022-02-26 17:15:28 +01:00
luz paz
d877ee4d47 Make source code comments use gender neutral pronouns
The changes also include some grammatical fixes as well.
2021-12-02 16:18:04 -05:00
Bernd Hahnebach
f0f347e910 FEM: code formating 2021-06-23 11:34:57 +02:00
Bernd Hahnebach
778479c2cd FEM: pep8 2021-05-09 23:42:32 +02:00
UR-0
38adcc0a24 [FEM] patch LGTM alerts 2021-05-06 19:51:27 +02:00
Uwe
d573386ec1 [FEM] add support for 3D recombinations (#4706)
* [FEM] add support for 3D recombinations

currently we only support surface recombinations but for some applications 3D recombinations are useful as well

* add support for the recombination algorithms

using a sensible algorithm is important to get useful results, see https://wiki.freecadweb.org/FEM_MeshGmshFromShape#Properties
where I described examples
2021-04-13 07:32:44 +02:00
donovaly
58b0dd38c2 [FEM] proper support for Gmsh HighOrder optimization
There are 4 optimizers available while we only supported 1. This PR adds support for all.
2021-04-08 13:29:50 +02:00
donovaly
ac6f25ea4a [FEM] add mesh algorithms
- Gmsh has since a while 2 new mesh algorithms
- on the other hand the two algorithms ""Frontal Delaunay" and "Frontal Hex" are deprecated and not listed anymore in the docs: https://gmsh.info/doc/texinfo/gmsh.html#index-Mesh_002eAlgorithm3D
and indeed all attempts with these 2 algorithms fail
2021-03-24 17:01:47 +01:00
UR-0
0a06458cb3 [FEM] improve get_gmsh_version 2021-03-17 11:28:23 +01:00
UR-0
192b1726fc [FEM] get Gmsh version 2021-03-14 17:22:09 +01:00
Bernd Hahnebach
cd0f3405ee FEM: pep8 2021-03-13 21:47:50 +01:00
UR-0
de9329a6c1 [FEM]implement Gmsh mesh property "MeshSizeFromCurvature" 2021-03-13 21:13:30 +01:00
UR-0
ce264f1571 [FEM] improve error message if gmsh.exe not found 2021-03-08 14:26:08 +01:00
Bernd Hahnebach
3c1d251014 FEM: code formatting, revert parts of commit 058582edb5b 2021-02-16 16:17:47 +01:00
David Osterberg
7a9ecbdaa9 FEM: Improve Gmsh log, when Gmsh is not installed 2021-02-11 21:03:43 +01:00
luz paz
55f471b72c FEM: doxygen 2020-12-04 17:50:00 +01:00
Bernd Hahnebach
6fda0a2faa FEM: python, get rid of bare excepts 2020-10-27 08:24:27 +01:00
Bernd Hahnebach
d4655c8ef9 FEM: analysing group meshing, set default to False 2020-05-28 00:38:06 +02:00
Bernd Hahnebach
ad214cde19 FEM: geom tools, move get element 2020-03-27 06:00:24 +01:00
Bernd Hahnebach
248db6a668 FEM: geom tools, move find element in shape and is same geometry from meshtools 2020-03-27 06:00:18 +01:00
Bernd Hahnebach
ee08ffe1ad FEM: geom tools, add new module and move some geom tools from mesh tools in 2020-03-27 06:00:13 +01:00
Bernd Hahnebach
4db6d7cafa FEM: improve Python type checking and Python imports 2020-03-12 10:02:33 +01:00
Bernd Hahnebach
ae3c93ba3c FEM: more Python import cleaning 2020-02-27 08:33:39 +01:00
Bernd Hahnebach
ab0ace8f61 FEM: improve imports 2020-02-26 20:58:26 +01:00
Bernd Hahnebach
2aeeefd763 FEM: gmsh tools, typo 2020-02-23 17:15:13 +01:00
Bernd Hahnebach
8ecbf811b0 FEM: gmsh tools, get rid of useless unv related warning 2020-02-13 13:12:37 +01:00
Bernd Hahnebach
d583fd26cd FEM: console messages line break improvements 2020-01-09 08:10:07 +01:00
Bernd Hahnebach
b567ed1893 FEM: gmsh tools, code formating 2020-01-06 00:02:26 +01:00
luz.paz
73b8ee91ee FEM: [skip ci] fix header uniformity
This PR fixes header uniformity across all FEM WB files
2019-12-21 20:00:14 +01:00
Bernd Hahnebach
82679b780d FEM: gmsh, small changes in comments and update of comments in unit test file 2019-12-17 22:41:42 +01:00
Bernd Hahnebach
c394eb91ff FEM: gmsh, new interpolation parameter, add missing code (thanks to _UR) 2019-12-17 18:13:10 +01:00
Bernd Hahnebach
d01997c172 FEM: gmsh, add linear nodes interpolation parameter (thanks to _UR) 2019-12-17 12:27:19 +01:00
Markus Hovorka
6929229ddc FEM: in out modules, Replace print with Console.Print* calls 2019-09-23 21:16:51 +02:00
Bernd Hahnebach
65ad91cf61 FEM: gmsh tools, make it easier to use an own working dir 2019-09-19 09:11:12 +02:00