Commit Graph

838 Commits

Author SHA1 Message Date
Bernd Hahnebach
fcd4603b66 FEM: fix translation issue of FEM Menue 2016-03-09 18:52:22 +01:00
Yorik van Havre
9af03d9b68 Fem: Fixed a translation bug 2016-03-08 21:44:06 -03:00
Yorik van Havre
d1b4f23388 Added latest translations from crowdin 2016-03-06 14:50:07 -03:00
wmayer
0ea6a2ed0d + removed unneeded pure virtual method getFaces from PropertyComplexGeoData
+ extend interface of ComplexGeoData::getPoints to also return normals if available
2016-03-04 17:16:57 +01:00
Bernd Hahnebach
74a43f23b3 FEM: ccxInpWriter, add Nodes dict to self object 2016-03-03 18:40:32 +01:00
fandaL
c1bf26bbd7 FEM: ccxInpWriter, copy Nodes dict 2016-03-03 18:40:31 +01:00
Bernd Hahnebach
57c783e5b0 FEM: make python modules again flake8 compatible 2016-03-02 22:23:27 +01:00
Bernd Hahnebach
bc3cc033e1 FEM: make method names in ccxwriter consisten 2016-03-02 22:23:27 +01:00
Bernd Hahnebach
83ccbbe79d FEM: remove not used methods from FemAnalysis class 2016-03-02 22:23:26 +01:00
Yorik van Havre
7734ffb810 Updated translation files 2016-03-01 12:34:03 -03:00
wmayer
93f32d4dd1 + prepare string for translation 2016-02-29 13:22:49 +01:00
vginkeo
f14758d5e5 FEM: C++98 compatible fix to constraint displacement reference deletion, update vertice, edge, face selection 2016-02-29 13:06:16 +01:00
vginkeo
e47560003e FEM: do not hide constraints for result view 2016-02-29 13:06:15 +01:00
vginkeo
187894d8b5 FEM: remove some trailing whitespaces 2016-02-29 13:06:14 +01:00
vginkeo
fcd2882ad7 FEM: remove module ccxInpWriterFemConstraintDisplacement
which was intoduced in commit b1dc2cb by an accident
2016-02-29 13:06:13 +01:00
triplus
d432c72a15 Add SVG workbench icons 2016-02-26 23:17:43 +01:00
Yorik van Havre
28b6c82555 Added updated translations from crowdin - fixes #2443 2016-02-26 18:32:02 -03:00
Yorik van Havre
577f208da7 Revert "FEM: Updated fix to constraint displacement reference deletion, update hide show, remove custom input writer, update vertice, edge, face selection."
This reverts commit ac4d466443.
2016-02-19 00:05:55 -02:00
vginkeo
ac4d466443 FEM: Updated fix to constraint displacement reference deletion, update hide show, remove custom input writer, update vertice, edge, face selection. 2016-02-18 19:15:16 -02:00
Bernd Hahnebach
183f8dfebe FEM: fix unit test cases 2016-02-17 19:36:16 +01:00
Bernd Hahnebach
2f2e6e8f8c FEM: infile fix, youngs modulus and poisons ratio
have to be in one line for ccx 2.9
2016-02-17 19:36:16 +01:00
Yorik van Havre
6a35ef38c7 Updated ts files 2016-02-12 14:22:04 -02:00
vginkeo
b1dc2cbf94 FEM: Implement constraint displacement in C++ 2016-02-12 11:09:58 +02:00
Yorik van Havre
2e2192f88a Added slovenian language 2016-02-03 13:36:51 -02:00
Bernd Hahnebach
b3f77dcc35 FEM: material task panel, save density in kg per m3 to material dictionay 2016-02-02 07:18:48 +01:00
Bernd Hahnebach
e9606a241a FEM: fix, transient material was used in some cases even if material was not changed 2016-02-02 07:18:47 +01:00
Bernd Hahnebach
3690313065 FEM: use transient material for a saved None material too
this will reload material data saved into the None material
2016-02-02 07:18:46 +01:00
Bernd Hahnebach
60cdca01a8 FEM: fix, use uniqe names for materials in CalculiX input file 2016-02-02 07:18:46 +01:00
Yorik van Havre
37b1bdbe27 Updated translations with latest from crowdin 2016-02-01 23:32:58 -02:00
vginkeo
80a791021b FEM: Constraint view sizing and scaling of indicators for force, pressure and fixed constraints and limit on steps. 2016-02-01 10:52:37 +02:00
wmayer
173f19eff4 + move handwritten Python classes to PyCXX 2016-01-27 18:07:48 +01:00
wmayer
bf10bf33f6 + simplify porting of Fem module to Python3 2016-01-21 13:42:08 +01:00
Bernd Hahnebach
edac98b7ee FEM: small improvements in the regard of flake8 compatiblity 2016-01-06 11:13:38 -02:00
Bernd Hahnebach
c60c70eb7b FEM: delete no longer needed EditorMode Setting
the properties are set to read only in the C++ constructor allready.
See commit 1a8c643d50
2016-01-06 11:13:38 -02:00
Bernd Hahnebach
0ba0f7a55d FEM: set solver type property to read only the hard way 2016-01-06 11:13:38 -02:00
Bernd Hahnebach
feb8c0685e FEM: make result stats read only in property editor 2016-01-06 11:13:38 -02:00
wmayer
53024a6140 + do not include from .qrc generated .cpp file from other .cpp file but add it to build system 2016-01-05 17:35:58 +01:00
Mateusz Skowroński
cd2db00f22 QString::fromAscii() is obsolete in Qt5. Replace it with fromLatin1().
This change is Qt4/Qt5 neutral.
2016-01-05 16:07:25 +01:00
Yorik van Havre
1747fb643f Updated ts files prior to translation cycle 2016-01-03 19:45:29 -02:00
wmayer
50d7793442 + introduce proper enum for property status to replace plain integers 2016-01-01 15:36:24 +01:00
wmayer
4f2291f420 + implement property editor item for FEM mesh 2015-12-23 15:44:11 +01:00
wmayer
1a8c643d50 + make properties of FEM result object read-only for property editor 2015-12-13 19:19:38 +01:00
Bernd Hahnebach
0f7a13a8a8 FEM: fix loading frequency in solver control command 2015-12-11 13:32:23 +01:00
wmayer
118d2eb531 + fix typo in FEM 2015-12-09 13:19:13 +01:00
Bernd Hahnebach
9e114a8b59 FEM: make cccFrdReader flake8 compatible 2015-12-03 18:50:06 -02:00
fandaL
cf22522290 FEM: frd mesh import rearrange repeating if 2015-12-03 18:50:06 -02:00
fandaL
98cd075a84 FEM: frd import mesh - added HEX20, PENTA6, PENTA15 2015-12-03 18:50:06 -02:00
wmayer
2b2358e70b + fix warnings with Win32 build 2015-12-01 00:51:57 +01:00
Bernd Hahnebach
c78f57a78a FEM: fix node order of seg3 in ViewProwiderFemMesh 2015-11-30 11:21:51 -02:00
Bernd Hahnebach
d8af8693b4 FEM: fix node order of seg3 (B32) in writeAbaqus 2015-11-30 11:21:51 -02:00
Bernd Hahnebach
b2080f945a FEM: fix not closing taskd of _CommandSolverJobControl 2015-11-28 20:04:22 -02:00
Bernd Hahnebach
ea2a0d12c2 FEM: do not allow to add multiple soler with gui 2015-11-28 20:04:22 -02:00
Bernd Hahnebach
ce3284624f FEM: make selection of quick analysis consistent with solverJobControl 2015-11-28 20:04:22 -02:00
Bernd Hahnebach
f3a1ef31db FEM: raise exception if multiple solver or mesh are in an analysis, they are not yet supported 2015-11-28 20:04:22 -02:00
Bernd Hahnebach
592e26fc41 FEM: replace Calculix with CalculiX in strings 2015-11-28 20:04:22 -02:00
Bernd Hahnebach
a25c4ac7da FEM: delete FemExample since there is no example inside 2015-11-28 20:04:22 -02:00
Bernd Hahnebach
fb7153d5fe FEM: delete not used import FemGui 2015-11-28 20:04:22 -02:00
Bernd Hahnebach
9d2d92336e FEM: rename modul MechanicalAnalysis to FemAnalysis 2015-11-28 20:04:22 -02:00
Bernd Hahnebach
03d1d32e38 FEM: rename command MechanicalJobControl to SolverJobControl 2015-11-28 20:04:22 -02:00
Bernd Hahnebach
882db04b3c FEM: activate CommandMechanicalJobControl with_Solver selected 2015-11-28 20:04:22 -02:00
Bernd Hahnebach
181262b39d FEM: rename TaskPanelJobControl to TaskPanelFemSolverCalculix 2015-11-28 20:04:22 -02:00
Bernd Hahnebach
39c3662da8 FEM: include calculix solver objekt if new analysis is created 2015-11-28 20:04:22 -02:00
Bernd Hahnebach
42913ca0cf FEM: fix test frame work 2015-11-28 20:04:22 -02:00
Bernd Hahnebach
6865e35fd9 FEM: add CalculiX solver object 2015-11-28 20:04:22 -02:00
Author qingfengxia
80cf664ec8 FEM: new solver object implementation of the object 2015-11-28 20:04:22 -02:00
Author qingfengxia
3918d9fbe5 FEM: new solver object icon 2015-11-28 20:04:22 -02:00
Bernd Hahnebach
006bf802f4 FEM: fix some line endings 2015-11-28 20:04:22 -02:00
wmayer
a029d90a98 FEM: Rename Display Modes 2015-11-23 18:17:10 +01:00
Bernd Hahnebach
8ebf64ac3f FEM: add nodes of quad8, hexa20, penta6, penta15, pyra5, pyra13 to ViewProvider nodes are displayed 2015-11-19 19:01:23 +01:00
Bernd Hahnebach
758f3ec77e FEM: FemMesh VP throw exception instead of assert(0) 2015-11-19 19:01:07 +01:00
Bernd Hahnebach
2f5706262d FEM: add SMESH supported volumes to Python API of FemMesh 2015-11-19 19:00:52 +01:00
Przemo Firszt
fe522bc66b FEM, Tests: Fix line end problem in compare_inp_files
Add new function to force unix line ends and use it in compare_inp_files
and compare_stats.

