{
  "benchmark": "analytic rigid-body impulse and offset angular response",
  "scope": "Numerical engine verification only. Not a validated LLTV model, contact test, CFD, tank model, controller, or flight acceptance.",
  "versions": {
    "python": "3.12.6 (tags/v3.12.6:a4a2d2b, Sep  6 2024, 20:11:23) [MSC v.1940 64 bit (AMD64)]",
    "executable": "F:\\LLTV\\.venv\\Scripts\\python.exe",
    "platform": "Windows-11-10.0.26200-SP0",
    "mujoco": "4.0.1",
    "mujoco_runtime": "4.0.1",
    "numpy": "2.2.6"
  },
  "source_sha256": "56f5c7d78608bde296a3e76cb6134772712b4497213f5bc3a9df85d83d5bd038",
  "parameters": {
    "mass_kg": 1000.0,
    "principal_inertia_kg_m2": [
      1000.0,
      1500.0,
      2000.0
    ],
    "gravity_m_s2": 9.80665,
    "force_N": 1000.0,
    "pulse_interval_s": [
      0.1,
      0.3
    ],
    "final_time_s": 1.0,
    "integrator": "RK4",
    "no_contact": true
  },
  "analytical_method": "piecewise constant world force; angular momentum about a principal z axis; exact pulse endpoints aligned to steps",
  "cases": [
    {
      "case": "gravity_only",
      "dt_s": 0.002,
      "steps": 500,
      "force_world_N": [
        0.0,
        0.0,
        0.0
      ],
      "application_offset_world_m": [
        0.0,
        0.0,
        0.0
      ],
      "application_rule": "world-fixed offset from instantaneous centre of mass",
      "impulse_N_s": 0.0,
      "angular_impulse_z_N_m_s": -0.0,
      "expected": {
        "position_world_m": [
          0.0,
          0.0,
          5.096675
        ],
        "velocity_world_m_s": [
          0.0,
          0.0,
          -9.80665
        ],
        "yaw_rad": 0.0,
        "angular_velocity_world_rad_s": [
          0.0,
          0.0,
          -0.0
        ]
      },
      "measured": {
        "position_world_m": [
          0.0,
          0.0,
          5.096675000000029
        ],
        "velocity_world_m_s": [
          0.0,
          0.0,
          -9.806649999999895
        ],
        "yaw_rad": 0.0,
        "angular_velocity_world_rad_s": [
          0.0,
          0.0,
          0.0
        ]
      },
      "max_abs_errors": {
        "position_world_m": 2.842170943040401e-14,
        "velocity_world_m_s": 1.0480505352461478e-13,
        "yaw_rad": 0.0,
        "angular_velocity_world_rad_s": 0.0
      },
      "tolerances": {
        "position_world_m": 1e-07,
        "velocity_world_m_s": 1e-08,
        "yaw_rad": 1e-07,
        "angular_velocity_world_rad_s": 1e-08
      },
      "passed": true
    },
    {
      "case": "centred_impulse",
      "dt_s": 0.002,
      "steps": 500,
      "force_world_N": [
        1000.0,
        0.0,
        0.0
      ],
      "application_offset_world_m": [
        0.0,
        0.0,
        0.0
      ],
      "application_rule": "world-fixed offset from instantaneous centre of mass",
      "impulse_N_s": 199.99999999999997,
      "angular_impulse_z_N_m_s": -0.0,
      "expected": {
        "position_world_m": [
          0.16,
          0.0,
          5.096675
        ],
        "velocity_world_m_s": [
          0.19999999999999998,
          0.0,
          -9.80665
        ],
        "yaw_rad": -0.0,
        "angular_velocity_world_rad_s": [
          0.0,
          0.0,
          -0.0
        ]
      },
      "measured": {
        "position_world_m": [
          0.16000000000000048,
          -2.0085694057269926e-53,
          5.096675000000029
        ],
        "velocity_world_m_s": [
          0.20000000000000012,
          -2.131823535047216e-52,
          -9.806649999999895
        ],
        "yaw_rad": 0.0,
        "angular_velocity_world_rad_s": [
          6.220443491043351e-53,
          -2.4008449549405193e-17,
          -1.1887874346402083e-34
        ]
      },
      "max_abs_errors": {
        "position_world_m": 2.842170943040401e-14,
        "velocity_world_m_s": 1.0480505352461478e-13,
        "yaw_rad": 0.0,
        "angular_velocity_world_rad_s": 2.4008449549405193e-17
      },
      "tolerances": {
        "position_world_m": 1e-07,
        "velocity_world_m_s": 1e-08,
        "yaw_rad": 1e-07,
        "angular_velocity_world_rad_s": 1e-08
      },
      "passed": true
    },
    {
      "case": "offset_impulse",
      "dt_s": 0.002,
      "steps": 500,
      "force_world_N": [
        1000.0,
        0.0,
        0.0
      ],
      "application_offset_world_m": [
        0.0,
        1.0,
        0.0
      ],
      "application_rule": "world-fixed offset from instantaneous centre of mass",
      "impulse_N_s": 199.99999999999997,
      "angular_impulse_z_N_m_s": -199.99999999999997,
      "expected": {
        "position_world_m": [
          0.16,
          0.0,
          5.096675
        ],
        "velocity_world_m_s": [
          0.19999999999999998,
          0.0,
          -9.80665
        ],
        "yaw_rad": -0.08,
        "angular_velocity_world_rad_s": [
          0.0,
          0.0,
          -0.09999999999999999
        ]
      },
      "measured": {
        "position_world_m": [
          0.16000000000000048,
          -4.75046669825192e-19,
          5.096675000000029
        ],
        "velocity_world_m_s": [
          0.20000000000000012,
          -1.300574231644089e-18,
          -9.806649999999895
        ],
        "yaw_rad": -0.08000000000000031,
        "angular_velocity_world_rad_s": [
          2.7094648502143997e-19,
          -2.4046020978608173e-17,
          -0.10000000000000019
        ]
      },
      "max_abs_errors": {
        "position_world_m": 2.842170943040401e-14,
        "velocity_world_m_s": 1.0480505352461478e-13,
        "yaw_rad": 3.0531133177191805e-16,
        "angular_velocity_world_rad_s": 1.942890293094024e-16
      },
      "tolerances": {
        "position_world_m": 1e-07,
        "velocity_world_m_s": 1e-08,
        "yaw_rad": 1e-07,
        "angular_velocity_world_rad_s": 1e-08
      },
      "passed": true
    },
    {
      "case": "gravity_only",
      "dt_s": 0.001,
      "steps": 1000,
      "force_world_N": [
        0.0,
        0.0,
        0.0
      ],
      "application_offset_world_m": [
        0.0,
        0.0,
        0.0
      ],
      "application_rule": "world-fixed offset from instantaneous centre of mass",
      "impulse_N_s": 0.0,
      "angular_impulse_z_N_m_s": -0.0,
      "expected": {
        "position_world_m": [
          0.0,
          0.0,
          5.096675
        ],
        "velocity_world_m_s": [
          0.0,
          0.0,
          -9.80665
        ],
        "yaw_rad": 0.0,
        "angular_velocity_world_rad_s": [
          0.0,
          0.0,
          -0.0
        ]
      },
      "measured": {
        "position_world_m": [
          0.0,
          0.0,
          5.096675000000058
        ],
        "velocity_world_m_s": [
          0.0,
          0.0,
          -9.80664999999985
        ],
        "yaw_rad": 0.0,
        "angular_velocity_world_rad_s": [
          0.0,
          0.0,
          0.0
        ]
      },
      "max_abs_errors": {
        "position_world_m": 5.773159728050814e-14,
        "velocity_world_m_s": 1.4921397450962104e-13,
        "yaw_rad": 0.0,
        "angular_velocity_world_rad_s": 0.0
      },
      "tolerances": {
        "position_world_m": 1e-07,
        "velocity_world_m_s": 1e-08,
        "yaw_rad": 1e-07,
        "angular_velocity_world_rad_s": 1e-08
      },
      "passed": true
    },
    {
      "case": "centred_impulse",
      "dt_s": 0.001,
      "steps": 1000,
      "force_world_N": [
        1000.0,
        0.0,
        0.0
      ],
      "application_offset_world_m": [
        0.0,
        0.0,
        0.0
      ],
      "application_rule": "world-fixed offset from instantaneous centre of mass",
      "impulse_N_s": 199.99999999999997,
      "angular_impulse_z_N_m_s": -0.0,
      "expected": {
        "position_world_m": [
          0.16,
          0.0,
          5.096675
        ],
        "velocity_world_m_s": [
          0.19999999999999998,
          0.0,
          -9.80665
        ],
        "yaw_rad": -0.0,
        "angular_velocity_world_rad_s": [
          0.0,
          0.0,
          -0.0
        ]
      },
      "measured": {
        "position_world_m": [
          0.16000000000000256,
          -1.388733234847522e-53,
          5.096675000000058
        ],
        "velocity_world_m_s": [
          0.20000000000000015,
          -1.3679094306126874e-52,
          -9.80664999999985
        ],
        "yaw_rad": 0.0,
        "angular_velocity_world_rad_s": [
          5.471977979800651e-53,
          -2.310329705323963e-17,
          -1.078345404833291e-34
        ]
      },
      "max_abs_errors": {
        "position_world_m": 5.773159728050814e-14,
        "velocity_world_m_s": 1.4921397450962104e-13,
        "yaw_rad": 0.0,
        "angular_velocity_world_rad_s": 2.310329705323963e-17
      },
      "tolerances": {
        "position_world_m": 1e-07,
        "velocity_world_m_s": 1e-08,
        "yaw_rad": 1e-07,
        "angular_velocity_world_rad_s": 1e-08
      },
      "passed": true
    },
    {
      "case": "offset_impulse",
      "dt_s": 0.001,
      "steps": 1000,
      "force_world_N": [
        1000.0,
        0.0,
        0.0
      ],
      "application_offset_world_m": [
        0.0,
        1.0,
        0.0
      ],
      "application_rule": "world-fixed offset from instantaneous centre of mass",
      "impulse_N_s": 199.99999999999997,
      "angular_impulse_z_N_m_s": -199.99999999999997,
      "expected": {
        "position_world_m": [
          0.16,
          0.0,
          5.096675
        ],
        "velocity_world_m_s": [
          0.19999999999999998,
          0.0,
          -9.80665
        ],
        "yaw_rad": -0.08,
        "angular_velocity_world_rad_s": [
          0.0,
          0.0,
          -0.09999999999999999
        ]
      },
      "measured": {
        "position_world_m": [
          0.16000000000000256,
          -3.04082968802128e-19,
          5.096675000000058
        ],
        "velocity_world_m_s": [
          0.20000000000000015,
          -7.715505028852807e-19,
          -9.80664999999985
        ],
        "yaw_rad": -0.08000000000000007,
        "angular_velocity_world_rad_s": [
          2.6433502450320346e-19,
          -2.3139441307916738e-17,
          -0.10000000000000003
        ]
      },
      "max_abs_errors": {
        "position_world_m": 5.773159728050814e-14,
        "velocity_world_m_s": 1.4921397450962104e-13,
        "yaw_rad": 6.938893903907228e-17,
        "angular_velocity_world_rad_s": 4.163336342344337e-17
      },
      "tolerances": {
        "position_world_m": 1e-07,
        "velocity_world_m_s": 1e-08,
        "yaw_rad": 1e-07,
        "angular_velocity_world_rad_s": 1e-08
      },
      "passed": true
    },
    {
      "case": "gravity_only",
      "dt_s": 0.0005,
      "steps": 2000,
      "force_world_N": [
        0.0,
        0.0,
        0.0
      ],
      "application_offset_world_m": [
        0.0,
        0.0,
        0.0
      ],
      "application_rule": "world-fixed offset from instantaneous centre of mass",
      "impulse_N_s": 0.0,
      "angular_impulse_z_N_m_s": -0.0,
      "expected": {
        "position_world_m": [
          0.0,
          0.0,
          5.096675
        ],
        "velocity_world_m_s": [
          0.0,
          0.0,
          -9.80665
        ],
        "yaw_rad": 0.0,
        "angular_velocity_world_rad_s": [
          0.0,
          0.0,
          -0.0
        ]
      },
      "measured": {
        "position_world_m": [
          0.0,
          0.0,
          5.096675000000052
        ],
        "velocity_world_m_s": [
          0.0,
          0.0,
          -9.806650000000156
        ],
        "yaw_rad": 0.0,
        "angular_velocity_world_rad_s": [
          0.0,
          0.0,
          0.0
        ]
      },
      "max_abs_errors": {
        "position_world_m": 5.1514348342607263e-14,
        "velocity_world_m_s": 1.5631940186722204e-13,
        "yaw_rad": 0.0,
        "angular_velocity_world_rad_s": 0.0
      },
      "tolerances": {
        "position_world_m": 1e-07,
        "velocity_world_m_s": 1e-08,
        "yaw_rad": 1e-07,
        "angular_velocity_world_rad_s": 1e-08
      },
      "passed": true
    },
    {
      "case": "centred_impulse",
      "dt_s": 0.0005,
      "steps": 2000,
      "force_world_N": [
        1000.0,
        0.0,
        0.0
      ],
      "application_offset_world_m": [
        0.0,
        0.0,
        0.0
      ],
      "application_rule": "world-fixed offset from instantaneous centre of mass",
      "impulse_N_s": 199.99999999999997,
      "angular_impulse_z_N_m_s": -0.0,
      "expected": {
        "position_world_m": [
          0.16,
          0.0,
          5.096675
        ],
        "velocity_world_m_s": [
          0.19999999999999998,
          0.0,
          -9.80665
        ],
        "yaw_rad": -0.0,
        "angular_velocity_world_rad_s": [
          0.0,
          0.0,
          -0.0
        ]
      },
      "measured": {
        "position_world_m": [
          0.15999999999999875,
          -1.422493923242112e-53,
          5.096675000000052
        ],
        "velocity_world_m_s": [
          0.20000000000000015,
          -1.3167453280091296e-52,
          -9.806650000000156
        ],
        "yaw_rad": 0.0,
        "angular_velocity_world_rad_s": [
          5.59183086866592e-53,
          -2.3180469889262402e-17,
          -1.0922115492959652e-34
        ]
      },
      "max_abs_errors": {
        "position_world_m": 5.1514348342607263e-14,
        "velocity_world_m_s": 1.5631940186722204e-13,
        "yaw_rad": 0.0,
        "angular_velocity_world_rad_s": 2.3180469889262402e-17
      },
      "tolerances": {
        "position_world_m": 1e-07,
        "velocity_world_m_s": 1e-08,
        "yaw_rad": 1e-07,
        "angular_velocity_world_rad_s": 1e-08
      },
      "passed": true
    },
    {
      "case": "offset_impulse",
      "dt_s": 0.0005,
      "steps": 2000,
      "force_world_N": [
        1000.0,
        0.0,
        0.0
      ],
      "application_offset_world_m": [
        0.0,
        1.0,
        0.0
      ],
      "application_rule": "world-fixed offset from instantaneous centre of mass",
      "impulse_N_s": 199.99999999999997,
      "angular_impulse_z_N_m_s": -199.99999999999997,
      "expected": {
        "position_world_m": [
          0.16,
          0.0,
          5.096675
        ],
        "velocity_world_m_s": [
          0.19999999999999998,
          0.0,
          -9.80665
        ],
        "yaw_rad": -0.08,
        "angular_velocity_world_rad_s": [
          0.0,
          0.0,
          -0.09999999999999999
        ]
      },
      "measured": {
        "position_world_m": [
          0.15999999999999875,
          -1.7921721331724754e-19,
          5.096675000000052
        ],
        "velocity_world_m_s": [
          0.20000000000000015,
          -4.559000023561077e-19,
          -9.806650000000156
        ],
        "yaw_rad": -0.08000000000000002,
        "angular_velocity_world_rad_s": [
          2.622772046716825e-19,
          -2.3216550493993284e-17,
          -0.09999999999999992
        ]
      },
      "max_abs_errors": {
        "position_world_m": 5.1514348342607263e-14,
        "velocity_world_m_s": 1.5631940186722204e-13,
        "yaw_rad": 1.3877787807814457e-17,
        "angular_velocity_world_rad_s": 6.938893903907228e-17
      },
      "tolerances": {
        "position_world_m": 1e-07,
        "velocity_world_m_s": 1e-08,
        "yaw_rad": 1e-07,
        "angular_velocity_world_rad_s": 1e-08
      },
      "passed": true
    }
  ],
  "passed": true
}
