Commit Graph

178 Commits

Author SHA1 Message Date
marioalexis
8d622e02ae Fem: Use regex for gmsh groups items 2024-09-02 18:12:16 +02:00
FEA-eng
a7a8491601 FEM: Start examples rework (#15786)
* FEM: Delete data/examples/FemCalculixCantilever1D.FCStd

* FEM: Delete data/examples/FemCalculixCantilever2D.FCStd

* FEM: Delete data/examples/FemCalculixCantilever3D.FCStd

* FEM: add new example combining the previous 3

* FEM: Update CMakeLists.txt

* FEM: Update femmesh2mesh.py

* FEM: Update test_information.md

* FEM: Update test_result.py

* FEM: Update MaterialEditor.py

* FEM: Delete data/examples/FEMExample.FCStd

* FEM: add new example without logo
2024-08-12 17:46:09 -04:00
Chris Hennes
b78ca52aad Merge pull request #15624 from marioalexis84/fem-mesh_shape_object
Fem: Improve FemMeshShape objects
2024-07-29 11:13:43 -05:00
fandaL
1cae7ffc3f FEM: FemMesh2Mesh fix quad elements 2024-07-29 11:07:18 -05:00
FEA-eng
826f6a2e7a Fem: Add missing Gmsh 2D algorithm (Quasi-structured Quad) 2024-07-28 19:18:28 -03:00
marioalexis
385c32d4e3 Fem: Move MeshGmsh proxy from Fem::FemMeshObject to Fem::FemMeshShapeBaseObject - fixes #14897 2024-07-28 16:27:20 -03:00
marioalexis
8dd23f6c89 Fem: Remove unused gmsh option - fixes #6354 2024-07-22 11:07:25 -05:00
lyphrowny
359c1ae2bb FEM: reformat codebase 2024-06-23 16:26:36 +03:00
Chris Hennes
3181c4f2a8 Merge branch 'main' into erase-version-4 2024-06-17 11:10:12 -05:00
marioalexis
d8f1ade17d Fem: Add body heat source to CalculiX writer - fixes #11650 2024-06-02 18:38:15 -03:00
Ajinkya Dahale
0a6a7155e5 FEM: Add rigid body constraint to ccx writer 2024-05-16 12:51:37 -05:00
marioalexis
8d13863bfd Fem: Remove unused functions 2024-04-16 11:28:52 -03:00
lyphrowny
be14bde507 FEA: fix 1d beam cross section orientation (#12833)
* FEA: fix 1d beam cross section orientation

* FEM: revert 1,2-directions to FreeCAD way; fix normal direction for z<0

* FEM: change 1-direction to +y axis

Previous commit changes the 1-direction to -y axis, however originally it was directed at +y axis. This commit makes the 1-direction face +y axis

* FEM: update cantilever tests

* FEM: relax math.isclose by adding abs tolerance
2024-03-18 18:16:10 +01:00
FEA-eng
8ce8376271 Update meshtools.py (#12774) 2024-03-11 12:21:14 -05:00
marioalexis
d8012f74ba Fem: Add partial support for hexahedral elements - fixes #12526 2024-03-11 12:03:15 -05:00
FEA-eng
3f59036439 FEM CalculiX 2D mechanical analyses (plane stress, plane strain and axisymmetric) (#12562) 2024-03-02 11:46:18 -06:00
marioalexis
5350f94201 Fem: Update constraint symbols when moving reference shape - fixes #6093 2024-02-26 04:01:28 -03:00
marioalexis84
7363daf166 Fem: Enable checkbox for references mesh groups - fixes #10071 (#12437) 2024-02-24 10:29:00 -06:00
FEA-eng
968859c542 FEM: Beam reduced integration (#12513) 2024-02-22 15:30:47 -06:00
luzpaz
9c8a3f27f9 Fix typos 2023-12-22 13:35:23 +00:00
mac-the-bike
de27dbc442 Merge branch 'main' into erase-version-4 2023-12-14 13:33:42 +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
mac-the-bike
408eed1657 Version 4 of the Erasing Elements Code 2023-11-22 11:56:21 +00: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