Signed-off-by: Przemo Firszt <przemo@firszt.eu>
2015-11-19 10:26:24 +01:00
Przemo Firszt
c9cfc369d6 FEM: Use exisitng mesh property as link to mesh in result objects
Signed-off-by: Przemo Firszt <przemo@firszt.eu>
2015-11-18 11:22:02 +00:00
Przemo Firszt
3788670038 FEM: Tidy up long lines and spacing
Signed-off-by: Przemo Firszt <przemo@firszt.eu>
2015-11-18 11:21:27 +00:00
Bernd Hahnebach
d37ac54c8e FEM: fix mixed line endings in VP FemMesh 2015-11-16 19:19:01 -02:00
Bernd Hahnebach
49b002beaf FEM: Mesh VP fix FreeCAD crash if not supported face is added to VP 2015-11-16 19:19:01 -02:00
Bernd Hahnebach
eec2b56629 FEM: add some documentation to FemTools 2015-11-16 19:19:01 -02:00
Bernd Hahnebach
01d3b3ecad FEM: substitute some camel style variable names in frdReader 2015-11-16 19:19:01 -02:00
Bernd Hahnebach
d14e79eafa FEM: use proper command to create a Mechanical Anaylsis with all properties 2015-11-16 19:19:01 -02:00
fandaL
36ffb450f1 FEM: frd import mesh 2015-11-16 19:18:11 -02:00
Przemo Firszt
dee8809454 FEM, Tests: Force unix line ends for comparing calculation stats
Signed-off-by: Przemo Firszt <przemo@firszt.eu>
2015-11-16 19:15:44 -02:00
Przemo Firszt
629a89218d FEM: Fix Von Mises calculation formula and update FEM test results
Reported-by: fandaL
Fixed-by: fandaL
Signed-off-by: Przemo Firszt <przemo@firszt.eu>
2015-11-14 14:53:37 +01:00
Przemo Firszt
b0fbd60835 FEM: Use format to avoid error is the message is not pure string
Traceback (most recent call last):
  File "/home/przemo/software/FreeCAD/build/Mod/Fem/TestFem.py", line
