战列舰吧 关注:383,224贴子:3,289,984
  • 9回复贴,共1

#水# ##实例分析一 -经验式方法

只看楼主收藏回复

RT


IP属地:北京1楼2024-01-15 13:27回复

    戴主任镇楼


    IP属地:北京2楼2024-01-15 13:28
    回复



      模拟381 mm/50 (15") Model 1934,在15km处,对模拟舰(384mm垂直装甲)射击。
      结论:不穿


      IP属地:北京3楼2024-01-15 13:31
      回复



        模拟381 mm/50 (15") Model 1934,在15km处,对模拟舰(384mm垂直装甲,航向角40度)射击。
        结论:穿透


        IP属地:北京4楼2024-01-15 13:35
        回复



          模拟三年式四十一厘,在15km处,对模拟舰(384mm垂直装甲,航向角40度)射击。
          结论:不穿


          IP属地:北京5楼2024-01-15 13:40
          回复



            模拟380 mm/45 (14.96") Model 1935,在15km处,对模拟舰(384mm垂直装甲,航向角40度)射击。
            结论:穿


            IP属地:北京6楼2024-01-15 14:23
            回复



              模拟38 cm/52 (14.96") SK C/34,在15km处,对模拟舰(384mm垂直装甲,航向角40度)射击。
              结论:不穿


              IP属地:北京7楼2024-01-15 14:28
              回复
                GhPython Script代码,用者自取
                """Provides a scripting component.
                Inputs:
                a: Caliber (口径)
                b: Mass (质量)
                d: Impact angle (着角)
                e: Thickness (厚度)
                Output:
                V: The calculated V value
                """
                __author__ = "Administrator"
                __version__ = "2023.12.30"
                import rhinoscriptsyntax as rs
                import math
                def calculate_v(a, b, d, e):
                """
                Calculate the value of V based on the given formula.
                :param a: Caliber (口径)
                :param b: Mass (质量)
                :param d: Impact angle (着角)
                :param e: Thickness (厚度)
                :return: Calculated value of V
                """
                try:
                # Convert inputs to float
                a = float(a)
                b = float(b)
                d = float(d)
                e = float(e)
                if a == 0: # Prevent division by zero
                return None
                v = 0.3048 * ((6 * e / a - 2.7) * (d ** 2 + 2000) + 40000) * (e / 25.4) ** 0.5 * a / 25.4 / (41.57 * (b / 0.45359237) ** 0.5 * math.cos(d / 57.3))
                return v
                except ValueError:
                # Handle the exception if the input cannot be converted to float
                return None
                # Check if the inputs are valid
                if a is not None and b is not None and d is not None and e is not None:
                # Calculate V
                V = calculate_v(a, b, d, e)
                else:
                V = None
                print(V)


                IP属地:北京8楼2024-01-15 14:32
                回复


                  IP属地:北京9楼2024-01-15 14:32
                  回复