Commit Graph

134 Commits

Author SHA1 Message Date
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
berniev
b796a0d376 Mod: use empty 2022-08-06 19:30:13 +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
1aa897d450 Fem: remove some superfluous const_cast 2022-06-24 19:43:33 +02:00
Uwe
8e253cb4c8 [FEM] fix a variable casting
- reported by MSVC not to cast a float to a double but as double directly

- also remove some superfluous Boolean comparisons
2022-06-19 15:15:18 +02:00
wmayer
d4da6b21e2 Fem: include Python.h before any vtk headers to fix compiler warnings 2022-03-24 20:05:27 +01:00
Uwe
d3bd8141f9 [FEM] App headers: remove unused headers 2022-03-24 15:35:32 +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
Ajinkya Dahale
8a59607517 [FEM] Use OpenMP for FemMesh::{getNodesByEdge, getNodesByVertex} 2022-01-07 01:23:01 +01:00
Ajinkya Dahale
147f2a0b07 [FEM] Possibly fix race conditions
Race conditions introduced after using OpenMP in `FemMesh::getNodesByFace` and
`FemMesh::getNodesBySolid` because of which nodes were randomly added or removed
from sets. Solved by replacing `SMDS_MeshNode::X()` etc., which are not thread
safe, with the thread-safe `SMDS_MeshNode::GetXYZ()`.
2022-01-07 01:23:01 +01:00
Philipp Knechtges
8087b34840 [FEM] OpenMP-parallelize FemMesh::{getNodesBySolid,getNodesByFace}
Projecting nodes onto TopoDS_Shapes is a costly task, which can
potentially take a lot of time, so let's parallelize it.
2022-01-07 01:23:01 +01: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
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
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
e9bc970c28 PVS: V522 There might be dereferencing of a potential null pointer 2020-07-18 10:59:27 +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
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
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
Bernd Hahnebach
866010f6d2 FEM: German comments, translate them into English 2019-09-12 21:05:03 +02:00
Bernd Hahnebach
56918fdd48 FEM: mesh api, add comment 2019-07-02 16:08:19 +02:00
wmayer
71ff3123ee improve unicode support for Abaqus export 2019-07-02 15:42:16 +02:00
luz.paz
9453e68e23 Misc. source comment typo and whitespace fixes
Found via codespell
2019-06-16 20:47:07 +02:00
Abdullah Tahiri
676a4f0457 PCH: Fem App 2019-05-16 21:43:07 +02:00
Bernd Hahnebach
150bcfcd77 FEM: mesh api, import of Abaqus inp mesh file with Fem API 2018-12-14 22:51:39 +01:00
Bernd Hahnebach
b441c0d3e8 FEM: mesh api, import of z88 mesh file with Fem API 2018-12-14 22:51:39 +01:00
Bernd Hahnebach
e01546b0a9 FEM: mesh api, export of z88 mesh file with Fem API 2018-12-12 08:47:33 -03:00
wmayer
560b415f19 Replace Base::Exception with appropriate subclass 2018-11-14 17:19:30 +01:00
looooo
d4461f351c add function to retrive femmesh edges by a TopoDS_Edge 2018-11-09 11:11:59 +01:00
wmayer
e31cac568e revert changes of SMESH_Gen class interface of bundled SMESH 2018-08-18 16:13:10 +02:00
luz.paz
baa6d89328 Typos and whitespace fixes 2018-08-07 11:13:31 -04:00
Bernd Hahnebach
c9f6855fc4 FEM: typos, can't hardly belive there still are some ... 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
43bc2de694 FEM: mesh, changes messages into logs 2018-03-27 12:29:13 -03:00
Bernd Hahnebach
42987dac37 FEM: mesh api, fix get nodes by face, credits go to user _UR 2018-03-21 12:19:59 +01:00
Bernd Hahnebach
2540f2a3bb FEM: mesh export, fix init file and better output 2018-03-14 07:47:17 +01:00
luz.paz
3ee6b6ac94 FEM: typos 2018-01-23 14:43:54 +01:00