229, in test_new_analysis
    ret = self.compare_stats(fea, static_expected_values)
  File "/home/przemo/software/FreeCAD/build/Mod/Fem/TestFem.py", line
147, in compare_stats
    fcc_print(sf_content)
  File "/home/przemo/software/FreeCAD/build/Mod/Fem/TestFem.py", line
55, in fcc_print
    FreeCAD.Console.PrintMessage(message + '\n')
TypeError: can only concatenate list (not "str") to list

Signed-off-by: Przemo Firszt <przemo@firszt.eu>
2015-11-14 14:53:36 +01:00
wmayer
48027e1586 + fix memory leaks 2015-11-13 16:06:43 +01:00
wmayer
45af17e39c + Code cleanup:
+ do not include header of itself
+ do not include unneeded header files
+ removed unneeded forward declarations
+ do not translate C string to get a QString
+ break too long lines
+ replace tabs with spaces
+ use virtual keyword on destructors
2015-11-13 15:47:03 +01:00
Bernd Hahnebach
74270c23d2 FEM: allow to make a mesh from shape without an analysis 2015-11-12 13:39:51 +01:00
Bernd Hahnebach
78ac00180f FEM: fromShape not needed modul loading deleted 2015-11-12 13:37:11 +01:00
Przemo Firszt
391cdf816d FEM: Update except catch to python3
Signed-off-by: Przemo Firszt <przemo@firszt.eu>
2015-11-11 22:41:12 +00:00
Przemo Firszt
1e8e0877f3 FEM: Windows workaround to avoid blinking terminal window
Reported-by: wmayer
Tested-by: wamyer, sgrogan
Signed-off-by: Przemo Firszt <przemo@firszt.eu>
2015-11-11 22:21:21 +00:00
Przemo Firszt
f74e016f30 FEM: Fix unexpected error with ccx_* unset if Popoen fails
Signed-off-by: Przemo Firszt <przemo@firszt.eu>
2015-11-11 22:20:34 +00:00
Przemo Firszt
e90ed4bf65 FEM: Cheange margins in TaskPanelMechanicalAnalysis for Analysis Type
Reported-by: wmayer
Signed-off-by: Przemo Firszt <przemo@firszt.eu>
2015-11-11 21:47:36 +00:00
wmayer
4af7d95a6d + support of linear b-spline/bezier curves and planar b-spline/bezier surfaces to get direction 2015-11-11 18:27:26 +01:00
Bernd Hahnebach
e22431ea77 FEM: use ConsolePrints instead off print in beamsection and shellthickness 2015-11-11 09:14:50 +01:00
Bernd Hahnebach
c6989acd55 FEM: use new selection observer class for material reference shape selection 2015-11-11 09:14:50 +01:00
Bernd Hahnebach
ba394818a3 FEM: separate selection observer class from _TaskPanel shellthickness and beamsection 2015-11-11 09:14:49 +01:00
wmayer
dff58e5df3 + fix documentation of task dialog 2015-11-09 19:22:19 +01:00
Bernd Hahnebach
9d856fbd7a FEM: use addItem to add list items in shellthickness, beamsection and multimat ref shape list 2015-11-08 13:44:37 +01:00
Bernd Hahnebach
5e234486b2 FEM: rename uis of python task panels to TaskPanelName 2015-11-08 09:32:01 +01:00
Bernd Hahnebach
5e001f3e15 FEM: delet unused import FreeCAD 2015-11-07 20:04:10 +01:00
Bernd Hahnebach
062895c626 FEM: sort modules in CMakefiles 2015-11-07 18:36:28 +01:00
Bernd Hahnebach
c542a88e5e FEM: move CalculiX test files to test_files/ccx directory 2015-11-07 17:23:31 +01:00
Bernd Hahnebach
737fa891f8 FEM: make Init.py flake8 compatiple 2015-11-07 16:41:31 +01:00
Bernd Hahnebach
b1e67a7e0a FEM: use unix linefeeds in Init.py 2015-11-07 16:41:22 +01:00
Bernd Hahnebach
d10d18bd4d FEM: rename ObjectsTaskPanel into TaskPanelObjects 2015-11-07 16:41:11 +01:00
Bernd Hahnebach
7847c6fcac FEM: print console message if a task dialog is open already for beamsection and shellthickness 2015-11-07 13:24:45 -02:00
Bernd Hahnebach
ea6e65f9f8 FEM: add author to material files 2015-11-07 13:24:45 -02:00
Bernd Hahnebach
81cf730791 FEM: unused imports deleted 2015-11-07 13:24:45 -02:00
Bernd Hahnebach
05a20ecc77 FEM: split MechanicalMaterial into separate modules 2015-11-07 13:24:45 -02:00
Bernd Hahnebach
49c12c5e3d FEM: use ConsolePrints instead of prints for MechanicalMaterial 2015-11-07 13:24:45 -02:00
Bernd Hahnebach
746bad9f18 FEM: shape typte test in selection of multiple material reference shapes 2015-11-07 13:24:45 -02:00
Bernd Hahnebach
3ef7d3ce3a FEM: put prints in brackets in MechanicalMaterial 2015-11-07 13:24:45 -02:00
Bernd Hahnebach
cb690eca62 FEM: multiple materials, support for solids 2015-11-07 13:24:45 -02:00
Bernd Hahnebach
0c55f927f5 FEM: add getNodesBySolid()
Conflicts:
	src/Mod/Fem/App/FemMesh.cpp
