Commit Graph

564 Commits

Author SHA1 Message Date
Bernd Hahnebach
991817a47d FEM: cpp python mesh api, fix crash if not existing group was given in get name method 2021-06-24 17:25:54 +02:00
luz paz
1e795e869c [FEM] remove Py2 code 2021-04-25 11:25:29 +02:00
wmayer
5169a7e852 smesh: [skip ci] build FEM & MeshPart with C++14 when using external smesh because it doesn't support C++17 yet 2021-03-31 15:35:28 +02:00
wmayer
b6634e041b Fem: refactor FemMesh::readNastran95 2021-03-11 01:26:19 +01:00
wmayer
38b54de578 Fem: refactor FemMesh::readNastran 2021-03-10 22:56:08 +01:00
wmayer
d4a37421ff Fem: [skip ci] support NASTRAN CTRIA3 elements 2021-03-10 19:38:11 +01:00
wmayer
df738615fd Fem: [skip ci] fix possible crash in Fem::readNastran
The crash can occur if node ids are referenced by faces or volumes that do not exist in the mesh.
2021-03-10 16:39:06 +01:00
Benjamin Nauck
7ec00e22f0 [Fem] Use std::shared_ptr instead of boost::shared_ptr
There's no need to use boost version when stl has support for shared_ptr
2021-03-06 19:32:03 +01:00
wmayer
b2ca86d8d7 FEM: [skip ci] fix crash in Constraint::getDirection 2021-02-26 08:11:16 +01:00
wmayer
7a56781285 FEM: [skip ci] support Line and Plane objects in Constraint::getDirection() 2021-02-24 23:53:15 +01:00
wmayer
5903ff4426 FEM: add basic support of Nastran-95 2021-02-04 13:56:15 +01:00
ceanwang
3ad8367b5e Changed comment for free format CTETRA element 2021-02-04 13:25:13 +01:00
ceanwang
172d2d8a27 Added readNastran95() 2021-02-04 13:25:13 +01:00
ceanwang
67ee247c0c Added readNastran95() 2021-02-04 13:25:13 +01:00
wmayer
7066bfed67 Fem: [skip ci] fix FemMesh::addGroup() for smesh 9 2021-01-24 15:29:56 +01:00
wmayer
f490852ab9 FEM: make FemMesh::getVolumesByFace() working for SMESH >= 7 2021-01-21 13:00:31 +01:00
wmayer
135525a806 smesh: port to version 9.6 2021-01-20 19:49:56 +01: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
wmayer
2de44b123b FEM: [skip ci] Coverity: Dereference after null check 2020-09-22 20:32:21 +02:00
wmayer
421f6c52cb Coverity: Dereference after null check 2020-07-20 17:34:25 +02:00
wmayer
0b45b11344 Coverity: Resource leak 2020-07-20 17:34:24 +02:00
wmayer
93f61a3154 PVS: V590 Consider inspecting this expression. The expression is excessive or contains a misprint. 2020-07-18 10:59:28 +02:00
wmayer
e9bc970c28 PVS: V522 There might be dereferencing of a potential null pointer 2020-07-18 10:59:27 +02:00
Bernd Hahnebach
9b18c2dc19 FEM: vtk pipeline, and frd reader, principal stress, revert and improve 09e3ddb387 2020-07-14 13:26:57 +02:00
wmayer
68b98f5ffe Fem: [skip ci] handle exception in Fem Constraint in case referenced shape element doesn't exist 2020-06-30 11:34:07 +02:00
Bernd Hahnebach
2ef6f1049c FEM: constraint fluid boundary, add comment 2020-06-15 11:44:07 +02:00
joha2
f90a88ce3c FEM: add methods to to edit mesh groups:
- add addGroup, addGroupElements, removeGroup to C++ mesh class
- expose the methods to Python
- add a unit test class
- update test commands file
- add test to fem test app module
2020-05-23 14:56:15 +02:00
Bernd Hahnebach
e61f888837 FEM: post result mesh, better log 2020-02-28 05:41:54 +01:00
UR-0
8b68ab74b6 FEM: use a more precise object name "vonMises" instead "StressValues" 2020-02-14 16:52:40 +01:00
wmayer
9b5bbb6973 fix flaws to add PreCompiled.h inside normal header files 2020-02-03 15:03:49 +01:00
luz.paz
1baf5da3cf FEM: [skip ci] fix header uniformity
This PR fixes header uniformity across all FEM WB files
2019-12-21 20:00:14 +01:00
Bernd Hahnebach
96b2f131c2 FEM: code formating, remove to much empty lines 2019-12-12 21:06:04 +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
0b6e79be35 FEM: code formating do not use to many slashes 2019-12-10 21:41:06 +01:00
asapelkin
8bc5b585c8 Used single quotes for single character in string::find algorithm, more efficient 2019-11-21 18:59:43 +01:00
asapelkin
e951094af9 use emplace_back instead of push_back where justified 2019-11-21 14:48:09 +01:00
wmayer
71dae0e639 handle some more warnings: -Wkeyword-macro -Wdeprecated-declarations -Wextra-semi 2019-11-18 11:56:08 +01:00
luz.paz
1c981e8f14 Fix typos and misc. formatting [skip ci]
Found via `codespell -q 3 -L aci,ake,aline,alle,alledges,alocation,als,ang,anid,ba,beginn,behaviour,bloaded,byteorder,calculater,cancelled,cancelling,cas,cascade,centimetre,childs,colour,colours,commen,currenty,dof,doubleclick,dum,eiter,elemente,feld,freez,hist,iff,indicies,initialisation,initialise,initialised,initialises,initialisiert,ist,kilometre,lod,mantatory,methode,metres,millimetre,modell,nd,noe,normale,normaly,nto,numer,oder,orgin,orginx,orginy,ot,pard,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`
2019-10-21 16:02:23 -03:00
Zheng, Lei
71c54272a0 Fix various Py::Object leak 2019-10-08 17:53:20 +02:00
luz.paz
7b7797f4f3 Fix various (doxy) typos and whitespace issues
Found via `codespell -q 3 -L aci,ake,aline,alle,alledges,alocation,als,ang,anid,ba,beginn,behaviour,bloaded,byteorder,calculater,cancelled,cancelling,cas,cascade,centimetre,childs,colour,colours,commen,currenty,dof,doubleclick,dum,eiter,elemente,feld,freez,hist,iff,indicies,initialisation,initialise,initialised,initialises,initialisiert,ist,kilometre,lod,mantatory,methode,metres,millimetre,modell,nd,noe,normale,normaly,nto,numer,oder,orgin,orginx,orginy,ot,pard,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`
2019-10-03 07:57:13 +02:00
Bernd Hahnebach
80270c7bbf FEM: typos 2019-09-23 21:16:49 +02:00
Markus Hovorka
f96c805dbb FEM: Restructure python test modules/packages
There is a new split into app and gui tests. For this purpose two
packages where created: femtest.app and femtest.gui. Tests that don't
require the GUI up and running are inside the femtest.app package. Tests
that do require the GUI are inside the femtest.gui package. Also
underscores where added to the module names: testcommon to test_common.
2019-09-23 21:16:45 +02:00
Markus Hovorka
88637aeb20 FEM: Add documentation for Fem::Constraint 2019-09-21 13:43:13 +02:00
Markus Hovorka
3b71a71076 FEM: Add documentation to Analysis.h 2019-09-21 13:43:10 +02:00
Markus Hovorka
27675f1e8d FEM: Remove unnecessary overrides from Analysis
onChanged, execute, mustExecute and getPyObject where overwritten but
the implementation didn't do anything different from the implementation
of the base class DocumentObject in this case. Thus they where
redundent.
2019-09-21 13:43:06 +02:00
Bernd Hahnebach
7695106ff6 FEM: code formating replace lines of # with lines of * 2019-09-19 09:10:56 +02:00
wmayer
d0d92b0801 force strict ISO C++ (-Wpedantic)
for Fem, Import, PartDesign, Robot, Sketcher, TechDraw
2019-09-18 14:18:07 +02:00
Bernd Hahnebach
866010f6d2 FEM: German comments, translate them into English 2019-09-12 21:05:03 +02:00
Zheng, Lei
435815ccc8 Fem: minor changes 2019-08-17 15:15:47 +02:00
Bernd Hahnebach
3765de9ed9 FEM: vtk result pipeline, use log instead of message for debug 2019-07-03 12:43:19 +02:00