Commit Graph

70 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
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
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
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
Zheng, Lei
71c54272a0 Fix various Py::Object leak 2019-10-08 17:53:20 +02:00
Abdullah Tahiri
676a4f0457 PCH: Fem App 2019-05-16 21:43:07 +02:00
wmayer
e385ed7809 add convenience functions to get element type to id and vice versa 2019-01-20 17:58:30 +01:00
wmayer
76c9540009 fix crash when accessing invalid group 2019-01-20 17:57:08 +01:00
looooo
d4461f351c add function to retrive femmesh edges by a TopoDS_Edge 2018-11-09 11:11:59 +01:00
looooo
57a8fddba0 Fem: fenics: py3-fixes 2018-06-04 10:02:09 +02:00
luz.paz
ba9dba4b26 FEM: typo fixes 2018-04-29 20:40:15 +02:00
wmayer
68cc427b00 Improve handling of external smesh
+ add SMESH_version.h.cmake to set full version number instead of using compiler define
+ do not set include path of smesh globally
+ do not set library path of smesh globally
+ do not set HAVE_NETGEN define globally
+ improve using debug and release libs of smesh for MSVC
2018-04-28 12:10:55 +02:00
looooo
547cc9f36c external smesh: use version info
for precompiler conditionals
2018-04-28 12:05:30 +02:00
looooo
21cdc9ea4a port to smesh 8.3
using #ifdef EXTERNAL_SMESH for the diff
2018-04-28 12:05:30 +02:00
Bernd Hahnebach
f271e52b3d FEM: Abaqus writer, add method parameter for elem and group options 2017-11-25 16:54:02 -02:00
Bernd Hahnebach
1f11a3cc8e FEM: mesh api, add EdgesOnly and FacesOnly 2017-11-25 16:54:02 -02:00
wmayer
949c86d364 Port to occ7.2:
+ Standard_Failure::Caught() is now marked as deprecated and should be replaced with standard C++ exception handling
2017-09-01 16:27:46 +02:00
Peter Lama
a75a98ef27 Use OCCT Handle macro for Handle_ classes
This is the result of running OCCT's upgrade script provided
with OCCT 7.0. See
https://www.opencascade.com/content/freecad-occt710-and-windows-rtti-data-missing#comment-form
and
https://www.forum.freecadweb.org/viewtopic.php?f=4&t=21405&start=120#p169019
for why this is necessary for OCCT >= 7.1
2017-04-20 12:27:34 +02:00
Kunda
90aeb372f5 FEM: source code typos, issue 0002914 2017-02-28 17:35:26 +01:00
looooo
5c0bcf611f py3: FEM, PyMods, preprocessor conditions, Py::Long vs Py::Int 2017-02-19 14:21:34 +01:00
wmayer
b2767f7197 rearrange headers to avoid warning 2016-12-30 13:31:08 +01:00
wmayer
68ea7fdac5 fix coverity issues 2016-10-08 17:43:30 +02:00
wmayer
386e3d7024 do not handle enum value SMDSAbs_NbElementTypes 2016-10-01 13:34:37 +02:00
Bernd Hahnebach
efb87dc1c0 FEM: python mesh API, add methods to retrieve group data 2016-10-01 13:20:38 +02:00
Bernd Hahnebach
084e163137 FEM: add GroupID to python mesh API 2016-09-27 13:04:47 -03:00
wmayer
0d010d0418 fix crash in FemMeshPy::addVolume 2016-08-19 16:56:05 +02:00
Bernd Hahnebach
55873e71bf FEM: mesh python api, add methods to add edges with id 2016-08-15 21:38:31 +02:00
Bernd Hahnebach
a39f57c7cc FEM: mesh python api, add method to add faces with id 2016-08-15 21:38:09 +02:00
Bernd Hahnebach
421b3f5abb FEM: mesh python api, delete some empty lines 2016-08-15 21:37:35 +02:00
Bernd Hahnebach
5f94c14b36 FEM: mesh python api, better error message 2016-08-15 21:37:08 +02:00
qingfengxia
be86b992c2 correct spelling StanardHypotheses to StandardHypotheses 2016-08-07 18:20:17 +01:00
Wolfgang E. Sanyer
7f4a437cc2 This commit adds getShape and setShape to TopoShape 2016-08-06 23:42:55 +02:00
Stefan Tröger
aae79ee558 FEM: Add faces by face workaround for force constraint 2016-06-15 22:34:10 +02:00
Bernd Hahnebach
b58e37b950 FEM: remove trailing whitespaces 2016-04-24 19:10:33 +02:00
Bernd Hahnebach
14eb6869a9 FEM: convert all windows code files to unix line ending 2016-04-24 19:10:33 +02:00
wmayer
118d2eb531 + fix typo in FEM 2015-12-09 13:19:13 +01:00
Bernd Hahnebach
2f5706262d FEM: add SMESH supported volumes to Python API of FemMesh 2015-11-19 19:00:52 +01:00
Bernd Hahnebach
0c55f927f5 FEM: add getNodesBySolid()
Conflicts:
	src/Mod/Fem/App/FemMesh.cpp
2015-11-07 13:24:45 -02:00
Mateusz Skowroński
43a4a5938c Fix files encoding. Go from ISO8859-1 to UTF-8. 2015-09-21 19:50:49 -03:00
wmayer
b3970f63ba + implement missing types in FemMesh.addFace 2015-07-10 11:01:17 +02:00
wmayer
96e77ab5bf + FEM: replace set with list to preserve order 2015-05-15 13:48:29 +02:00
wmayer
45604b3874 + use list of pairs instead of map for getVolumesByFace 2015-05-09 12:02:25 +02:00
wmayer
814c144ecb + FEM: add a couple of methods to Python interface 2015-05-09 00:15:05 +02:00
wmayer
9e89f2ff9a + implement FemMesh::getVolumesByFace, replace inner list by tuple 2015-05-08 21:45:13 +02:00
Przemo Firszt
48efcc449b FEM: Add getccxVolumesByFace and write_face_load functions
getccxVolumesByFace returns std::map<int, int> with ID of volume
and a number of face as per CalculiX definition. The same function is
accessible for python and returns list with the same information, like
this: [[229, 3], [230, 3], [233, 2], [238, 2]]

write_face_load produces something like this in the .inp file:

***********************************************************
** element + CalculiX face + load in [MPa]
** written by write_face_load function
*DLOAD
** Load on face Face2
229,P3,10.0
230,P3,10.0
233,P2,10.0
238,P2,10.0

Optimised by wmayer

Signed-off-by: wmayer
Signed-off-by: Przemo Firszt <przemo@firszt.eu>
2015-05-08 20:58:59 +02:00
Przemo Firszt
be43c7f5c0 FEM: getNodesByVertex should return int not long
Suggested by wmayer

Signed-off-by: Przemo Firszt <przemo@firszt.eu>
2015-05-08 20:58:43 +02:00
Przemo Firszt
3395d4ea02 FEM: getNodesByEdge should return int not long
Suggested by wmayer

Signed-off-by: Przemo Firszt <przemo@firszt.eu>
2015-05-08 20:58:26 +02:00
Przemo Firszt
0e670396fa FEM: getNodesByFace should return int not long
Suggested by wmayer

Signed-off-by: Przemo Firszt <przemo@firszt.eu>
2015-05-08 20:58:07 +02:00
wmayer
ff774748cd + FEM: get nodes by vertex 2015-03-30 11:45:35 +02:00