2015-11-07 13:24:45 -02:00
Bernd Hahnebach
52ad0bcc9d FEM: selection of Faces and Edges as References for multiple MechanicalMaterial 2015-11-07 13:24:45 -02:00
Bernd Hahnebach
cb0a48c849 FEM: add Reference selection to Mechanicalmaterial ui 2015-11-07 13:24:45 -02:00
Bernd Hahnebach
8cb6ed7d6a FEM: multiple materials for shell and beam meshes 2015-11-07 13:24:45 -02:00
Bernd Hahnebach
f02ba31d02 FEM: add spaces to FemTools license 2015-11-07 13:24:45 -02:00
Bernd Hahnebach
39d6d68366 FEM: use super class FemCommands for ShellThickness and BeamSection Commands 2015-11-05 17:31:03 +01:00
Bernd Hahnebach
59bafd51c0 FEM: split FemBeamSection into separate modules 2015-11-05 17:31:02 +01:00
Bernd Hahnebach
5d9954d3da FEM: split FemShellThickness into separate modules 2015-11-05 17:31:02 +01:00
Bernd Hahnebach
c3328d6b4e FEM: use unix linefeeds in InitGui.py 2015-11-05 17:31:02 +01:00
Przemo Firszt
64950056b8 FEM: Fix typos in property definitions
Signed-off-by: Przemo Firszt <przemo@firszt.eu>
2015-11-03 20:04:23 +00:00
Przemo Firszt
d025f1e109 FEM: Replace invalid ElementNumbers with NodeNumbers
Signed-off-by: Przemo Firszt <przemo@firszt.eu>
2015-11-03 20:04:23 +00:00
Przemo Firszt
a85c68aa65 FEM: Add EigenmodeFrequency property to result object
Signed-off-by: Przemo Firszt <przemo@firszt.eu>
2015-11-03 20:04:23 +00:00
Przemo Firszt
9531c0b088 FEM: Add Eigenmode property to result object
Signed-off-by: Przemo Firszt <przemo@firszt.eu>
2015-11-03 20:04:23 +00:00
Przemo Firszt
30e2ec315b FEM: Add simple dat file reader
It's a simple CalculiX dat file reader used to extract eigenmode
frequencies after freqyency analysis.

