Commit Graph

194 Commits

Author SHA1 Message Date
Uwe
b0eec67163 [FEM] change example file
- make mesh more coarse to save calculation time
- since it is the example for transient solving, get one more result
2023-03-26 09:52:32 +02:00
Uwe
831f001026 [FEM] update transient analysis example file
- get outputs every 25 % and the last one is the final time
2023-03-25 05:48:14 +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
3bced92364 [FEM] add example file for deformation 2023-03-23 06:17:09 +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
Uwe
866ea2551d [FEM] rewrite initial velocity constraint
- same as #8963 but for initial velocity

- add an example file that demonstrates the influence of the initial velocity
- some fine-tuning for the existing flow example
2023-03-20 04:58:24 +01:00
Uwe
b496a41cd1 [FEM] rewrite velocity constraint
- complete revision of the constraint.

This is a breaking change, meaning existing constraints won't work.

This is possible because since 2 days ago the whole flow equation did not work at all. Also the existing constraint implementation if buggy and cannot be used to do the Elmer tutorial. Also, the constraint is only used by Elmer and only be the flow equation.

Since nobody complained about the obvious wrong results, we can assume the flow equation was not yet in practical usage (and for FC 0.20 we known that it does not work at all, first with FC 0.20.1).

It is necessary since it must be possible to either input a velocity or an equation. With an equation, a velocity profile can be specified.

- update the flow examples accordingly:
-- simplify them since an initial and and output velocity is not necessary to specify
-- use a formula as input velocity for the non-turbulent example
2023-03-20 01:57:09 +01:00
Uwe
cf29318063 [FEM] add an example for a turbulent flow 2023-03-17 17:57:09 +01:00
Uwe
619e909202 [FEM] fix 1D thermomech example
- the heat capacity of water was wrong
- also specify just thermal expansion, this make that water is recognized as material and then all water parameters will be available

(that the analysis fail despite CalculiX reports everything went well s is another issue, I will investigate later)
2023-03-17 17:55:50 +01:00
luzpaz
f2e77a903b Fix misc. grammar and whitespace 2023-03-13 15:01:05 +01:00
Uwe
dfa7766b5b [FEM] [skip ci] fixes for flow example
- the heat solver settings were wrong so that the heat was actually not calculated for convection
- also set more realistic temperatures
2023-02-27 15:03:34 +01:00
luzpaz
fcac4def8e [Fem] fix grammar 2023-02-25 09:59:24 +01:00
Uwe
8e4745658c [FEM] fixes for flow and electrodynamics examples
- define materials so that they are recognized by material handling as existing card
- use "electrodynamics" as equation because this is the common name for the physics of these examples
- fix typos
2023-02-24 16:50:42 +01:00
Uwe
d4eb6ed0a2 [FEM] fix for electrostatics examples
- define Air so that it is recognized by material handling as existing card
2023-02-24 16:44:49 +01:00
Uwe
5853b065c7 [FEM] add example for magnetostatics 2023-02-24 16:32:11 +01:00
Uwe
e5953204bd [FEM] simplify Magnetodynamics 2D example
- thanks to the forum: https://forum.freecad.org/viewtopic.php?p=662830#p662830
2023-02-23 12:37:46 +01:00
Uwe
9440ad90a5 [FEM] add example for magnetodynamic 2D equation 2023-02-23 03:48:31 +01:00
luzpaz
72166fed46 Fix misc. typos and whitespace 2023-02-22 23:46:18 +01:00
Uwe
5d48f2bff1 [FEM] add example for magnetodynamic equation
- also fix description of other recently added examples
2023-02-22 03:51:28 +01:00
Uwe
efdbccd0b2 [FEM] add example for flux equation
- also fine-tune flow example
2023-02-21 13:01:14 +01:00
Uwe
41a20d4934 [FEM] add new example file for flow and heat
- also extend examples libraries for (more to come) examples with multiphysics (multiple equations)
2023-02-20 02:06:48 +01:00
Uwe
c46809c4c2 [FEM] update Elmer examples
- active already the analysis
- generate the mesh preferably directly, also if this fails, load the rough meshes
- use value for Air is they are in our Air material card
- apply material to the body (not necessary but good practice, the examples are there to teach people and for more complex models setting the material to a body is important)
2023-02-19 00:45:57 +01:00
Uwe
7d815e78d6 [FEM] Elmer example: remove wrong permittivity
- a permittivity of 1 F/m is not physical, also not for testing. In fact overwriting a constant is not good practice for an example
2022-08-14 17:54:15 +02:00
Uwe
cd1991f4ea [FEM] fix bimetall example
- add missing density
- set a second temperature to make the heat solver actually working
- adapt to new defaults
2022-08-10 02:27:27 +02:00
Uwe
f8769643cd [FEM] Elmer: fix broken example
- (a regression to FC 0.20.0), use new settings ("direct" is already the default, iterative solving takes here about 5 times longer, DisplaceMesh must be False)
2022-08-09 05:38:02 +02:00
Uwe
bff25dfdd1 [FEM] adapt electrostatic examples to changed unit handling
- also a coding improvement
2022-03-26 04:54:36 +01:00
Uwe
f2def75852 [FEM] Elmer examples: use better names for constraints
fixes a ToDo and the unit tests work fine nevertheless
2022-03-26 01:46:54 +01:00
Uwe
31645fc5bc [FEM] change example to fit with Elmer's tutorial
- this example is the Elmer tutorial number 13: https://www.nic.funet.fi/pub/sci/physics/elmer/doc/ElmerTutorials.pdf and they use a potential of 1.0, since Elmer uses SI units, it is 1.0 V
2022-03-19 15:29:55 +01:00
Ajinkya Dahale
16a82d1eb7 [FEM] Add tools for more yield points in simple hardening materials
String List instead of String should allow for arbitrarily many entries,
theoretically.

