dacowars hai 3 semanas
pai
achega
11e90cf808
Modificáronse 2 ficheiros con 253 adicións e 71 borrados
  1. 3 3
      app_designer.py
  2. 250 68
      secciones_config.json

+ 3 - 3
app_designer.py

@@ -386,7 +386,7 @@ class SectionDesignerApp(tk.Tk):
 
         # b (Ancho)
         ttk.Label(self.frame_ipe, text="b (ancho flange, m):").pack(anchor=tk.W, pady=(10, 0))
-        self.entry_b = ttk.Spinbox(self.frame_ipe, from_=0.0, to=10000.0, increment=0.005, width=15, command=self.on_parameter_change_ipe)
+        self.entry_b = ttk.Spinbox(self.frame_ipe, from_=0.0, to=10000.0, increment=0.01, width=15, command=self.on_parameter_change_ipe)
         self.entry_b.pack(anchor=tk.W, fill=tk.X)
         self.entry_b.set("0.150")
         self.entry_b.bind('<FocusOut>', self.on_parameter_change_ipe)
@@ -394,7 +394,7 @@ class SectionDesignerApp(tk.Tk):
 
         # tf (Espesor flange)
         ttk.Label(self.frame_ipe, text="tf (espesor flange, m):").pack(anchor=tk.W, pady=(10, 0))
-        self.entry_tf = ttk.Spinbox(self.frame_ipe, from_=0.0, to=10000.0, increment=0.0005, width=15, command=self.on_parameter_change_ipe)
+        self.entry_tf = ttk.Spinbox(self.frame_ipe, from_=0.0, to=10000.0, increment=0.005, width=15, command=self.on_parameter_change_ipe)
         self.entry_tf.pack(anchor=tk.W, fill=tk.X)
         self.entry_tf.set("0.0107")
         self.entry_tf.bind('<FocusOut>', self.on_parameter_change_ipe)
@@ -402,7 +402,7 @@ class SectionDesignerApp(tk.Tk):
 
         # tw (Espesor alma)
         ttk.Label(self.frame_ipe, text="tw (espesor alma, m):").pack(anchor=tk.W, pady=(10, 0))
-        self.entry_tw = ttk.Spinbox(self.frame_ipe, from_=0.0, to=10000.0, increment=0.0005, width=15, command=self.on_parameter_change_ipe)
+        self.entry_tw = ttk.Spinbox(self.frame_ipe, from_=0.0, to=10000.0, increment=0.005, width=15, command=self.on_parameter_change_ipe)
         self.entry_tw.pack(anchor=tk.W, fill=tk.X)
         self.entry_tw.set("0.0063")
         self.entry_tw.bind('<FocusOut>', self.on_parameter_change_ipe)

+ 250 - 68
secciones_config.json

@@ -240,74 +240,6 @@
         ]
       ]
     },
-    {
-      "nombre": "sdf",
-      "tipo": "puente_nuevo",
-      "puntos": [
-        [
-          0.0,
-          0.0
-        ],
-        [
-          0.055,
-          0.0
-        ],
-        [
-          0.055,
-          0.0067
-        ],
-        [
-          0.02965,
-          0.0067
-        ],
-        [
-          0.02965,
-          0.09330000000000001
-        ],
-        [
-          0.055,
-          0.09330000000000001
-        ],
-        [
-          0.055,
-          0.1
-        ],
-        [
-          0.0,
-          0.1
-        ],
-        [
-          0.0,
-          0.09330000000000001
-        ],
-        [
-          0.02535,
-          0.09330000000000001
-        ],
-        [
-          0.02535,
-          0.0067
-        ],
-        [
-          0.0,
-          0.0067
-        ],
-        [
-          0.0,
-          0.0
-        ]
-      ],
-      "parametros": {
-        "h": 0.3,
-        "b": 0.15,
-        "tf": 0.0107,
-        "tw": 0.0063,
-        "ha": 0.02,
-        "ta": 0.01,
-        "tr": 0.01,
-        "theta": 45.0
-      }
-    },
     {
       "nombre": "Nuevo",
       "tipo": "puente_nuevo",
@@ -439,6 +371,256 @@
         "tr": 0.0135,
         "theta": 53.0
       }
