Commit Graph

6081 Commits

Author SHA1 Message Date
Przemo Firszt
d7ae64fb45 FEM: Use local variable to avoid long strings in write_material_element_sets
print material_object['Object'].Name, ':  ', material_object['Object'].Material['Name']

becomes this:

print mat_obj_name, ':  ', mat_name

Signed-off-by: Przemo Firszt <przemo@firszt.eu>
2015-05-01 17:28:57 +02:00
Przemo Firszt
a99a897ae8 FEM: Rename variables f->elem, inpfile->f
The reason behind that change is that auxiliary variables,
like a file handle, should not be too visible. inpfile was
a good description, but we're handling only one file and there
is no need to use a descriptive variable name for it in every function.
It's enough that is used in write_calculix_input_file

Signed-off-by: Przemo Firszt <przemo@firszt.eu>
2015-05-01 17:28:39 +02:00
wmayer
dd2b39ddd6 + fixes #0002075: Analysis of FreeCAD by PVS-Studio static analyzer 2015-05-01 16:56:31 +02:00
wmayer
d8f63bcfd1 + fix broken brush selection 2015-05-01 02:08:06 +02:00
wmayer
6b6070281e + whitespacee/typo fixes 2015-04-30 23:16:57 +02:00
wmayer
11239b034c + always keep digits at end when using copyObject, remove deprecated third parameter 2015-04-29 16:33:20 +02:00
wmayer
1811795e41 + fix build failure for zipios++ from Fedora 2015-04-29 10:31:10 +02:00
Przemo Firszt
f5874a74e4 FEM: Split inp write_calculix_input_file into functions
Signed-off-by: Przemo Firszt <przemo@firszt.eu>
2015-04-27 21:33:19 +02:00
Przemo Firszt
30a69a5797 FEM: Make sure Young's modulus is written in MPa
Signed-off-by: Przemo Firszt <przemo@firszt.eu>
2015-04-27 21:33:18 +02:00
Przemo Firszt
ab26d7fd50 FEM: Replace invalid General_description with Description
Signed-off-by: Przemo Firszt <przemo@firszt.eu>
2015-04-27 21:33:17 +02:00
Przemo Firszt
7036d46bf2 FEM: ccxInpWriter shouldn't do any validation or guessing
Also, there is no need to print material parameters to the console.
User can see that info in dialog box, in .inp file and it's also printed
to console after material has been set.

Signed-off-by: Przemo Firszt <przemo@firszt.eu>
2015-04-27 21:33:17 +02:00
Przemo Firszt
5e48d624e4 FEM: Make sure Edit/Run buttons stay disabled if ccxInpWriter didn't generate .inp file
Signed-off-by: Przemo Firszt <przemo@firszt.eu>
2015-04-27 21:33:16 +02:00
Przemo Firszt
ed8267643b FEM: Cleaning ccxInpWriter
Signed-off-by: Przemo Firszt <przemo@firszt.eu>
2015-04-27 21:33:15 +02:00
Przemo Firszt
b61bb54b78 FEM: General_name is invalid since f96f319986
Signed-off-by: Przemo Firszt <przemo@firszt.eu>
2015-04-27 21:33:14 +02:00
Przemo Firszt
c9a54019aa FEM: Reduce femConsole noise
Showing ccx output during short colculations doesn't make any sense.
During long calculations user is flooded with messages, that ccx
produced empty output.

Signed-off-by: Przemo Firszt <przemo@firszt.eu>
2015-04-27 21:33:14 +02:00
Przemo Firszt
9f7728573d FEM: Remove multiple empty lines produced by ccx before sending to FEM console
Signed-off-by: Przemo Firszt <przemo@firszt.eu>
2015-04-27 21:33:13 +02:00
Przemo Firszt
bdfe2bafda FEM: Always scroll FEM console to the bottom after adding new message
Signed-off-by: Przemo Firszt <przemo@firszt.eu>
2015-04-27 21:33:12 +02:00
Przemo Firszt
cd4e71eadd FEM: Typo/white space fix
Signed-off-by: Przemo Firszt <przemo@firszt.eu>
2015-04-27 21:33:12 +02:00
Przemo Firszt
294939f471 FEM: Rename CalculixLib to ccxFrdReader
Signed-off-by: Przemo Firszt <przemo@firszt.eu>
2015-04-27 21:33:11 +02:00
Przemo Firszt
d6b2ae8096 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
42bc0b57f8 FEM: Remove never used saveMat function
That function won't be used as there is a plan to merge material
handling with Arch wb and Arch wb already has material editor.

Signed-off-by: Przemo Firszt <przemo@firszt.eu>
2015-04-27 21:33:09 +02:00
Przemo Firszt
af4ad9059a 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
c6d1052f1f FEM: Force showing Youngs modulus in MPa
That commit fixes inconsistent behaviour of Young's modulus input field
units in FEM material dialog window.

