Commit Graph

4098 Commits

Author SHA1 Message Date
Uwe
8a18c84143 [FEM] commands.py: reformat a string
- just to be consistent with other strings (found by reviewing https://github.com/FreeCAD/FreeCAD-translations/issues/197)
2022-10-14 02:12:00 +02:00
Uwe
a25bdf15b9 use explicit prefix std:: for vectors
- also add potentially missing include
- this commit is an attempt to fix #7585
2022-10-11 01:44:24 +02:00
Yorik van Havre
9c24f0f5b8 Merged crowdin translations 2022-10-10 11:06:08 +02:00
wmayer
7a5616ad9b Fem: [skip ci] remove QRegExp 2022-10-06 13:55:21 +02:00
Yorik van Havre
4ca1b838a9 Merged crowdin translations 2022-10-06 12:48:05 +02:00
Yorik van Havre
3d75b4fb74 Updated ts files 2022-10-06 12:16:32 +02:00
Uwe
c63ce3f10b [FEM] ViewProviderFemConstrain*: remove unused includes - part 2/2
- also sort includes
- also fix warnings about too long lines
2022-10-03 18:14:51 +02:00
Uwe
a134cfea93 [FEM] ViewProviderFemConstrain*: remove unused includes - part 1
- also sort includes
- also fix warnings about too long lines
2022-10-03 17:10:36 +02:00
Uwe
6757d1e853 [FEM] ViewProviderFem*: remove unused includes
- also sort includes
2022-10-03 15:01:37 +02:00
Uwe
5ce791ffdf [FEM] ViewProvider*: remove unused includes
- also sort includes
2022-10-03 06:07:55 +02:00
Uwe
208b017253 [FEM] TaskFemConstrain*: remove unused includes
- also sort includes
2022-10-03 05:20:52 +02:00
Uwe
365552ba36 [FEM] TaskPostBoxes.cpp: re-add an include
- (strange that it compiled on MSVC without even a warning)
2022-10-03 05:10:07 +02:00
Uwe
4ed99e2f99 [FEM] Task*: remove unused includes
- also sort includes
2022-10-03 04:41:35 +02:00
Uwe
ab1951d099 [FEM] Dlg* etc.: remove unused includes
- also sort includes
2022-10-03 03:57:21 +02:00
Uwe
ae14c761e6 [FEM] FemResult* to end: remove unused includes
- also sort includes
2022-10-03 03:42:22 +02:00
Uwe
4fd3612c1c [FEM] FemPost*: remove unused includes
- also sort includes
2022-10-03 03:15:04 +02:00
Uwe
4f882c0c64 [FEM] FemMesh*: remove unused includes
- also sort includes
2022-10-03 00:47:24 +02:00
Uwe
0fb0dd57ad [FEM] App, FemConstraint*: remove unused includes - part 2/2
- also sort includes
2022-10-02 19:36:38 +02:00
Uwe
a2c9c3e3f0 [FEM] App, FemConstraint*: remove unused includes - part 1
- also sort includes
2022-10-02 18:51:28 +02:00
fandaL
0a11ed0288 FEM:fix remaining result object in memory in femmesh2mesh 2022-10-01 04:29:00 +02:00
marioalexis
834f79845b Fem: Replace C cast 2022-09-18 11:06:51 -05:00
luzpaz
b34d200c54 [FEM] tweak function docstrings in resulttools.py
- migrate to pep8 compatible docstrings
- tweak source comment whitespace
2022-09-16 03:12:50 +02:00
HarryvL
3c3e2f63e6 [FEM] added critical strain ratio functionality (#7467)
* added critical strain ratio functionality
2022-09-14 01:30:17 +02:00
wmayer
bff8a73ba6 Mod: modernize C++: replace 'typedef' with 'using' 2022-08-29 16:21:46 +02:00
berniev
180edfa3cc Mod: Single arg ctors must be explicit 2022-08-24 16:55:20 +02:00
luz paz
7b10713d6f Fix typos and whitespace
Found via `codespell -q 3 -L aci,ake,aline,alle,alledges,alocation,als,ang,anid,anormal,apoints,ba,beginn,behaviour,bloaded,bottome,byteorder,calculater,cancelled,cancelling,cas,cascade,centimetre,childrens,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,itsel,kilometre,lod,mantatory,methode,metres,millimetre,modell,nd,noe,normale,normaly,nto,numer,oce,oder,ontop,orgin,orginx,orginy,ot,pard,parm,parms,pres,programm,que,rady,recurrance,ro,rougly,seperator,serie,sinc,siz,strack,substraction,te,technic,thist,thru,tread,uint,unter,uptodate,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,./src/Base/StackWalker.cpp,./build/doc/SourceDocu`
2022-08-23 18:49:47 +02:00
Uwe
4f8ceb287e [FEM] pipelines: distinguish stresses (#7246)
- it seems using the same Field name for a vector and a scalar result causes problems with ParaView, see https://forum.freecadweb.org/viewtopic.php?p=601775#p601775
 therefore rename the vectors
2022-08-23 02:22:52 +05:00
wmayer
8c298493de Mod: replace std::ifstream/std::ofstream with Base::ifstream/Base::ofstream 2022-08-21 12:46:53 +02:00
Uwe
4ce5f5bd69 [FEM] point filter: add units for flux results 2022-08-17 00:10:22 +02:00
Uwe
212a058c2f [FEM] Elmer: fix flux equation
- the Flux solver must be executed before Heat and Electrostatic
- the analysis can have multiple Flux equations -> write a unique solver name to case.sif
- the Flux equation can currently only take 2 possible values. Therefore provide them as enum
2022-08-16 03:49:26 +02:00
Uwe
6e59fb50a6 [FEM] initial pressure: bind expression to QuantitySpinBox 2022-08-15 11:54:33 +02:00
Uwe
d0ee6a46a0 [FEM] fix body heat source constraint
- as the name implies, it must be possible to set the heat to different bodies
- for this a selection dialog is necessary
- check that heat is not zero
2022-08-15 02:47:01 +02:00
Uwe
32d74bb0ca [FEM] potential constraint: change default value
- in practice one wants to apply potentials to faces via this constraint, therefore enable to set a potential by default, also assure that the initial unit is V
2022-08-15 02:41:35 +02:00
Uwe
1cd02ffee8 [FEM] potential constraint: allow to set expression for value 2022-08-15 01:33:35 +02:00
Uwe
653af31293 [FEM] [skip CI] sorting in Fem.qrc 2022-08-14 23:02:05 +02:00
Uwe
4614b0cf59 [FEM] move initial pressure to fluid constraints group
- this is a fluid-specific constraint
2022-08-14 22:32:29 +02:00
Uwe
9fb77d5caa [FEM] [skip CI] Elmer writer: fix indentation mistake
- found by Pylint checker
2022-08-14 20:41:29 +02: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
4218fb280a [FEM] permittivity: improve code
- in commit 2f0824be I hard-coded the permittivity incorrectly
2022-08-14 19:12:59 +02:00
Uwe
865481fcf4 [FEM] fix handling of vacuum permittivity
- fix message that permittivity object was not handled
- set an expression, otherwise the user gets only "0.000" for the default of 8.8e-12
- use as unit the common "F/m" (this is also more user-friendly than "s^4*A^2 / (m^3*kg)")
- fix a ToDo
2022-08-14 17:59:42 +02: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
c1d3c813ac [FEM] Elmer: writer: get rid of unnecessary function
- fixes the ToDo
- also remove unnecessary comment
2022-08-14 17:12:48 +02:00
Uwe
899c7b8d87 [FEM] Elmer: handle pressure for fluids
- Elmer allows external pressure on fluid boundaries as well as for solids
2022-08-14 16:08:14 +02:00
Uwe
767624ca74 [FEM] change default pressure
- a default of 1 GPa for a pressure onto a face is not suitable. use 1 bar (100 kPa) instead
2022-08-14 07:16:25 +02:00
Uwe
4e7e869c99 [FEM] [skip CI] remove an obsolete comment
- since a while there is no green hook but a QuantitySpinBox
2022-08-14 05:46:17 +02:00
Uwe
1211e0be91 [FEM] Elmer: fix initial flow velocity
- we must allow must be several velocities because there can be several fluid bodies
- don't output flow velocity for solid bodies
2022-08-14 04:39:43 +02:00
Uwe
fd02ff295e [FEM] [skip CI] Elmer: add copyright
-  heavily edited these files so I am to blame now too ;-)
2022-08-14 03:46:49 +02:00
Uwe
f2808b187d [FEM] [skip CI] fix non-Unicode character
- made problems with text editors -> change file to UTF-8
2022-08-14 03:44:28 +02:00
Uwe
90b83f1d8b [FEM] Elmer: sort solver methods for better overview 2022-08-14 03:18:35 +02:00
Uwe
6e44d7db35 [FEM] Elmer: fix for the Idrs method
- while adding support for the IDRS method I forgot to implement its mandatory parameter
2022-08-14 01:48:20 +02:00