Commit Graph

190 Commits

Author SHA1 Message Date
Uwe
431fafc533 [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
9007723331 [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
06061e37dc [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
5dabd5dfff [FEM] add an example for a turbulent flow 2023-03-17 17:57:09 +01:00
Uwe
e5caf77009 [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
ff470469f5 Fix misc. grammar and whitespace 2023-03-13 15:01:05 +01:00
Uwe
7cab1aa415 [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
5c6ec58709 [Fem] fix grammar 2023-02-25 09:59:24 +01:00
Uwe
cfc08e6dce [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
8c66538447 [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
45eff3aaed [FEM] add example for magnetostatics 2023-02-24 16:32:11 +01:00
Uwe
2d5aad845a [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
486970b90d [FEM] add example for magnetodynamic 2D equation 2023-02-23 03:48:31 +01:00
luzpaz
57b365f18f Fix misc. typos and whitespace 2023-02-22 23:46:18 +01:00
Uwe
35725769d9 [FEM] add example for magnetodynamic equation
- also fix description of other recently added examples
2023-02-22 03:51:28 +01:00
Uwe
d13926baa8 [FEM] add example for flux equation
- also fine-tune flow example
2023-02-21 13:01:14 +01:00
Uwe
1f8f2bf6cb [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
65195d99b0 [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
e2636b2926 [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
5cd06b6148 [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
4571206be5 [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
1c666f7837 [FEM] adapt electrostatic examples to changed unit handling
- also a coding improvement
2022-03-26 04:54:36 +01:00
Uwe
2e8fc8e477 [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
00ea879bfd [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
5f4b87035b [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
72411f83ad 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
273a7d5e3f FEM: examples, use correct constraint in information for mystran plate example 2021-08-10 22:12:19 +02:00
Bernd Hahnebach
a0d860679e FEM: examples, displacement constraint needs to set Free and Fix 2021-08-09 22:16:33 +02:00
Bernd Hahnebach
ad63322ac7 FEM: examples, delete not needed material values 2021-08-09 21:29:59 +02:00
Bernd Hahnebach
4e6a09be37 FEM: examples, add ccxtools solver 2021-08-09 21:29:52 +02:00
Bernd Hahnebach
6c78531ab6 FEM: examples, truss seg2, fix solver typ 2021-08-05 15:35:51 +02:00
Bernd Hahnebach
c4118bb2be FEM: examples, add 3D truss for z88 and calculix 2021-08-05 15:33:29 +02:00
Bernd Hahnebach
f7cefaef47 FEM: CalxuliX cantlever beam examples for pipe, circle and rectangle cross section 2021-08-03 20:02:52 +02:00
Bernd Hahnebach
597dbfb6c4 FEM: examles, add missing geom obj links in meshes 2021-08-01 11:42:49 +02:00
Bernd Hahnebach
abcd05b591 FEM: calculix prechecks, beamsections and mesh without geometry link is not allowed 2021-08-01 11:42:29 +02:00
Bernd Hahnebach
005c66f4ec FEM: Mystran solver, add examples and writer unit tests 2021-07-31 16:57:01 +02:00
Bernd Hahnebach
83723fef44 FEM: examples, small improvements 2021-07-29 22:26:13 +02:00
Bernd Hahnebach
0816e30cba FEM: ccx canti quad4 example and unit test, improve mesh 2021-07-29 22:25:38 +02:00
Bernd Hahnebach
551e6e9675 FEM: examples and unit tests calculix solver, add ccx cantilever with quad8 elements 2021-07-29 13:10:30 +02:00
Bernd Hahnebach
74b6276c20 FEM: examples and unit tests calculix solver, add ccx cantilever with quad4 elements 2021-07-29 13:10:22 +02:00
Bernd Hahnebach
26c2d6540f FEM: z88 solver, tria6 example and unit test as well as small writer improvements 2021-07-28 23:22:26 +02:00
Bernd Hahnebach
1cc9c88be1 FEM: examples, ccx cantilever add face and edgemesh 2021-07-25 21:33:04 +02:00
Bernd Hahnebach
c5be18888b FEM: examples, canti hexa20, delete wrongly added exaplanation object 2021-07-25 21:32:58 +02:00
Bernd Hahnebach
4695ed09ca FEM: examples, ccx canti hexa20, fix comment 2021-07-25 20:30:55 +02:00
Bernd Hahnebach
83c8cc30e8 FEM: examples and unit tests, some heavy file renaming 2021-07-25 19:20:39 +02:00
Bernd Hahnebach
7416fd3f5b FEM: examples, code formating, use double quotes whenever it is possible 2021-07-25 19:19:59 +02:00
Bernd Hahnebach
94c0522c38 FEM: constraint centrif, add example 2021-07-09 22:04:05 +02:00
Bernd Hahnebach
83991d7014 FEM: examples, constraint transform beam hinged, fix material 2021-07-09 13:45:19 +02:00
Bernd Hahnebach
0a388722a7 FEM: constraint transform torque example, code improvement and unit test fix 2021-07-09 13:17:58 +02:00
Sudhanshu Dubey
48d6fa8ea2 FEM: examples, add constraint transform torque example 2021-07-09 13:17:44 +02:00