Reported-by: sgrogan
Signed-off-by: Przemo Firszt <przemo@firszt.eu>
2015-04-27 21:33:08 +02:00
Przemo Firszt
efcfd10a56 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
Przemo Firszt
79caef00cb FEM: Fix typo
Reported-by: dubstar-04
Signed-off-by: Przemo Firszt <przemo@firszt.eu>
2015-04-27 21:33:06 +02:00
Yorik van Havre
8d46ebc405 Removed obsoleted README files - fixes #1974 2015-04-27 11:15:36 -03:00
wmayer
56ef3b56ec Merge branch 'master' of ssh://git.code.sf.net/p/free-cad/code 2015-04-26 22:17:58 +02:00
wmayer
badfa3ad17 + unit test for PropertyEnumeration 2015-04-26 22:17:32 +02:00
Yorik van Havre
d449cab279 Merge branch 'master' of ssh://git.code.sf.net/p/free-cad/code 2015-04-26 17:11:27 -03:00
Yorik van Havre
69b213b7e5 Arch: Fixed missing cmake entries in last commit 2015-04-26 17:10:52 -03:00
wmayer
c84ce15054 + preserve current index when setting enumeration 2015-04-26 22:10:40 +02:00
Yorik van Havre
02f938ebdf First groundwork on Arch Schedule tool 2015-04-26 13:57:36 -03:00
wmayer
baf0dc0524 + fix broken unit test 2015-04-25 21:58:41 +02:00
Ian Rees
74c9a3dc4e Now with more Property properties! 2015-04-25 23:43:15 +12:00
wmayer
070198ecf2 + fix gcc build failure 2015-04-25 10:21:32 +02:00
Ian Rees
f1b75dbe29 Refactored PropertyEnumeration 2015-04-24 23:33:33 +02:00
wmayer
67c4dcdf70 Merge branch 'master' of ssh://git.code.sf.net/p/free-cad/code 2015-04-24 21:46:19 +02:00
wmayer
2a3edfcd84 + FEM: Add icon to command 2015-04-24 21:45:34 +02:00
Yorik van Havre
c692d6e136 Arch: IFC importer can now recreate extrusions
By enabling the setting in IFC preferences, the IFC
importer can now detect if an input shape is a normal
extrusion, and create the object as a Part::Extrusion.
2015-04-24 16:30:38 -03:00
Yorik van Havre
9967bbe297 Drawing: Symbols can now contain editable texts 2015-04-23 23:13:58 -03:00
wmayer
4db69850fb + FEM: reimplement function to create FEM mesh from shape 2015-04-23 23:36:05 +02:00
wmayer
ec96217335 + FEM: cleanup of unused dialog 2015-04-23 23:11:47 +02:00
Przemo Firszt
7ec585ec18 FEM: Change Start Calculations shortcut to S, C
Suggested by wmayer

Signed-off-by: Przemo Firszt <przemo@firszt.eu>
2015-04-23 17:05:44 +02:00
Przemo Firszt
a4429c9ea8 FEM: Change Show Results shortcut to S, R
Suggested by wmayer

Signed-off-by: Przemo Firszt <przemo@firszt.eu>
2015-04-23 17:05:27 +02:00
Przemo Firszt
6ba642a3cc FEM: Change New Analysis shortcut to N, A
Suggested by wmayer

Signed-off-by: Przemo Firszt <przemo@firszt.eu>
2015-04-23 17:05:06 +02:00
Przemo Firszt
e6d7b7e586 FEM: Change Mechanical Material shortcut to M, M
Suggested by wmayer

Signed-off-by: Przemo Firszt <przemo@firszt.eu>
2015-04-23 17:04:50 +02:00
Przemo Firszt
249c2641e0 FEM: Change order of FEM toolbar items
Suggested by wmayer

Signed-off-by: Przemo Firszt <przemo@firszt.eu>
2015-04-23 17:04:31 +02:00
Przemo Firszt
f3b33f52e6 FEM: Reset min/max/avg to the initial state after user selected None
Signed-off-by: Przemo Firszt <przemo@firszt.eu>
2015-04-23 17:04:09 +02:00
Przemo Firszt
31a263ed89 FEM: Show displacement/stress nicely formatted and with proper units
Signed-off-by: Przemo Firszt <przemo@firszt.eu>
2015-04-23 17:03:44 +02:00
Przemo Firszt
bf1ffb612f FEM: Rename min/max to avoid unintentional built-in function overload
min/max are python build-in functions, so we shouldn't use them as variable names

Signed-off-by: Przemo Firszt <przemo@firszt.eu>
2015-04-23 17:03:26 +02:00