Commit Graph

370 Commits

Author SHA1 Message Date
Uwe
3c94e3d87e [FEM] add new filter to display iso contours
- very valuable to display for example electromagnetic field lines
2023-02-13 16:53:21 +01:00
Uwe
3b653b78f9 [FEM] Elmer: add support for 3D magnetodynamics
- adds the corresponding Elmer equation (it is now possible to do Elmer's tutorial example no. 14)
2023-02-10 19:48:31 +01:00
Uwe
f6abb77758 [FEM] add new constraint for magnetization 2023-02-09 14:41:25 +01:00
Uwe
ca05213e2e [FEM] Elmer: add support for 2D magnetodynamics
- adds the corresponding Elmer equation (it is now possible to do Elmer's tutorial example no. 16)
2023-02-07 11:06:22 +01:00
Uwe
65eb154eac [FEM] add current density constraint
- also add corresponding App::PropertyCurrentDensity

- also fix a typo in test_object.py
2023-02-05 21:10:15 +01:00
Uwe
b8ce56b5e6 [FEM] Elmer output material name
- when looking at the Elmer input file 'case.sif' it is extremely helpful to thee also the name of the material
  Since the name is only form info, this does not change the actual simulation
2023-02-04 22:11:30 +01:00
luz paz
4b25b38b7d FEM: remove trailing whitespace 2022-11-30 16:24:06 +01:00
Uwe
25a829bd0c [FEM] add initial pressure constraint (#7364)
* [FEM] add initial pressure constraint

- this is needed for fluids
2022-08-14 20:00:36 +02:00
Uwe
88155e105a [FEM] update a bimetal testfile 2022-08-10 04:26:19 +02:00
Uwe
c86e4b7685 [FEM] update Elmer test files 2022-08-07 06:54:16 +02:00
Uwe
0567a7c026 [FEM] Elmer: fixes for the simulation parameters
- output equation-specific values only if this equation is used
- use Elmer's default for BDF order as default for FC too and allow to change it
- don't hardcode to Steady State. Transient must be possible too, this way add parameters to run a transient analysis
2022-08-06 04:32:18 +02:00
Uwe
3ab3319c65 [FEM] Elmer: update test files 2022-08-06 04:22:08 +02:00
Uwe
a046c1aaa6 [Fem] Elmer: add missing settings for the stress solver
- the usually mandatory setting DisplaceMesh was missing leading to imprecise results. Now the calculated faceload is almost the exact same as with CCX
- also add most of the other settings Elmer 9 provides
- also add tooltips
2022-08-05 04:17:39 +02:00
Uwe
e4fb05f151 [Fem] Elmer: update test files 2022-08-05 02:39:55 +02:00
Uwe
df24489a26 [FEM] Elmer: update test files 2022-08-04 04:50:00 +02:00
Uwe
5d1b25f130 [FEM] Elmer: use direct solving as default for stresses
- direct solving is sometimes even 10 times faster (as fast as CCX) and as accurate as CCX
2022-08-04 03:22:07 +02:00
Uwe
9bb9bb923c [FEM] Elmer: update .sif files
- because of solver default settings change
2022-08-03 04:29:27 +02:00
Uwe
d2cbf80d3c [FEM] Elmer: update .sif files
- because of solver default settings change
2022-08-01 04:27:38 +02:00
Bernd Hahnebach
5d4b753940 FEM: python code formatting 2022-07-31 23:47:45 +02:00
Uwe
d81fe59c2e [FEM] remove checks for Python 2 2022-07-27 14:09:23 +02:00
Uwe
1cc410cb1e [FEM] update Elmer tests after commit 594b65b3 2022-07-27 02:33:42 +02:00
Bernd Hahnebach
41a8ed83af FEM: python code formatting 2022-07-12 15:04:26 +02:00
Uwe
fdd103814c [FEM] fix broken Z88 part 4: don't hardcode memory for iterative solvers
- we must not hardcode the number of coincidence vector places
The user must have a chance to change this setting for the iterative solvers according to the Z88 docs.
We use as default the number Z88 uses in its distributed example.
2022-03-25 19:28:24 +01:00
Uwe
db3e261653 [FEM] update Z88 tests
(I doubt that it is sensible to check if a hardcoded memory value is written. The test will fail if you use a non-default memory setting on your FreeCAD. The CI uses of course the default)
2022-03-25 19:04:21 +01:00
Uwe
80ad680dc9 [FEM] SI unit fixes for Elmer
- since we use consistently SI units (as recommended my the Elmer forum), we need to scale the input mesh (we use ElmerGrid that has an option fur this purpose)
- Since the result will be in the scaled mesh, we need to scale it back

With this PR, one gets now correct result independent of
- the used unit scheme
- the simulation type (electrical or thermo-mechanical)
2022-03-23 05:00:40 +01:00
Uwe
be99144c91 [FEM] adapt a test to previous commit
(I run of course all tests using the Test Framework WB but did not get an error.)
2022-03-19 18:09:14 +01:00
Uwe
f05fa48922 [FEM] forgot this test case in previous commit 2022-03-19 03:51:06 +01:00
Uwe
fa39e0929c [FEM] update test files to previous Elmer fixes 2022-03-19 03:34:18 +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
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
Preslav
fb0e670d8a Added spring boundary condition 2021-09-17 11:08:08 +02:00
Ajinkya Dahale
0a91d2e731 [FEM] Change reference files to avoid failed tests
Fixes two errors introduced in/due to 7621382272ae712ebf4493d996d1a1a918e95df7.

First one is a typo. The writer used "translations" where the reference file for
the test used "translation". Went with "translation" since that was mentioned in
the comment just above.

Second one is some missed out new lines in the reference file
`.../constraint_transform_beam_hinged.inp`. These lines were added in
`.../frequency_beamsimple.inp` but not here.
2021-08-18 17:19:24 +02:00
fandaL
df215f4fce FEM:request for reaction forces on Constraint displacement 2021-08-11 10:02:40 +02:00
Bernd Hahnebach
df68388888 FEM: calculix unit tests, add beam cross section tests 2021-08-04 22:26:07 +02:00
Bernd Hahnebach
799b4a867b FEM: unit tests calculix and cmake, move a method and a file 2021-08-04 22:26:02 +02:00
Bernd Hahnebach
00a6821903 FEM: calculix writer, force constraint, do not write zero loads 2021-08-02 11:14:11 +02:00
Bernd Hahnebach
8cfb09d572 FEM: unit test command file, add command for all FEM App tests 2021-08-01 11:42:43 +02:00
Bernd Hahnebach
96db6713e5 FEM: unit test information, remove duplicate lines, they are in unit test commands file available 2021-08-01 11:42:38 +02:00
Bernd Hahnebach
7f92c9acdc FEM: Mystran solver, add examples and writer unit tests 2021-07-31 16:57:01 +02:00
Bernd Hahnebach
5c8aa20107 FEM: Mystran solver, add solver, writer, tasks and constraint force and
fixed writing
2021-07-31 16:57:01 +02:00
Bernd Hahnebach
ebc8f8c857 FEM: ccx canti quad4 example and unit test, improve mesh 2021-07-29 22:25:38 +02:00
Bernd Hahnebach
a188495ad3 FEM: unit tests, temporary deactivate 2 unit tests as they fail on ci 2021-07-29 13:23:43 +02:00
Bernd Hahnebach
d6568c8303 FEM: examples and unit tests calculix solver, add ccx cantilever with quad8 elements 2021-07-29 13:10:30 +02:00
Bernd Hahnebach
1ea0d9a9e0 FEM: examples and unit tests calculix solver, add ccx cantilever with quad4 elements 2021-07-29 13:10:22 +02:00
Bernd Hahnebach
80b808e414 FEM: z88 unit test, move a method 2021-07-28 23:36:57 +02:00
Bernd Hahnebach
7f8b42af97 FEM: z88 solver, tria6 example and unit test as well as small writer improvements 2021-07-28 23:22:26 +02:00
Bernd Hahnebach
a8a6d01d6c FEM: calculix unit tests, add ccx cantilever with seg2, seg3, tria3 and tria6 mesh elements 2021-07-28 17:24:13 +02:00
Bernd Hahnebach
616ee70e34 FEM: examples and unit tests, some heavy file renaming 2021-07-25 19:20:39 +02:00
Bernd Hahnebach
a8ac4f5fb6 FEM: calculix writer, improve information about units in input file 2021-07-14 10:46:43 +02:00
Bernd Hahnebach
e7efd877d8 FEM: calculix writer, improve floats writing for femelement material 2021-07-14 10:15:18 +02:00