Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Rafael Peretti Pezzi
OpenFlatus
Commits
4f937fb6
Commit
4f937fb6
authored
Jan 09, 2012
by
Matheus Müller
Browse files
Melhorias no codigo, mais features e pasta Pezzi
parent
34839293
Changes
13
Hide whitespace changes
Inline
Side-by-side
Al.dat
View file @
4f937fb6
...
...
@@ -13,5 +13,7 @@
0.0 0.0
0.0 0.0
0.0 0.0
1.03722084368 0.214285714286
0.0 0.0
0.0 0.0
1.03722084368 0.219387755102
5.0 0
Al.prof
View file @
4f937fb6
0.21
4285714286
0.21
4285714286
0.21
4285714286
0.21
4285714286
0.21
4285714286
0.21
4285714286
0.21
4285714286
0.21
4285714286
0.21
4285714286
0.21
4285714286
0.21
4285714286
0.21
4285714286
0.21
4285714286
0.21
4285714286
0.21
4285714286
0.21
4285714286
0.21
4285714286
0.21
4285714286
0.21
4285714286
0.21
4285714286
0.21
4285714286
0.21
4285714286
0.21
4285714286
0.21
4285714286
0.21
4285714286
0.21
4285714286
0.21
4285714286
0.21
4285714286
0.21
4285714286
0.21
4285714286
0.21
4285714286
0.21
4285714286
0.21
4285714286
0.21
4285714286
0.21
4285714286
0.21
4285714286
0.21
4285714286
0.21
4285714286
0.21
4285714286
0.21
4285714286
0.21
4285714286
0.21
4285714286
0.21
4285714286
0.21
4285714286
0.21
4285714286
0.21
4285714286
0.21
4285714286
0.21
4285714286
0.21
4285714286
0.21
4285714286
0.21
4285714286
0.21
4285714286
0.21
4285714286
0.21
4285714286
0.21
4285714286
0.21
4285714286
0.21
4285714286
0.21
4285714286
0.21
4285714286
0.21
4285714286
0.21
4285714286
0.21
4285714286
0.21
4285714286
0.21
4285714286
0.21
4285714286
0.21
4285714286
0.21
4285714286
0.21
4285714286
0.21
4285714286
0.21
4285714286
0.21
4285714286
0.21
4285714286
0.21
4285714286
0.21
4285714286
0.21
4285714286
0.21
4285714286
0.21
4285714286
0.21
4285714286
0.21
4285714286
0.21
4285714286
0.21
4285714286
0.21
4285714286
0.21
4285714286
0.21
4285714286
0.21
4285714286
0.21
4285714286
0.21
4285714286
0.21
4285714286
0.21
4285714286
0.21
4285714286
0.21
4285714286
0.21
4285714286
0.21
4285714286
0.21
4285714286
0.21
4285714286
0.21
4285714286
0.21
4285714286
0.21
4285714286
0.21
4285714286
0.21
4285714286
0.21
4285714286
0.21
4285714286
0.21
4285714286
0.21
9387755102
0.21
9387755102
0.21
9387755102
0.21
9387755102
0.21
9387755102
0.21
9387755102
0.21
9387755102
0.21
9387755102
0.21
9387755102
0.21
9387755102
0.21
9387755102
0.21
9387755102
0.21
9387755102
0.21
9387755102
0.21
9387755102
0.21
9387755102
0.21
9387755102
0.21
9387755102
0.21
9387755102
0.21
9387755102
0.21
9387755102
0.21
9387755102
0.21
9387755102
0.21
9387755102
0.21
9387755102
0.21
9387755102
0.21
9387755102
0.21
9387755102
0.21
9387755102
0.21
9387755102
0.21
9387755102
0.21
9387755102
0.21
9387755102
0.21
9387755102
0.21
9387755102
0.21
9387755102
0.21
9387755102
0.21
9387755102
0.21
9387755102
0.21
9387755102
0.21
9387755102
0.21
9387755102
0.21
9387755102
0.21
9387755102
0.21
9387755102
0.21
9387755102
0.21
9387755102
0.21
9387755102
0.21
9387755102
0.21
9387755102
0.21
9387755102
0.21
9387755102
0.21
9387755102
0.21
9387755102
0.21
9387755102
0.21
9387755102
0.21
9387755102
0.21
9387755102
0.21
9387755102
0.21
9387755102
0.21
9387755102
0.21
9387755102
0.21
9387755102
0.21
9387755102
0.21
9387755102
0.21
9387755102
0.21
9387755102
0.21
9387755102
0.21
9387755102
0.21
9387755102
0.21
9387755102
0.21
9387755102
0.21
9387755102
0.21
9387755102
0.21
9387755102
0.21
9387755102
0.21
9387755102
0.21
9387755102
0.21
9387755102
0.21
9387755102
0.21
9387755102
0.21
9387755102
0.21
9387755102
0.21
9387755102
0.21
9387755102
0.21
9387755102
0.21
9387755102
0.21
9387755102
0.21
9387755102
0.21
9387755102
0.21
9387755102
0.21
9387755102
0.21
9387755102
0.21
9387755102
0.21
9387755102
0.21
9387755102
0.21
9387755102
0.21
9387755102
0.21
9387755102
0.21
9387755102
0.21
9387755102
0.21
9387755102
0.21
9387755102
0.0
0.0
0.0
...
...
Ewindow.py
View file @
4f937fb6
...
...
@@ -71,6 +71,7 @@ def ewin_build(window, EntryDstep):
if
Econtrol
==
i
:
Econtrol
=
Econtrol
-
1
Ebuttons
[
Econtrol
][
'relief'
]
=
'sunken'
elem_select
(
0
,
Ebuttons
)
##############################################################################
# Element Frames
...
...
@@ -173,13 +174,13 @@ def ewin_build(window, EntryDstep):
elem_select
(
0
,
Ebuttons
)
def
SAVESAMPLE
():
elist
=
open
(
"elements.cfg"
,
'w
+
'
)
elist
=
tkFileDialog
.
asksaveasfile
(
mode
=
'w'
)
for
n
in
range
(
len
(
Ebuttons
)):
elist
.
write
(
Edict
[
n
][
'symbol'
]
+
' '
)
elist
.
write
(
Edict
[
n
][
'name'
]
+
' '
)
elist
.
write
(
str
(
Edict
[
n
][
'mass'
])
+
' '
)
elist
.
write
(
str
(
Edict
[
n
][
'Z'
])
+
' '
)
elist
.
write
(
str
(
Edict
[
n
][
'LineShape'
])
+
'
\n
'
)
elist
.
write
(
str
(
Edict
[
n
][
'LineShape'
])
+
'
'
)
elist
.
write
(
str
(
Edict
[
n
][
'profundidademax'
])
+
'
\n
'
)
elist
.
close
()
...
...
@@ -188,13 +189,10 @@ def ewin_build(window, EntryDstep):
but
=
tk
.
Button
(
EPframel2
,
command
=
create
,
text
=
'Add element'
,
bd
=
1
,
height
=
1
,
width
=
15
)
but
.
pack
()
butrmv
=
tk
.
Button
(
EPframel2
,
command
=
remove
,
text
=
'Remove element'
,
bd
=
1
,
height
=
1
,
width
=
15
)
butrmv
.
pack
()
butPTE
=
tk
.
Button
(
EPframel2
,
text
=
'Show PTE'
,
bd
=
1
,
width
=
15
,
command
=
lambda
i
=
i
:
elem_callback
(
Econtrol
,
Edict
,
Ebuttons
)
)
butPTE
.
pack
()
BUpdate
=
tk
.
Button
(
EPframel2
,
text
=
'Update properties'
,
command
=
lambda
i
=
int
(
Econtrol
)
:
update
(
Econtrol
),
width
=
15
)
BUpdate
.
pack
()
...
...
@@ -203,7 +201,6 @@ def ewin_build(window, EntryDstep):
BLoad
=
tk
.
Button
(
EPframel
,
text
=
'Load Sample'
,
command
=
lambda
i
=
int
(
Econtrol
)
:
LOADSAMPLE
(),
width
=
15
)
BLoad
.
pack
()
BSave
=
tk
.
Button
(
EPframee
,
text
=
'Save Sample'
,
command
=
lambda
i
=
int
(
Econtrol
)
:
SAVESAMPLE
(),
width
=
15
)
BSave
.
pack
()
...
...
La.dat
View file @
4f937fb6
...
...
@@ -3,5 +3,7 @@
0.0 0.0
0.0 0.0
0.0 0.0
0.975806451611 0.201530612245
0.0 0.0
0.0 0.0
1.01550868486 0.206632653061
5.0 0
La.prof
View file @
4f937fb6
0.20
1
53061
2245
0.20
1
53061
2245
0.20
1
53061
2245
0.20
1
53061
2245
0.20
1
53061
2245
0.20
1
53061
2245
0.20
1
53061
2245
0.20
1
53061
2245
0.20
1
53061
2245
0.20
1
53061
2245
0.20
1
53061
2245
0.20
1
53061
2245
0.20
1
53061
2245
0.20
1
53061
2245
0.20
1
53061
2245
0.20
1
53061
2245
0.20
1
53061
2245
0.20
1
53061
2245
0.20
1
53061
2245
0.20
1
53061
2245
0.20
1
53061
2245
0.20
1
53061
2245
0.20
1
53061
2245
0.20
1
53061
2245
0.20
1
53061
2245
0.20
1
53061
2245
0.20
1
53061
2245
0.20
1
53061
2245
0.20
1
53061
2245
0.20
1
53061
2245
0.20
1
53061
2245
0.20
1
53061
2245
0.20
1
53061
2245
0.20
1
53061
2245
0.20
1
53061
2245
0.20
1
53061
2245
0.20
1
53061
2245
0.20
1
53061
2245
0.20
1
53061
2245
0.20
1
53061
2245
0.20
1
53061
2245
0.20
1
53061
2245
0.20
1
53061
2245
0.20
1
53061
2245
0.20
1
53061
2245
0.20
1
53061
2245
0.20
1
53061
2245
0.20
1
53061
2245
0.20
1
53061
2245
0.20
1
53061
2245
0.20
1
53061
2245
0.20
1
53061
2245
0.20
1
53061
2245
0.20
1
53061
2245
0.20
1
53061
2245
0.20
1
53061
2245
0.20
1
53061
2245
0.20
1
53061
2245
0.20
1
53061
2245
0.20
1
53061
2245
0.20
1
53061
2245
0.20
1
53061
2245
0.20
1
53061
2245
0.20
1
53061
2245
0.20
1
53061
2245
0.20
1
53061
2245
0.20
1
53061
2245
0.20
1
53061
2245
0.20
1
53061
2245
0.20
1
53061
2245
0.20
1
53061
2245
0.20
1
53061
2245
0.20
1
53061
2245
0.20
1
53061
2245
0.20
1
53061
2245
0.20
1
53061
2245
0.20
1
53061
2245
0.20
1
53061
2245
0.20
1
53061
2245
0.20
1
53061
2245
0.20
1
53061
2245
0.20
1
53061
2245
0.20
1
53061
2245
0.20
1
53061
2245
0.20
1
53061
2245
0.20
1
53061
2245
0.20
1
53061
2245
0.20
1
53061
2245
0.20
1
53061
2245
0.20
1
53061
2245
0.20
1
53061
2245
0.20
1
53061
2245
0.20
1
53061
2245
0.20
1
53061
2245
0.20
1
53061
2245
0.20
1
53061
2245
0.20
1
53061
2245
0.
0
0.
0
0.
0
0.
0
0.20
66326
53061
0.20
66326
53061
0.20
66326
53061
0.20
66326
53061
0.20
66326
53061
0.20
66326
53061
0.20
66326
53061
0.20
66326
53061
0.20
66326
53061
0.20
66326
53061
0.20
66326
53061
0.20
66326
53061
0.20
66326
53061
0.20
66326
53061
0.20
66326
53061
0.20
66326
53061
0.20
66326
53061
0.20
66326
53061
0.20
66326
53061
0.20
66326
53061
0.20
66326
53061
0.20
66326
53061
0.20
66326
53061
0.20
66326
53061
0.20
66326
53061
0.20
66326
53061
0.20
66326
53061
0.20
66326
53061
0.20
66326
53061
0.20
66326
53061
0.20
66326
53061
0.20
66326
53061
0.20
66326
53061
0.20
66326
53061
0.20
66326
53061
0.20
66326
53061
0.20
66326
53061
0.20
66326
53061
0.20
66326
53061
0.20
66326
53061
0.20
66326
53061
0.20
66326
53061
0.20
66326
53061
0.20
66326
53061
0.20
66326
53061
0.20
66326
53061
0.20
66326
53061
0.20
66326
53061
0.20
66326
53061
0.20
66326
53061
0.20
66326
53061
0.20
66326
53061
0.20
66326
53061
0.20
66326
53061
0.20
66326
53061
0.20
66326
53061
0.20
66326
53061
0.20
66326
53061
0.20
66326
53061
0.20
66326
53061
0.20
66326
53061
0.20
66326
53061
0.20
66326
53061
0.20
66326
53061
0.20
66326
53061
0.20
66326
53061
0.20
66326
53061
0.20
66326
53061
0.20
66326
53061
0.20
66326
53061
0.20
66326
53061
0.20
66326
53061
0.20
66326
53061
0.20
66326
53061
0.20
66326
53061
0.20
66326
53061
0.20
66326
53061
0.20
66326
53061
0.20
66326
53061
0.20
66326
53061
0.20
66326
53061
0.20
66326
53061
0.20
66326
53061
0.20
66326
53061
0.20
66326
53061
0.20
66326
53061
0.20
66326
53061
0.20
66326
53061
0.20
66326
53061
0.20
66326
53061
0.20
66326
53061
0.20
66326
53061
0.20
66326
53061
0.20
66326
53061
0.20
66326
53061
0.20
66326
53061
0.20
66326
53061
0.
206632653061
0.
206632653061
0.
206632653061
0.
206632653061
0.0
0.0
0.0
...
...
O.dat
View file @
4f937fb6
0 0
0.0 0.0
17.9702233251 0.599489795918
0.0 0.0
19.7171215881 0.599489795918
20.0 0
O.prof
View file @
4f937fb6
...
...
@@ -1795,1180 +1795,180 @@
0.599489795918
0.599489795918
0.599489795918
0.00510204081633
0.00510204081633
0.00510204081633
0.00510204081633
0.00510204081633
0.00510204081633
0.00510204081633
0.00510204081633
0.00510204081633
0.00510204081633
0.00510204081633
0.00510204081633
0.00510204081633
0.00510204081633
0.00510204081633
0.00510204081633
0.00510204081633
0.00510204081633
0.00510204081633
0.00510204081633
0.00510204081633
0.00510204081633
0.00510204081633
0.00510204081633
0.00510204081633
0.00510204081633
0.00510204081633
0.00510204081633
0.00510204081633
0.0
0.0
0.0
0.0
0.0
0.0
0.0
0.0
0.0
0.0
0.0
0.0
0.0
0.0
0.0
0.0
0.0
0.0
0.0
0.0
0.0
0.0
0.0
0.0
0.0
0.0
0.0
0.0
0.0
0.0
0.0
0.0
0.0
0.0
0.0
0.0
0.0
0.0
0.0
0.0
0.0
0.0
0.0
0.0
0.0
0.0
0.0
0.0
0.0
0.0
0.0
0.0
0.0
0.0
0.0
0.0
0.0
0.0
0.0
0.0
0.0
0.0
0.0
0.0
0.0
0.0
0.0
0.0
0.0
0.0
0.0
0.0
0.0
0.0
0.0
0.0
0.0
0.0
0.0
0.0
0.0
0.0
0.0
0.0
0.0
0.0
0.0
0.0
0.0
0.0
0.0
0.0
0.0
0.0
0.0
0.0
0.0
0.0
0.0
0.0
0.0
0.0
0.0
0.0
0.0
0.0
0.0
0.0
0.0
0.0
0.0
0.0
0.0
0.0
0.0
0.0
0.0
0.0
0.0
0.0
0.0
0.0
0.0
0.0
0.0
0.0
0.0
0.0
0.0
0.0
0.0
0.0
0.0
0.0