Commit Graph

646 Commits

Author SHA1 Message Date
FEA-eng
e69976ebbb Merge branch 'FreeCAD:main' into fem_ccx_incrementation 2024-03-25 10:45:23 +01:00
FEA-eng
edf639b4b4 FEM: Update solver.py 2024-03-21 12:30:01 +01: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
e606104a02 FEM: Update solver.py 2024-03-14 22:13:56 -05:00
marioalexis
9633214238 Fem: Format force constraint in CalculiX writer - fixes #12805 2024-03-13 14:50:24 -03:00
FEA-eng
0aa2f283fa 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
8056b2dec1 FEM CalculiX isotropic and kinematic hardening (#12666)
* Update material_mechanicalnonlinear.py

* Update write_femelement_material.py

* Update material_mechanicalnonlinear.py
2024-03-04 11:11:48 -06:00
FEA-eng
3f59036439 FEM CalculiX 2D mechanical analyses (plane stress, plane strain and axisymmetric) (#12562) 2024-03-02 11:46:18 -06:00
FEA-eng
f06a067445 Update write_step_equation.py 2024-02-28 23:17:34 +01:00
FEA-eng
ad99f6f737 Update solver.py 2024-02-28 23:13:45 +01:00
FEA-eng
1f6440b86e FEM Beam Shell Result Output 3D true by default (#12493) 2024-02-26 11:01:05 -06:00
FEA-eng
968859c542 FEM: Beam reduced integration (#12513) 2024-02-22 15:30:47 -06:00
FEA-eng
7d40503bc9 FEM new matrix solver types (PaStiX and Pardiso) (#12478)
* Update solver.py
* Update write_step_equation.py
* Update DlgSettingsFemCcx.ui
2024-02-17 20:14:32 -06:00
marioalexis
86794b0378 Fem: Add support for cyclic symmetry - fixes #12155 2024-02-08 16:08:59 -06:00
marioalexis
3dbb4b3dd3 Fem: Improve constraint tie - partial fixes #11653 2024-01-26 13:44:16 -03:00
marioalexis
7e5bb7361a Fem: Improve constraint contact - partial fixes #11653 2024-01-26 13:44:16 -03:00
marioalexis
56d4214317 Fem: Improve self weight constraint - fixes #11652 2024-01-20 08:57:46 -07: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
Adrian Insaurralde Avalos
738938d9ed Migrate away from deprecated distutils python package where possible 2023-10-23 10:51:50 -05:00
Uwe
af684644ab Fem: Change ConstraintPressure::Force property to App::PropertyForce 2023-10-04 17:03:28 -03:00
Uwe
d115018b94 Fem: Change ConstraintPressure::Pressure property to App::PropertyPressure 2023-10-03 17:44:31 -03:00
Roy-043
f254a6f5c0 Reverted change for sifio.py 2023-08-16 16:47:27 +02:00
Roy-043
efda96b933 FEM: Avoid dictionary.keys() where possible 2023-08-16 16:47:27 +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
688fe0d2fb FEM: pep8, more code formatting 2023-04-06 08:13:42 +02:00
Bernd Hahnebach
f3cb55ef30 FEM: code formatting, pep8, E265 2023-04-06 08:13:42 +02:00
Bernd Hahnebach
9f99a46379 FEM: code formatting, pep8, E225 2023-04-06 08:13:42 +02:00
Bernd Hahnebach
3f7eaac7a0 FEM: code formatting, pep8, 261 2023-04-06 08:13:42 +02:00
Bernd Hahnebach
cf7f712c44 FEM: code formatting, pep8, 226 2023-04-06 08:13:42 +02:00
Bernd Hahnebach
5c1fa3c24e FEM: code formatting, pep8, 302 2023-04-06 08:13:42 +02:00
luzpaz
6bd40b5dcd Fem: fix trailing whitespace 2023-04-01 08:39:05 +02:00
Uwe
cc6c98c1d4 [FEM] Temperature constraints overhaul
- fix bug that changing constraint type in dialog lost flux value
- accept and not immediately save any changed value
- make the temperatures a PropertyTemperature to get rid of hacks
- also fix some too long code lines
2023-03-28 01:23:47 +02:00
Chris Hennes
fd1a8dc85a Merge pull request #9067 from Pesc0/removesix
remove remaining six dependencies
2023-03-26 17:36:47 -05:00
Pesc0
1c093e8729 remove remaining six dependencies 2023-03-26 23:39:00 +02:00
Uwe
e90347e3f7 [FEM] fix binary check
- the current implementation only considers explicitly given binaries (with full path) and ignores the setting to check the environment paths
- also remove 2 trailing whitespaces
2023-03-26 19:35:20 +02:00
Uwe
bd2b95562b [FEM] proper support for transient analyses
- for the first time ever you get now for every time step a result in FreeCAD
- this way also change output filename prefix to "FreeCAD" to avoid we depend on the default name Elmer gives and that was already changed in the past and to distinguish the *.vtu files from those created e.g. directly by ElmerGui
- also remove an unnecessary output to the case.sif file
2023-03-26 10:00:45 +02:00
Uwe
e0695a18c8 [FEM] Elmer: add missing deformation info
- also some formatting changes done by clang
2023-03-26 09:32:56 +02:00
Uwe
f0796014bc [FEM] Elmer: fix transient analyses
- different time results were never output, only the final one
  the reason is that the Output Intervals intervals property was missing
- a second reason was that the result scaling solver must be executed every time an output should be generated
- the BDF Order property is a transient-only property
2023-03-25 12:29:10 +01:00
Uwe
79842733ac [FEM] revert f3cebc81379 2023-03-25 11:38:03 +01:00
Uwe
954fa3f506 [FEM] Elmer: fix transient analyses
- different time results were never output, only the final one
  the reason is that the Output Intervals intervals property was missing
- a second reason was that the result scaling solver must be executed every time an output should be generated
- the BDF Order property is a transient-only property
2023-03-25 05:48:02 +01:00
Uwe
05d675364c [FEM] improve new default solver setting
- fix bug if no solver should be default
- only provide solvers that are available to be the default
- also add commit opened transactions
- also remove unused include and correct an include
2023-03-24 20:24:02 +01:00
marioalexis
c97de6c038 Fem: Add option to select default solver when creating Analysis 2023-03-24 15:40:54 +01:00
Uwe
5a0f8436c2 [FEM] don't add CCX solver by default for new analyses
- if there are other solvers found, we should handle all solvers equally
- also reduce amount of console output on every analysis run
2023-03-24 03:25:02 +01:00
Uwe
4c9afb4546 [FEM] activate spring constraint
- the spring constraint is currently unused but it can be used for Elmer mechanical analyses
This PR does so and also overhaul the dialog UI.
- use the spring constraint also in an example file
2023-03-23 15:14:50 +01:00
Uwe
45743d4fbd [FEM] improve displacement constraint
- use a Distance and Angle property to get the unit handling right
2023-03-23 00:50:40 +01:00
Uwe
c9cb01531f [FEM] extend displacement constraint
- add fields to specify a formula for the displacement, this is necessary to make transient deformation analyses with Elmer
- add option to set displacement from result of flow equation
- this way also a major overhaul -> simpler dialog logic etc.
2023-03-22 15:23:32 +01:00
Uwe
14c88f41fb [FEM] several Elmer fixes
- fix whitespace in the SIF writer
- Elmer GUI uses only 20 nonlinear iterations, so we should do the same (500 were also not sensible)
- don't restrict nonlinear-Newton iterations to 100, 500 might be necessary for turbulent flow
- update author
2023-03-22 07:27:20 +01:00
Uwe
333cf5fdd7 [FEM] fixes for deformation equation
- deformation is a nonlinear equation
- use the default that Elmer GUI uses for this equation
2023-03-22 07:20:51 +01:00
Uwe
0fcea8b3bb [FEM] Elmer add support for nonlinear elasticity solver
- adds new equation "Deformation" (this name since the stress solver got in FreeCAD the misleading name "elasticity")

- this way change icon of elastic solver to make the difference clear
2023-03-22 03:27:27 +01:00
Uwe
f1799f27b0 [FEM] fine-tune flow examples
- use a more sensible velocity distribution
- change inlet temperature for 2 examples

- also change step size for nonlinear iterations for more convenience for practical usage
2023-03-20 07:17:11 +01:00