Commit Graph

130 Commits

Author SHA1 Message Date
wmayer
d2b7b730d3 + replace deprecated PYTHON_INCLUDE_PATH 2015-07-25 18:29:42 +02:00
wmayer
2829d2bdb6 + implement missing types in FemMesh.addFace 2015-07-10 11:01:17 +02:00
Przemo Firszt
9ffa46904b FEM: Add basic FemTools module
That module will handle in the future all non-gui related features
that are currently in MechanicalAnalysis.py. It will allow easier
python scripting and greater flexibility when creating new FEM wb
features.

Signed-off-by: Przemo Firszt <przemo@firszt.eu>
2015-07-06 19:21:43 +02:00
Przemo Firszt
53df1e1471 FEM: All FEM results are stored in a single object
Functionality previously provided by setNodeColorByResult is now
in setNodeColorByScalars. FemResult* object is no longer required,
the function accepts list of elements and a list of values.

Functionality previously provided by setNodeDisplacementByResult is now
in setNodeDisplacementByVectors. FemResult* object is no longer required,
the function accepts list of elements and a list of vectors.

A side effect: FemResultValues and FemResultVector are no longer used
and have bee removed.

Signed-off-by: Przemo Firszt <przemo@firszt.eu>
2015-06-24 17:44:02 +02:00
wmayer
a996650a1d + fix whitespaces 2015-05-26 17:55:38 +02:00
Przemo Firszt
1dd7e5925a FEM: Add ConstraintPressure
Signed-off-by: Przemo Firszt <przemo@firszt.eu>
2015-05-26 14:17:45 +01:00
wmayer
e12854af50 + raise error message when trying to mesh without netgen support 2015-05-22 16:15:18 +02:00
wmayer
7eb2ab64cb + FEM: replace set with list to preserve order 2015-05-15 13:48:29 +02:00
wmayer
02a23ba86f + use list of pairs instead of map for getVolumesByFace 2015-05-09 12:02:25 +02:00
wmayer
a538d3c29d + FEM: add a couple of methods to Python interface 2015-05-09 00:15:05 +02:00
wmayer
d3029657f0 + implement FemMesh::getVolumesByFace, replace inner list by tuple 2015-05-08 21:45:13 +02:00
Przemo Firszt
92124ac084 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
6879373168 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
36567695d3 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
982976bdc5 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
Przemo Firszt
8a3c346971 FEM: Rename CalculixLib to ccxFrdReader
Signed-off-by: Przemo Firszt <przemo@firszt.eu>
2015-04-27 21:33:11 +02:00
Przemo Firszt
214aff046a FEM: Move .inp writer to InpWriter.py file
Suggested by: bernd
Signed-off-by: Przemo Firszt <przemo@firszt.eu>
2015-04-27 21:33:10 +02:00
Przemo Firszt
c1ea3d2179 FEM: Remove never used colorValue function and FemLib.py file
Signed-off-by: Przemo Firszt <przemo@firszt.eu>
2015-04-27 21:33:08 +02:00
Przemo Firszt
d91862da6a FEM: Remove empty python file added with commit 2818bc4ddf
Signed-off-by: Przemo Firszt <przemo@firszt.eu>
2015-04-27 21:33:07 +02:00
wmayer
800a0a7b67 + improve abaqus export 2015-04-14 13:33:20 +02:00
wmayer
80680c986c + fix bad choose of limit 2015-04-11 01:06:03 +02:00
wmayer
5f04c6e882 + FEM: get nodes by vertex 2015-03-30 11:45:35 +02:00
wmayer
0ad627b06d + choose consistent C++ and Python method names
+ fix typos
+fix whitespaces
2015-03-30 10:42:14 +02:00
Bernd Hahnebach
d2888e6c28 Fem: add Support for loads and supports on edges to CalculiX file 2015-03-30 10:24:38 +02:00
wmayer
1f641abb51 + improve abaqus exporter 2015-03-15 14:53:22 +01:00
wmayer
97aba58bb2 + fix crash in export to abaqus 2015-03-15 02:08:55 +01:00
wmayer
84d878fa81 + set Const attribute to some methods of FemMesh 2015-03-12 10:42:23 +01:00
wmayer
5f1effd108 + fix assert failure in FemMesh 2015-03-10 12:44:22 +01:00
wmayer
20c367f2dc + in Fem constraint force dialog handle empty Direction 2015-02-27 23:27:08 +01:00
wmayer
6721139630 + use undo/redo for Fem constraint force dialog 2015-02-27 11:21:05 +01:00
wmayer
e8822668af + fix issue with bad default value of natural direction 2015-02-20 14:40:03 +01:00
Richard Crozier
85d082517f Correct spelling of FEM Netgen Mesh 'Fineness' parameter 2015-01-12 11:12:30 +01:00
Richard M. Shaw
d5e8ae2d05 Update CMake config to work with smesh 6.5.3.1.
New fork of standalone smesh is available here:
https://github.com/tpaviot/smesh
2014-12-19 11:23:38 +01:00
Sebastian Hoogen
46a00d1380 remove support for automake 2014-11-26 10:26:30 +01:00
Sebastian Hoogen
01cf0f5872 issue #1027 use unicode filepaths 2014-10-11 13:32:06 +02:00
wmayer
ee6cb252fa + fix issues with force constraint 2014-10-10 17:42:33 +02:00
wmayer
ddb267fdf6 + fix warnings with clang 2014-09-24 18:00:46 +02:00
wmayer
696d4a5f4a + fix warnings with clang 2014-09-24 17:46:04 +02:00
Sebastian Hoogen
af50cbf964 fixes #0001422: Subclass Exception
inherit Base.FreeCADError form RuntimeError
inherit Part.OCCError from Base.FreeCADError
inherit OCCDomainError from Part.OCCError
inherit OCCRangeError from Part.OCCError
inherit OCCConstructionError from OCCDomainError
inherit OCCDimensionError from OCCDomainError
Added PY_CATCH_OCC macro
replace PyExc_Exception
use FreeCADError in makeWireString
catch exception in BSplineCurve.increasedegree
2014-09-17 11:15:56 +02:00
jriegel
103ae7c2ad move build specifier in own cMake group 2014-08-03 20:53:19 +02:00
wmayer
6ac93e9d72 Add initial support for different libdir (jobermayr) 2014-05-10 12:57:38 +02:00
wmayer
4b2b243e47 + compile with clang 2014-05-05 16:24:01 +02:00
mdinger
1498e99cef Move python module prefix and suffix properties into macro to be set together 2014-05-03 16:00:30 +02:00
wmayer
67edfb895b + Fix prefix of Python extensions built with MinGW 2014-04-30 18:22:52 +02:00
mdinger
e2bd648e9a Remove unnecessary quotes. 2014-04-30 13:41:16 +02:00
mdinger
3e3ce381f6 Apply SET_BIN_DIR macro to Mod 2014-04-30 13:41:13 +02:00
jriegel
bd2af70902 fix load of BDF with element number bigger 1000000 2014-03-24 21:12:21 +01:00
wmayer
e8eb0bd828 + support loading projects with old pad features, fix critical bug where the unit gets replaced 2014-02-12 15:14:02 +01:00
jriegel
131e4c2568 Finish get nodes by surface 2014-02-09 17:55:35 +01:00
jriegel
b87ea22edf Get node of face implementation 2014-02-09 17:55:34 +01:00