Commit Graph

472 Commits

Author SHA1 Message Date
Bernd Hahnebach
ff802c7274 FEM: elmer solver writer, add some comment in the regard of units 2022-07-12 11:35:45 +02:00
Mihail
8afc5d3f0a FEM WB Elmer viscosity bug fix.
In Elmer there was errors "Viscosity not found" if used mixed solid and flow calculation.
This fix disables Stokes-Navier eruation for Solid objects.

	modified:      src/Mod/Fem/femsolver/elmer/writer.py
2022-07-02 05:16:50 +02:00
wmayer
93d745235c Fem: scale imported vtk data set 2022-04-15 21:07:40 +02:00
Uwe
30928c0710 [FEM] Elecrostatic: use App::PropertyElectricPotential 2022-03-26 02:29:19 +01:00
Uwe
cc4578e9ae [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
ebc0c0ae04 [FEM] fix broken Z88 part 3: don't hardcode memory
- we must not hardcode the number of stiffness matrix places, especially not for the Cholesky solver
The user must have a chance to change this setting in case of a solver error. This is also according to the Z88 docs that says it is a two step process:
- the solver first computed the necessary places
- the user must set the value accordingly in case it is too low

- also some code style fixes
2022-03-25 18:40:12 +01:00
Uwe
d035bbc1ca [FEM] fix broken Z88 part 1: don't hardcode solver
- especially don't hardcode the choly solver that fails quickly for finer meshes
- setting sorcg as default since it shows the best performance with the cantilever tests
2022-03-25 16:49:03 +01:00
Uwe
3904da9d93 [FEM] handle Elmer result mesh zoom properly
- also fix an issue that after a successful simulation, no result was visible
2022-03-24 22:01:45 +01:00
Uwe
876b694230 [skip CI] [FEM] whitespace fix 2022-03-23 05:21:48 +01:00
Uwe
389ae0ab39 [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
b935de6851 [FEM] fix unit for Elmer
to assure we use SI units
2022-03-22 05:11:02 +01:00
Uwe
29f5e78583 [FEM] proper Elmer input file write solution
- assure that independent on the used unit scheme, SI units are written to the Elmer input file
- reverts commits https://github.com/FreeCAD/FreeCAD/commit/4a7f7a0faa and https://github.com/FreeCAD/FreeCAD/commit/28a4f6aef
2022-03-19 17:48:11 +01:00
Uwe
28a4f6aefa [FEM] fix vacuum permittivity for the Elmer solver
also a missing fix for the density
2022-03-19 03:06:27 +01:00
Uwe
4a7f7a0faa [FEM] fix the Elmer solver writer
- fixes #6604
as it was, Elmer was almost unusable because most values were input with wrong units to Elmer.
Elmer uses pure SI units

ToDo: fix the still wrong Vacuum permittivity
2022-03-19 01:53:26 +01:00
Uwe
1293eb2116 [FEM] add icon for the new supported MYSTRAN solver 2022-03-18 00:18:25 +01:00
Uwe
0ead5a793b fix more typos to silence the spellchecker CI 2022-02-21 13:20:06 +01:00
wmayer
3dfdc6804f Fem: [skip ci] fix runtime failure when using Py3.10 2022-01-24 10:28:22 +01:00
luz paz
0042f58e4c 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
luz paz
277e164657 Fix various typos
Found via `codespell -q 3 -L aci,ake,aline,alle,alledges,alocation,als,ang,anid,apoints,ba,beginn,behaviour,bloaded,bottome,byteorder,calculater,cancelled,cancelling,cas,cascade,centimetre,childs,colour,colours,commen,connexion,currenty,dof,doubleclick,dum,eiter,elemente,ende,feld,finde,findf,freez,hist,iff,indicies,initialisation,initialise,initialised,initialises,initialisiert,inout,ist,kilometre,lod,mantatory,methode,metres,millimetre,modell,nd,noe,normale,normaly,nto,numer,oder,ontop,orgin,orginx,orginy,ot,pard,parms,pres,programm,que,recurrance,rougly,seperator,serie,sinc,strack,substraction,te,thist,thru,tread,uint,unter,vertexes,wallthickness,whitespaces -S ./.git,*.po,*.ts,./ChangeLog.txt,./src/3rdParty,./src/Mod/Assembly/App/opendcm,./src/CXX,./src/zipios++,./src/Base/swig*,./src/Mod/Robot/App/kdl_cp,./src/Mod/Import/App/SCL,./src/WindowsInstaller,./src/Doc/FreeCAD.uml,./build/doc/SourceDocu`
2021-10-10 14:55:48 -04:00
Bernd Hahnebach
8bb582f23f FEM: writer base, use tempfile module for the temp directory 2021-10-04 17:16:12 +02:00
Bernd Hahnebach
fa843ad084 FEM: writer base, improve working dir handling 2021-10-04 17:16:07 +02: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
Bernd Hahnebach
37d9757399 FEM: writer base, fix regression introduce in calculix writer with ec55cb6b77 2021-09-03 08:31:08 +02:00
Bernd Hahnebach
bf3d86e8b0 FEM: pep8 code formating 2021-08-18 21:21:33 +02:00
Ajinkya Dahale
6c977d8511 [FEM] Change reference files to avoid failed tests
Fixes two errors introduced in/due to c6697bbc78.

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
c6697bbc78 FEM:request for reaction forces on Constraint displacement 2021-08-11 10:02:40 +02:00
Bernd Hahnebach
d635f03a60 FEM: solver task panel, get rid off error message 2021-08-09 15:32:40 +02:00
Bernd Hahnebach
aff4172550 FEM: solver framework member checks, extend them 2021-08-06 21:35:29 +02:00
Bernd Hahnebach
dff0537fab FEM: z88 and mystran writer, get rid of deprecated member assignments 2021-08-06 21:35:21 +02:00
Bernd Hahnebach
ec3b79aa9d FEM: z88 tasks and writer, make use of mesh set data getter class 2021-08-06 21:35:16 +02:00
Bernd Hahnebach
6dbe713d7b FEM: tasks module for z88, mystran and calculix, code improvements 2021-08-06 21:35:11 +02:00
Bernd Hahnebach
afd885330a FEM: z88 writer, code formatting 2021-08-06 21:35:06 +02:00
Bernd Hahnebach
a94eb6b3ba FEM: typo 2021-08-04 22:25:56 +02:00
Bernd Hahnebach
e197c3ab9f FEM: calculix writer, beam cross section angle, improvements and fixes 2021-08-04 15:52:00 +02:00
Bernd Hahnebach
d3b503be90 FEM: calculix writer, femelement geometry, code formating 2021-08-04 15:51:55 +02:00
Bernd Hahnebach
7dac3cc6b3 FEM: calculix writer, delete formatting comment, no longer needed as alle calculix input values are formatted the time being 2021-08-03 22:28:58 +02:00
Bernd Hahnebach
ea9272b1a3 FEM: calculix writer, reaction forces, add some comment 2021-08-03 16:59:15 +02:00
Bernd Hahnebach
ecff58875c FEM: calcuix writer, fix circular beam section 2021-08-02 18:29:25 +02:00
Bernd Hahnebach
f8d040f9fd FEM: calculix writer, force constraint, do not write zero loads 2021-08-02 11:14:11 +02:00
Bernd Hahnebach
6fed5236b9 FEM: z88 writer, add circular beam section 2021-08-02 09:52:54 +02:00
Bernd Hahnebach
ce6df4494c FEM: improvements for meshes without geometry link 2021-08-01 11:42:33 +02:00
Bernd Hahnebach
cdcd271b4c FEM: Mystran solver, add solver, writer, tasks and constraint force and
fixed writing
2021-07-31 16:57:01 +02:00
Bernd Hahnebach
d15ae5d804 FEM: z88 writer, delete if tests, prechecks are made before starting writer 2021-07-28 23:37:08 +02:00
Bernd Hahnebach
a9af9829f5 FEM: calculix framework solver, do not rais a exception on problems 2021-07-28 23:22:37 +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
c0c6212f0c FEM: solver, improve analysis member tests 2021-07-27 23:42:09 +02:00
Bernd Hahnebach
c756881ffa FEM: solver run, improve output 2021-07-27 21:57:23 +02:00
Bernd Hahnebach
41b0805e18 FEM: solver frame work, improve binary handling 2021-07-26 11:45:09 +02:00
Bernd Hahnebach
e84f0ab609 FEM: solver frame work, code formating 2021-07-26 11:45:03 +02:00
Bernd Hahnebach
415a29387a FEM: calculix writer, constraint force, code formating 2021-07-25 19:19:41 +02:00