Signed-off-by: Przemo Firszt <przemo@firszt.eu>
2015-11-03 20:04:23 +00:00
Przemo Firszt
3e20529210 FEM: Remove redundant base_name variable
Signed-off-by: Przemo Firszt <przemo@firszt.eu>
2015-11-03 20:04:23 +00:00
Przemo Firszt
d2469cac6e FEM: Replace GetString with GetFloat/GetIntiger for eigenmode parameters
Reported-By: bernd
Signed-off-by: Przemo Firszt <przemo@firszt.eu>
2015-11-03 10:50:15 +01:00
Przemo Firszt
fc8e2eed64 FEM, Tests: Fix FEM tests
Signed-off-by: Przemo Firszt <przemo@firszt.eu>
2015-10-26 18:35:43 +00:00
Przemo Firszt
50ab6a3111 FEM: Move writing inp section headers to front of function
Signed-off-by: Przemo Firszt <przemo@firszt.eu>
2015-10-26 17:17:23 +00:00
Bernd Hahnebach
cc3fee5f9c FEM: print in brackets 2015-10-26 13:13:57 +01:00
Bernd Hahnebach
02be8e65ab FEM: fix in ccxfilewriter for ccxelset if multiple materials and beam mesh 2015-10-26 13:13:56 +01:00
Bernd Hahnebach
13e7841b41 FEM: edge load ccxwriter fix if duplicate edges in refshapes 2015-10-26 13:13:55 +01:00
Bernd Hahnebach
e5adec94b7 FEM: ccxwriter, much more exact results for cload on edges 2015-10-26 13:13:55 +01:00
Bernd Hahnebach
9c0bcb7a7c FEM: cload in ccxwriter, some changes in preparation for adding better edge load calculation 2015-10-26 13:13:54 +01:00
Bernd Hahnebach
7b1a4f1297 FEM: add defs to make the code better reuseable for cload on edges 2015-10-26 13:13:53 +01:00
Bernd Hahnebach
c74a8392de FEM: small changes in shellth and beamsec task panel 2015-10-26 13:13:52 +01:00
wmayer
e3221376e1 + use right namespace for template instantiation to fix linker errors on Windows 2015-10-25 23:06:21 +01:00
wmayer
15a6a463b3 + need dummy class for FeaturePython class to work 2015-10-25 22:42:50 +01:00
Przemo Firszt
d58ccf7fd3 FEM: Use brackets for print
Signed-off-by: Przemo Firszt <przemo@firszt.eu>
2015-10-25 12:46:30 +01:00
Przemo Firszt
e3c081be54 FEM: Use eigenmode number to decide if we're dealing with frequency analysis
Signed-off-by: Przemo Firszt <przemo@firszt.eu>
2015-10-25 12:46:29 +01:00
Przemo Firszt
098e46f686 FEM: Fix invalid check for frequency analysis
eigenmode = 0 for static and it's greater than 0 for frequency analysis.

