Commit Graph

62 Commits

Author SHA1 Message Date
Ladislav Michl
1c955c9347 Fem: get unit via quantity
Unit is interally using Quantity to parse string input, so use it
explicitely as string constructor for Unit is going to be dropped.
2025-06-03 09:31:38 +02:00
bofdahof
998f4e4d45 Console: rename PascalCase named methods to camelCase 2025-05-06 17:50:21 +02:00
Stefan Tröger
c5c38a4a12 FEM: Ensure finite frame values only. Fixes #20933 2025-04-28 18:45:05 +02:00
Kacper Donat
b300c80b90 Base: Use explicit pointer syntax for freecad_cast (#20694)
* Base: Use explicit pointer syntax for freecad_cast

This aligns our custom cast with other casts

* All: Use explicit pointer syntax for freecad_cast
2025-04-11 14:11:33 +00:00
Kacper Donat
35a9673a75 Base: Rename Base::freecad_dynamic_cast into freecad_cast
This is to make it shorter and easier to use. QT does the same thing
with their qobject_cast.
2025-04-07 10:32:28 -05:00
marioalexis84
f4adf2e0e9 Fem: Update modification time for FemFrameSourceAlgorithm - fixes #20543 (#20548) 2025-04-01 23:19:53 -05:00
marioalexis
6d376dc77a Fem: Add method to rename pipeline VTK data arrays 2025-04-01 06:35:17 +02:00
Luz Paz
f809e34ea0 Fix typos
Found via `codespell -q 3 -L aci,addmin,ake,aline,alle,alledges,alocation,als,ang,anid,anormal,aply,apoints,ba,beginn,behaviour,bloaded,bottome,brushin,bu,byteorder,calculater,cancelled,cancelling,cas,cascade,centimetre,childrens,childs,colour,colours,commen,connexion,currenty,documentin,dof,doubleclick,dum,eiter,elemente,ende,feld,finde,findf,findn,fle,freez,graphin,hist,iff,incrementin,indexin,indicies,initialisation,initialise,initialised,initialises,initialisiert,inout,ist,itsel,kilometre,leadin,localy,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,renderin,rin,ro,rougly,sectionin,seperator,serie,shs,sinc,siz,som,strack,substraction,te,technic,thist,thru,tread,tru,ue,uint,unter,uptodate,vas,vertexes,vew,wallthickness,whitespaces -S "./.git,*.po,*.ts,*.pdf,./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/SourceDoc,./tools/build/WindowsInstaller/lang,./src/Mod/TechDraw/Templates/locale"`
2025-03-31 23:00:32 +02:00
pre-commit-ci[bot]
c15e45e7e2 [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
2025-03-22 23:27:10 +01:00
Stefan Tröger
9fb0d7b0bb FEM: Update multiframe code after review 2025-03-22 23:27:10 +01:00
Stefan Tröger
f264e0c932 FEM: Multistep test fix for vtk 7.x 2025-03-22 23:27:10 +01:00
Stefan Tröger
22c8d389d4 FEM: Port elmer transient analysis to multiframe results 2025-03-22 23:27:10 +01:00
Stefan Tröger
9738b9b6ea FEM: Modernize multiframe code and incorporate review feedback 2025-03-22 23:27:10 +01:00
Stefan Tröger
0a1cc21b5c FEM: Make post object placement work 2025-03-22 23:27:10 +01:00
Stefan Tröger
c8a4ff0a70 FEM: Backward compatibility for post pipeline and multiple fixes 2025-03-22 23:27:10 +01:00
Stefan Tröger
53a7e5ab34 FEM: Correctly implement Drag/Drop for post objects 2025-03-22 23:27:10 +01:00
Stefan Tröger
a65a7feb87 FEM: Switch post groups to extension based system 2025-03-22 23:27:10 +01:00
Stefan Tröger
1cff507a7f FEM: Multiframe adoptions
- To support timedata and the relevant filters the pipeline needs to be fully setup, hence not only working on data
 - Multiblock source algorithm is needed to supply the time data for the algorithms
2025-03-22 23:27:10 +01:00
Benjamin Nauck
dd6aa9f3c7 Prefer to use BaseClass's isDerivedFrom<T> over non template or Base::Type's
Regex based changes, manually verified
2025-01-27 16:08:18 +01:00
Chris Hennes
7bd413066f Update src/Mod/Fem/App/FemPostPipeline.cpp 2024-12-06 11:29:37 -06:00
marioalexis
c01e9ed63b Fem: Fix FemPostPipeline base class 2024-12-03 11:45:41 -03:00
wmayer
91a40b2007 Fem: Apply clang-format 2023-09-25 14:50:43 +02:00
wmayer
d525e0d308 Fem: modernize C++: use equals default 2023-08-21 13:35:54 +02:00
Benjamin Bræstrup Sayoc
33384cff9c [Everywhere] FileInfo::hasExtension for multiple values (#9774)
* [Base] Add hasExtension for multiple values

* [Gui] Use hasExtension for multiple values

* [Drawing] Use hasExtension for multiple values

* [Fem] Use hasExtension for multiple values

* [Import] Use hasExtension for multiple values

* [Mesh] Use hasExtension for multiple values

* [Part] Use hasExtension for multiple values

* [TechDraw] Use hasExtension for multiple values
2023-08-07 09:55:19 -06:00
Uwe
c8630fec0a [FEM] shorten too long lines
- reformatting was done by the MSVC formatter according to our current clang file
2023-02-06 23:12:53 +01:00
wmayer
5225a5f904 Fem: [skip ci] include Python.h before vtk headers to fix a warning with clang/MSYS2 2022-11-08 10:45:23 +01:00
Uwe
447cc015f0 [FEM] FemPost*: remove unused includes
- also sort includes
2022-10-03 03:15:04 +02:00
berniev
da9ebc572f Mod: redundant void 2 2022-08-08 10:27:50 +02:00
luz paz
d02f6330fc FEM: remove trailing whitespace from various FEM files 2022-08-08 02:10:17 +02:00
Uwe
38aaf9bfb3 [FEM] Elmer: fix pipeline update issue
- the existing result pipeline can have several children. They must all be updated.
2022-08-07 06:22:42 +02:00
Uwe
adfffb688c [FEM] remove some unused includes 2022-08-02 05:15:31 +02:00
Uwe
fc548a4b34 [FEM] remove superfluous nullptr checks 2022-07-18 01:45:19 +02:00
Uwe
6625281986 [FEM] enable to run Elmer multi-threaded
- this needs proper testing, especially on a non-Windows system

- note that for some tasks multi-threading requires non-standard additional solvers like MUMPS. Ideally the user should be informed about this, depending on the equations he uses. But this should not block this PR, meaning to use multi-threading in general.
2022-07-16 14:59:25 +02:00
wmayer
f00a3f59c4 Fem: add a scale() function to FemPostPipeline 2022-04-15 12:08:47 +02:00
Uwe
708a300b93 [FEM] introduce custom pipeline mode
- in order to benefit from the previous fix when e.g. setting up a clip filter of a clip filter one needs the set inputs untouched. The existing modes however changed all an the addition of a new filter.
Use this new mode as default since it preserves the inputs as the users set them on the filter creation
2022-03-27 07:19:56 +02:00
wmayer
d4da6b21e2 Fem: include Python.h before any vtk headers to fix compiler warnings 2022-03-24 20:05:27 +01:00
wmayer
7ae9fc0d67 Fem: modernize C++11
* use nullptr
2022-03-23 19:26:15 +01:00
Uwe
d5604e0e89 [FEM] remove Python.h and Xerces 2022-03-21 01:22:59 +01:00
luz paz
eab17ddff5 Fix various typos 2021-07-31 09:46:50 +02:00
wmayer
a96f6619a7 Fem: Python header must be included before vtk headers to avoid re-definition of macro _LARGEFILE_SOURCE 2020-10-18 14:45:31 +02:00
Bernd Hahnebach
e61f888837 FEM: post result mesh, better log 2020-02-28 05:41:54 +01:00
Bernd Hahnebach
12c31ab055 FEM: add gitattributes file to let git manage file endings and normalize them 2019-12-12 07:29:15 +01:00
Bernd Hahnebach
7695106ff6 FEM: code formating replace lines of # with lines of * 2019-09-19 09:10:56 +02:00
Abdullah Tahiri
676a4f0457 PCH: Fem App 2019-05-16 21:43:07 +02:00
wmayer
560b415f19 Replace Base::Exception with appropriate subclass 2018-11-14 17:19:30 +01:00
Bernd Hahnebach
99855a1605 FEM: vtk, export FC result, get rid of needless result types
- an result is an result, we just gone export what we have
- a vtk result can consists of all kind of result types
2018-10-01 17:53:30 -03:00
Unknown
93dd48dc6a FEM: Moar typos 2017-12-31 15:25:34 +01:00
wmayer
a72a4d9a75 Add Python wrapper for pipeline object 2017-05-18 18:40:25 +02:00
Kunda
90aeb372f5 FEM: source code typos, issue 0002914 2017-02-28 17:35:26 +01:00
Bernd Hahnebach
17eac77144 FEM: code formating, white spaces 2017-02-16 13:11:14 +01:00