Commit Graph

200 Commits

Author SHA1 Message Date
marioalexis
71f115fa31 Fem: Add suppressible extension to mesh element objects 2025-01-06 17:56:30 +01:00
marioalexis
a1b1c82310 Fem: Add preference entry to set Gmsh number of threads 2024-12-19 14:38:30 -03:00
marioalexis
397adf8fa8 Fem: Add preference entry to set Netgen number of threads 2024-12-19 14:38:30 -03:00
marioalexis
b81b38e9b1 Fem: Add preference entry to set Netgen log verbosity 2024-12-19 14:38:30 -03:00
FEA-eng
3d346588d1 FEM: Allow shell faces for tie constraint (#18325)
FEM: Update meshtools.py
2024-12-09 19:21:09 +01:00
marioalexis
9af05598cf Fem: Check empty remaining femelements array - fixes #17570 2024-11-25 12:01:44 -05:00
marioalexis
742b8cd13f Fem: Add preference entry to set Gmsh log verbosity - fixes #17673 2024-11-22 12:24:11 -05:00
Chris Hennes
ffcf2cedbe Merge pull request #17170 from marioalexis84/fem-netgen_local_refinement
Fem: Add local refinement and second order linear for Netgen meshing
2024-11-22 12:05:39 -05:00
marioalexis
1b66e3faa8 Fem: Fix spelling in Netgen enumeration property 2024-11-09 10:24:32 -05:00
marioalexis
cec367a291 Fem: Save empy mesh if last step is AnalyzeGeometry in Netgen mesher 2024-11-09 10:24:32 -05:00
marioalexis
3d325da28e Fem: Add second order linear option to Netgen mesh 2024-11-07 23:05:27 -03:00
marioalexis
e99a65a50d Fem: Netgen local refinement 2024-11-07 23:05:27 -03:00
Eric Price
569cd8f9b7 FEM: Allow assigning materials to compounds to avoid having to assign the same material by hand to all subsolids (#17562)
* fix #17561

* [pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

* added missing code to have it also work without MeshRegions

---------

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
2024-11-05 10:15:21 -06:00
marioalexis
616b78865f Fem: Print real-time log messages in mesher task panels - fixes #17594 2024-11-04 13:32:51 -05:00
marioalexis
e27ce22c59 Fem: fix Gmsh analysis mesh groups - fixes #17427 2024-10-31 15:28:44 -05:00
marioalexis
43d2b6e017 Fem: Set startupinfo for gmsh subprocess - fixes #17298 2024-10-21 20:59:42 -05:00
marioalexis
e2f8c9faf8 Fem: Netgen meshing parameters improvements 2024-10-16 10:25:36 -03:00
marioalexis
c20298a115 Fem: Use shape global placement in Mesh Netgen new implementation 2024-09-23 08:17:04 -05:00
Yorik van Havre
21663bba4a Merge pull request #16433 from marioalexis84/fem-mesh_netgen
Fem: New implementation of FemMesh Netgen object
2024-09-16 17:56:56 +02:00
marioalexis
0a8ba60620 Fem: Enable cancel meshing for Gmsh - fixes #5914 2024-09-15 21:04:41 -03:00
marioalexis
9ec44feb53 Fem: New implementation of FemMesh Netgen object 2024-09-15 20:49:38 -03:00
marioalexis
1ff2e0a876 Fem: Allow only one shape type per mesh group - Partially revert #16076 2024-09-09 11:32:51 -05:00
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