Note the defaults previously in `YieldPoint1` an `YieldPoint2` were arbitrary.
Now the list is kept empty by default.

Fixes issue #4720.
2021-09-17 11:07:16 +02:00
luzpaz
eec971d87a Draft: Fix LGTM 'test for equality' warning (#4969)
* Draft: Fix LGTM 'test for equality' warning

ref: https://lgtm.com/projects/g/FreeCAD/FreeCAD/alerts/?mode=tree&ruleFocus=7900090

* FEM: source comment typo fixes
2021-08-16 22:52:13 -05:00
Bernd Hahnebach
4d56e7d1e6 FEM: examples, use correct constraint in information for mystran plate example 2021-08-10 22:12:19 +02:00
Bernd Hahnebach
15d1446650 FEM: examples, displacement constraint needs to set Free and Fix 2021-08-09 22:16:33 +02:00
Bernd Hahnebach
d8dd29c196 FEM: examples, delete not needed material values 2021-08-09 21:29:59 +02:00
Bernd Hahnebach
17d16130e7 FEM: examples, add ccxtools solver 2021-08-09 21:29:52 +02:00
Bernd Hahnebach
64f4984a22 FEM: examples, truss seg2, fix solver typ 2021-08-05 15:35:51 +02:00
Bernd Hahnebach
2d68431642 FEM: examples, add 3D truss for z88 and calculix 2021-08-05 15:33:29 +02:00
Bernd Hahnebach
0ff4cde3ff FEM: CalxuliX cantlever beam examples for pipe, circle and rectangle cross section 2021-08-03 20:02:52 +02:00
Bernd Hahnebach
095cbd28d0 FEM: examles, add missing geom obj links in meshes 2021-08-01 11:42:49 +02:00
Bernd Hahnebach
e4b15dd336 FEM: calculix prechecks, beamsections and mesh without geometry link is not allowed 2021-08-01 11:42:29 +02:00
Bernd Hahnebach
7f92c9acdc FEM: Mystran solver, add examples and writer unit tests 2021-07-31 16:57:01 +02:00
Bernd Hahnebach
d578041b25 FEM: examples, small improvements 2021-07-29 22:26:13 +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
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
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
ad9a44e690 FEM: examples, ccx cantilever add face and edgemesh 2021-07-25 21:33:04 +02:00
Bernd Hahnebach
a2413094f6 FEM: examples, canti hexa20, delete wrongly added exaplanation object 2021-07-25 21:32:58 +02:00
Bernd Hahnebach
c2d13b02eb FEM: examples, ccx canti hexa20, fix comment 2021-07-25 20:30:55 +02:00
Bernd Hahnebach
616ee70e34 FEM: examples and unit tests, some heavy file renaming 2021-07-25 19:20:39 +02:00
Bernd Hahnebach
f71dd0c689 FEM: examples, code formating, use double quotes whenever it is possible 2021-07-25 19:19:59 +02:00