Signed-off-by: Przemo Firszt <przemo@firszt.eu>
2015-10-25 12:46:29 +01:00
Przemo Firszt
304e71e371 FEM: Remove imported but not used FreeCADGui
Signed-off-by: Przemo Firszt <przemo@firszt.eu>
2015-10-25 12:46:28 +01:00
Przemo Firszt
cf979fa040 FEM: Do not activate FEM wb from ccxFrdReader
Signed-off-by: Przemo Firszt <przemo@firszt.eu>
2015-10-25 12:46:27 +01:00
Przemo Firszt
55bc72b7b4 FEM: Make sure result_object exist before accesing it
Signed-off-by: Przemo Firszt <przemo@firszt.eu>
2015-10-25 12:46:26 +01:00
Przemo Firszt
bba3543efe FEM: Initialise result_object to None to fix crash on empty results
Signed-off-by: Przemo Firszt <przemo@firszt.eu>
2015-10-25 12:46:25 +01:00
Przemo Firszt
80b82dd955 FEM: Fix invalid check for empty resutls
Even when readResult was not producing any resuts the check was passing
fine as len({'Nodes': {}, 'Tet10Elem': {}, 'Results': []}) is 3

Signed-off-by: Przemo Firszt <przemo@firszt.eu>
2015-10-25 12:46:25 +01:00
Przemo Firszt
3dcc189e8b FEM: Add new properties to FEM preferences
The new properties are NumberOfEigenmode, EigenmodeHighLimit and
EigenmodeLowLimit. All 3 are linked with analysis object properties.

Signed-off-by: Przemo Firszt <przemo@firszt.eu>
2015-10-25 12:46:24 +01:00
Przemo Firszt
6ab7a434ac FEM, Tests: Make sure eigenmode parameters are always the same.
The parameters were taken from FEM prefs, so the test could fail.

Signed-off-by: Przemo Firszt <przemo@firszt.eu>
2015-10-25 12:46:23 +01:00
Przemo Firszt
068ba4793d FEM: Add EigenmodeHighLimit property to analysis object
Signed-off-by: Przemo Firszt <przemo@firszt.eu>
2015-10-25 12:46:22 +01:00