+    },
+    {
+      "nombre": "sdf",
+      "tipo": "ipe",
+      "puntos": [
+        [
+          0.0,
+          0.0
+        ],
+        [
+          0.055,
+          0.0
+        ],
+        [
+          0.055,
+          0.0067
+        ],
+        [
+          0.02965,
+          0.0067
+        ],
+        [
+          0.02965,
+          0.09330000000000001
+        ],
+        [
+          0.055,
+          0.09330000000000001
+        ],
+        [
+          0.055,
+          0.1
+        ],
+        [
+          0.0,
+          0.1
+        ],
+        [
+          0.0,
+          0.09330000000000001
+        ],
+        [
+          0.02535,
+          0.09330000000000001
+        ],
+        [
+          0.02535,
+          0.0067
+        ],
+        [
+          0.0,
+          0.0067
+        ],
+        [
+          0.0,
+          0.0
+        ]
+      ]
+    },
+    {
+      "nombre": "Puente nuevo ala 40",
+      "tipo": "ipe",
+      "puntos": [
+        [
+          0.0,
+          0.0
+        ],
+        [
+          0.45,
+          0.0
+        ],
+        [
+          0.45,
+          0.04
+        ],
+        [
+          0.24,
+          0.04
+        ],
+        [
+          0.24,
+          0.96
+        ],
+        [
+          0.45,
+          0.96
+        ],
+        [
+          0.45,
+          1.0
+        ],
+        [
+          0.0,
+          1.0
+        ],
+        [
+          0.0,
+          0.96
+        ],
+        [
+          0.21000000000000002,
+          0.96
+        ],
+        [
+          0.21000000000000002,
+          0.04
+        ],
+        [
+          0.0,
+          0.04
+        ],
+        [
+          0.0,
+          0.0
+        ]
+      ],
+      "parametros": {
+        "H": 1.0,
+        "b": 0.45,
+        "tf": 0.04,
+        "tw": 0.03
+      }
+    },
+    {
+      "nombre": "Puente nuevo ala 60",
+      "tipo": "ipe",
+      "puntos": [
+        [
+          0.0,
+          0.0
+        ],
+        [
+          0.45,
+          0.0
+        ],
+        [
+          0.45,
+          0.06
+        ],
+        [
+          0.24,
+          0.06
+        ],
+        [
+          0.24,
+          0.94
+        ],
+        [
+          0.45,
+          0.94
+        ],
+        [
+          0.45,
+          1.0
+        ],
+        [
+          0.0,
+          1.0
+        ],
+        [
+          0.0,
+          0.94
+        ],
+        [
+          0.21000000000000002,
+          0.94
+        ],
+        [
+          0.21000000000000002,
+          0.06
+        ],
+        [
+          0.0,
+          0.06
+        ],
+        [
+          0.0,
+          0.0
+        ]
+      ],
+      "parametros": {
+        "H": 1.0,
+        "b": 0.45,
+        "tf": 0.06,
+        "tw": 0.03
+      }
+    },
+    {
+      "nombre": "Puente nuevo alma 40",
+      "tipo": "ipe",
+      "puntos": [
+        [
+          0.0,
+          0.0
+        ],
+        [
+          0.45,
+          0.0
+        ],
+        [
+          0.45,
+          0.04
+        ],
+        [
+          0.245,
+          0.04
+        ],
+        [
+          0.245,
+          0.96
+        ],
+        [
+          0.45,
+          0.96
+        ],
+        [
+          0.45,
+          1.0
+        ],
+        [
+          0.0,
+          1.0
+        ],
+        [
+          0.0,
+          0.96
+        ],
+        [
+          0.20500000000000002,
+          0.96
+        ],
+        [
+          0.20500000000000002,
+          0.04
+        ],
+        [
+          0.0,
+          0.04
+        ],
+        [
+          0.0,
+          0.0
+        ]
+      ],
+      "parametros": {
+        "H": 1.0,
+        "b": 0.45,
+        "tf": 0.04,
+        "tw": 0.04
+      }
     }
   ]
 }