Commit Graph

157 Commits

Author SHA1 Message Date
luzpaz
9c8a3f27f9 Fix typos 2023-12-22 13:35:23 +00: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
Uwe
af684644ab Fem: Change ConstraintPressure::Force property to App::PropertyForce 2023-10-04 17:03:28 -03: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
lorenz
85f9ab3cf3 FEM: femmesh: fix AttributeError: module 'numpy' has no attribute 'int' 2022-12-28 12:07:51 +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
fandaL
df9c800d38 FEM: femmesh2mesh add disp scale factor 2022-11-05 12:27:04 +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
luz paz
d021a2035a FEM: minor fix in warning text [skip ci] 2022-03-23 23:59:22 +01: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
Philipp Knechtges
2e2f45f1fe [FEM] speed up get_femelement_sets in meshtools.py
The previous implementation was quite slow in filling up the remaining_femelements list.
The new implementation fixes this by using numpy for the heavy work.
2022-01-07 01:23:01 +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
6a0eea21aa FEM: do not use the red error print if it is not a error 2021-08-06 21:35:01 +02:00
Bernd Hahnebach
7af6e21b05 FEM: calculix writer, beam cross section angle, improvements and fixes 2021-08-04 15:52:00 +02:00
Bernd Hahnebach
458bd00613 FEM: improvements for meshes without geometry link 2021-08-01 11:42:33 +02:00
Bernd Hahnebach
a0e2b3f890 FEM: meshtools, fix node count in newly add mesh type method, regressin wass added in 4f3504a6c9a76b 2021-07-30 16:10:16 +02:00
Bernd Hahnebach
c957570c0e FEM: meshtools, add generic method to return femmesh type 2021-07-29 18:19:42 +02:00
Bernd Hahnebach
33679f34b4 FEM: solver run, improve output 2021-07-27 21:57:23 +02:00
Bernd Hahnebach
60739e0b22 FEM: mesh set getter, use ccx independent method names 2021-07-20 09:54:42 +02:00
Bernd Hahnebach
9e89a16078 FEM: mesh set getter, use ccx independent variable names 2021-07-20 09:54:35 +02:00
Bernd Hahnebach
c62334412a FEM: mesh set getter, output print 2021-07-18 14:47:36 +02:00
Bernd Hahnebach
895c817f56 FEM: calculix writer, use mat geo sets instead of ccx elsets 2021-07-17 20:46:29 +02:00
Bernd Hahnebach
6f254bb27b FEM: mesh data getter, add time and some comments 2021-07-16 08:11:05 +02:00
Bernd Hahnebach
8e39ad5755 FEM: separate getting the mesh sets from writer class 2021-07-15 21:57:02 +02:00
UR-0
cc97865141 FEM: constraint centrif, App objects and methods:
- CalculiX centrifugal body loads
- CalculiX label CENTRIF from *DLOAD card
- implement FreeCAD NonGui code
- the object, ccx writer, etc
2021-07-09 22:03:58 +02: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
Bernd Hahnebach
fdb89678ac FEM: mesh tools, add a comment 2021-01-17 23:46:49 +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