Commit Graph

434 Commits

Author SHA1 Message Date
lyphrowny
f978e4b72b FEM: add floating point comparison for tests 2024-04-08 18:06:17 +02:00
lyphrowny
f2c8bb79d6 FEM: migrate calculix tests to ccxtools tests 2024-04-08 18:02:33 +02:00
lyphrowny
f6ababfdb4 FEM: Fix cxx typo and remove calculix from solvers tab in examples (#12876)
* FEM: remove calculix from solvers

* FEM: remove calculix from joint with ccxtools if branches

* FEM: remove calculix from its if

* FEM: fix cxx typo in translations

* FEM: fix cxx typo in classes name

* FEM: fix ccx typo in shortcuts

* FEM: convert FEM_*CcxTools to CamelCase

* FEM: remove tests related to calculix

* FEM: remove test_solver_calculix.py from Fem/CMakeLists.txt

* FEM: convert all 'CalculiXccxTools' to 'CalculiXCcxTools'

* FEM: revert changes in all *_*.ts files

* FEM: convert 'SolverCcxtools' to 'SolverCcxTools'

* FEM: convert remaining 'Ccxtools' to 'CcxTools'
2024-04-01 10:51:23 -05:00
FEA-eng
d8b289df6e Merge branch 'FreeCAD:main' into fem_ccx_incrementation 2024-03-25 10:45:23 +01:00
lyphrowny
6bdff4769e 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
Chris Hennes
5264d6cc1f Merge pull request #12932 from marioalexis84/fem-ccx_force_format
Fem: Format force constraint in CalculiX writer - fixes #12805
2024-03-13 18:17:11 -05:00
marioalexis
d16c3843e1 Fem: Update force constraint .inp files 2024-03-13 17:26:13 -03:00
marioalexis
1225e7be17 Fem: Export/import mesh elements to Vtk using proper order 2024-03-13 05:50:17 -03:00
marioalexis
673f5d0745 Fem: Add partial support for hexahedral elements - fixes #12526 2024-03-11 12:03:15 -05:00
FEA-eng
8e3fed1ad5 FEM CalculiX output frequency setting (#12672)
* Update solver.py

* Update write_step_output.py

* Update box_frequency.inp

* Update box_static.inp

* Update ccx_buckling_flexuralbuckling.inp

* Update ccx_cantilever_beam_circle.inp

* Update ccx_cantilever_beam_pipe.inp

* Update ccx_cantilever_beam_rect.inp

* Update ccx_cantilever_ele_hexa20.inp

* Update ccx_cantilever_ele_quad4.inp

* Update ccx_cantilever_ele_quad8.inp

* Update ccx_cantilever_ele_seg2.inp

* Update ccx_cantilever_ele_seg3.inp

* Update ccx_cantilever_ele_tria3.inp

* Update ccx_cantilever_ele_tria6.inp

* Update ccx_cantilever_faceload.inp

* Update ccx_cantilever_nodeload.inp

* Update ccx_cantilever_prescribeddisplacement.inp

* Update constraint_contact_shell_shell.inp

* Update constraint_sectionprint.inp

* Update constraint_selfweight_cantilever.inp

* Update constraint_tie.inp

* Update constraint_transform_beam_hinged.inp

* Update constraint_transform_torque.inp

* Update frequency_beamsimple.inp

* Update material_multiple_bendingbeam_fiveboxes.inp

* Update material_multiple_bendingbeam_fivefaces.inp

* Update material_multiple_tensionrod_twoboxes.inp

* Update material_nonlinear.inp

* Update square_pipe_end_twisted_edgeforces.inp

* Update square_pipe_end_twisted_nodeforces.inp

* Update thermomech_bimetall.inp

* Update box_frequency.inp
2024-03-11 12:02:41 -05:00
FEA-eng
96f3a7e8bc Update thermomech_bimetall.inp 2024-02-29 13:47:18 +01:00
FEA-eng
529a6da878 Update thermomech_bimetall.inp 2024-02-29 13:32:18 +01:00
FEA-eng
b0759519de Update square_pipe_end_twisted_nodeforces.inp 2024-02-29 09:52:41 +01:00
FEA-eng
e135e36d5d Update square_pipe_end_twisted_edgeforces.inp 2024-02-29 09:50:52 +01:00
FEA-eng
b3d182f73d Update material_nonlinear.inp 2024-02-29 09:50:33 +01:00
FEA-eng
c4f6e9a8c3 Update material_multiple_tensionrod_twoboxes.inp 2024-02-29 09:50:11 +01:00
FEA-eng
a8bcdb2a68 Update material_multiple_bendingbeam_fivefaces.inp 2024-02-29 09:49:51 +01:00
FEA-eng
72f91e0c05 Update material_multiple_bendingbeam_fiveboxes.inp 2024-02-29 09:49:32 +01:00
FEA-eng
5d0ab3910c Update constraint_transform_torque.inp 2024-02-29 09:49:08 +01:00
FEA-eng
e11ccff6e2 Update constraint_transform_beam_hinged.inp 2024-02-29 09:48:42 +01:00
FEA-eng
1d1841b640 Update constraint_tie.inp 2024-02-29 09:48:17 +01:00
FEA-eng
208d58646c Update constraint_selfweight_cantilever.inp 2024-02-29 09:47:54 +01:00
FEA-eng
02f3d361cc Update constraint_sectionprint.inp 2024-02-29 09:47:37 +01:00
FEA-eng
da3069562e Update constraint_contact_shell_shell.inp 2024-02-29 09:47:19 +01:00
FEA-eng
38dce33060 Update ccx_cantilever_prescribeddisplacement.inp 2024-02-29 09:46:39 +01:00
FEA-eng
ba6b9de959 Update ccx_cantilever_nodeload.inp 2024-02-29 09:46:19 +01:00
FEA-eng
7e9a468ca3 Update ccx_cantilever_faceload.inp 2024-02-29 09:46:02 +01:00
FEA-eng
b18afc0dab Update ccx_cantilever_ele_tria6.inp 2024-02-29 09:45:41 +01:00
FEA-eng
684c8a5367 Update ccx_cantilever_ele_tria3.inp 2024-02-29 09:45:24 +01:00
FEA-eng
b0783477a2 Update ccx_cantilever_ele_seg3.inp 2024-02-29 09:45:01 +01:00
FEA-eng
6bddef5c6c Update ccx_cantilever_ele_seg2.inp 2024-02-29 09:44:44 +01:00
FEA-eng
9bc2b5c506 Update ccx_cantilever_ele_quad8.inp 2024-02-29 09:44:26 +01:00
FEA-eng
c76dbf4459 Update ccx_cantilever_ele_quad4.inp 2024-02-29 09:44:07 +01:00
FEA-eng
2f7a029ac1 Update ccx_cantilever_ele_hexa20.inp 2024-02-29 09:43:49 +01:00
FEA-eng
b49a4f144b Update ccx_cantilever_beam_rect.inp 2024-02-29 09:43:27 +01:00
FEA-eng
fd26660cd0 Update ccx_cantilever_beam_pipe.inp 2024-02-29 09:43:08 +01:00
FEA-eng
884dc2c30f Update ccx_cantilever_beam_circle.inp 2024-02-29 09:42:41 +01:00
FEA-eng
734edd8fd1 Update box_static.inp 2024-02-29 09:42:08 +01:00
FEA-eng
30914209ae Update square_pipe_end_twisted_nodeforces.inp 2024-02-29 09:38:57 +01:00
FEA-eng
3c44afdc6a FEM Beam Shell Result Output 3D true by default (#12493) 2024-02-26 11:01:05 -06:00
FEA-eng
9a0e40feec FEM: Beam reduced integration (#12513) 2024-02-22 15:30:47 -06:00
marioalexis
38f7283016 Fem: Improve constraint tie - partial fixes #11653 2024-01-26 13:44:16 -03:00
marioalexis
6e75703425 Fem: Improve constraint contact - partial fixes #11653 2024-01-26 13:44:16 -03:00
marioalexis
9da842d884 Fem: Improve self weight constraint - fixes #11652 2024-01-20 08:57:46 -07:00
Adrian Insaurralde Avalos
a770971f58 FEM: remove unused file 2024-01-08 11:34:56 -03:00
Uwe
ce860e2f34 Fem: Update force values in test .inp files 2023-10-04 17:06:47 -03:00
Uwe
a6b0cf3b79 Fem: Update pressure values in test .inp files 2023-10-03 17:45:46 -03:00
Jed Brown
9e18bd2d00 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
Petter Reinholdtsen
a480e5e225 Skip open_de9b3fb438 s390x to avoid OOM.
The load of the current file in test_open_head is fine, but
open_de9b3fb438 goes into an OOM even in huge (e.g. 10GB) systemd.
This probably needs a proper fix by upstream in regard to the migration
modules that load the old code, but until then (since the rest works on s390x)
this unblocks the package self-test in Debian & Ubuntu.

Patch by Christian Ehrhardt <christian.ehrhardt@canonical.com>.

This is Debian bug https://bugs.debian.org/984952 and Ubuntu bug
https://bugs.launchpad.net/ubuntu/+source/freecad/+bug/1918474.

Been part of the Debian edition of FreeCAD since 2021.
2023-07-10 09:53:20 -05:00
Jed Brown
d5292d7b0a 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