# Copyright (c) 2026. Jose Manuel Requena Plens """Human vibration and the vibration transmission of mechanical elements. One subject in two halves that share a weighting chain. The human half is the ISO 8041-1 frequency weightings (Wk, Wd, Wb, Wc, We, Wf, Wh, Wj, Wm) with their Annex B factors, Table 4 transitions and Table 5 tolerances, the ISO 5349 hand-arm exposure examples, the ISO 2631-5 multiple-shock method and the exposure action and limit values of Directive 2002/44/EC. The mechanical half is what the structure between source and person does: the ISO 7626 mobility and accelerance calibration checks and the ISO 10846 limits on the dynamic transfer stiffness of a resilient element. """ from __future__ import annotations import math from typing import TYPE_CHECKING import numpy as np from scipy.special import erfc if TYPE_CHECKING: from phonometry.vibration.human.exposure import WeightingName # --------------------------------------------------------------------------- # PR-F human vibration (ISO 8041-1 / ISO 2631 / ISO 5349 / Directive 2002/44/EC). # The true IEC 61260 one-third-octave centre is 10^(n/10) Hz; the reference # frequencies of ISO 8041-1 Table 1 are exact (rad/s -> Hz). Design-goal # factors are from ISO 8041-1:2017 Annex B (Tables B.1-B.9, 4 sig. figs). # --------------------------------------------------------------------------- # ISO 8041-1 Annex B design-goal weighting factors at the true band centre. ISO8041_1_WK_FACTOR_6P31HZ = 1.054 # Table B.8, n = 8 (6,31 Hz) - Wk peak ISO8041_1_WM_FACTOR_1P585HZ = 0.9342 # Table B.9, n = 2 (1,585 Hz) - Wm ISO8041_1_WB_FACTOR_6P31HZ = 1.054 # Table B.1, n = 8 (6,31 Hz) - Wb peak ISO8041_1_WB_FACTOR_1HZ = 0.3853 # Table B.1, n = 0 (1 Hz) ISO8041_1_WB_FACTOR_100HZ = 0.1154 # Table B.1, n = 20 (100 Hz) ISO8041_1_WD_FACTOR_1HZ = 1.011 # Table B.3, n = 0 (1 Hz) ISO8041_1_WE_FACTOR_8HZ = 0.1263 # Table B.4, n = 9 (7,943 Hz) ISO8041_1_WF_FACTOR_0P1585HZ = 1.004 # Table B.5, n = -8 (0,1585 Hz) ISO8041_1_WF_FACTOR_0P1HZ = 0.6951 # Table B.5, n = -10 (0,1 Hz) ISO8041_1_WJ_FACTOR_6P31HZ = 0.947 # Table B.7, n = 8 (6,31 Hz) ISO8041_1_WJ_FACTOR_8HZ = 1.016 # Table B.7, n = 9 (7,943 Hz) # ISO 8041-1 Table 1 weighting factors at the reference frequencies. ISO8041_1_WH_REF_FREQ_HZ = 500.0 / (2.0 * math.pi) # 79,577 Hz (500 rad/s) ISO8041_1_WH_REF_FACTOR = 0.2020 # Table 1, Wh @ 500 rad/s ISO8041_1_WBV_REF_FREQ_HZ = 100.0 / (2.0 * math.pi) # 15,915 Hz (100 rad/s) ISO8041_1_WC_REF_FACTOR = 0.5145 # Table 1, Wc @ 100 rad/s ISO8041_1_WD_REF_FACTOR = 0.1261 # Table 1, Wd @ 100 rad/s # ISO 8041-1:2017 Annex B, Tables B.1-B.9: the printed design-goal weighting # factor per one-third-octave band (band number n -> true centre 10^(n/10) Hz; # factors to 4 significant figures). Transcribed from the standard and # cross-validated against the printed dB column (20 lg factor within the # 0,01 dB print rounding) row by row. ISO8041_1_ANNEX_B_FACTORS: dict[str, tuple[tuple[int, float], ...]] = { "Wb": ( (-10, 0.02494), (-9, 0.03941), (-8, 0.06198), (-7, 0.09645), (-6, 0.1464), (-5, 0.2113), (-4, 0.28), (-3, 0.3347), (-2, 0.3666), (-1, 0.3808), (0, 0.3853), (1, 0.3864), (2, 0.3916), (3, 0.4168), (4, 0.496), (5, 0.6653), (6, 0.885), (7, 1.026), (8, 1.054), (9, 1.026), (10, 0.9745), (11, 0.9042), (12, 0.8144), (13, 0.7088), (14, 0.5973), (15, 0.4906), (16, 0.395), (17, 0.3118), (18, 0.2389), (19, 0.1734), (20, 0.1154), (21, 0.06929), (22, 0.03818), (23, 0.01999), (24, 0.0102), (25, 0.005154), (26, 0.002591), ), "Wc": ( (-10, 0.06238), (-9, 0.09858), (-8, 0.1551), (-7, 0.2415), (-6, 0.3669), (-5, 0.5302), (-4, 0.7042), (-3, 0.8442), (-2, 0.9292), (-1, 0.9716), (0, 0.991), (1, 1.0), (2, 1.006), (3, 1.012), (4, 1.017), (5, 1.023), (6, 1.024), (7, 1.013), (8, 0.9739), (9, 0.8941), (10, 0.7762), (11, 0.6425), (12, 0.5166), (13, 0.4098), (14, 0.3236), (15, 0.2549), (16, 0.2002), (17, 0.1557), (18, 0.1182), (19, 0.08538), (20, 0.05665), (21, 0.03394), (22, 0.01868), (23, 0.009772), (24, 0.004987), (25, 0.002518), (26, 0.001266), ), "Wd": ( (-10, 0.06242), (-9, 0.09867), (-8, 0.1553), (-7, 0.242), (-6, 0.3682), (-5, 0.533), (-4, 0.7097), (-3, 0.854), (-2, 0.9443), (-1, 0.9914), (0, 1.011), (1, 1.007), (2, 0.9707), (3, 0.8913), (4, 0.7733), (5, 0.6398), (6, 0.5143), (7, 0.4081), (8, 0.3226), (9, 0.255), (10, 0.2017), (11, 0.1597), (12, 0.1266), (13, 0.1004), (14, 0.07958), (15, 0.06299), (16, 0.04965), (17, 0.03872), (18, 0.02946), (19, 0.0213), (20, 0.01414), (21, 0.008478), (22, 0.004668), (23, 0.002442), (24, 0.001246), (25, 0.0006293), (26, 0.0003164), ), "We": ( (-10, 0.06252), (-9, 0.09893), (-8, 0.156), (-7, 0.2435), (-6, 0.3715), (-5, 0.5394), (-4, 0.7198), (-3, 0.8635), (-2, 0.9389), (-1, 0.9423), (0, 0.8798), (1, 0.7683), (2, 0.6372), (3, 0.5127), (4, 0.407), (5, 0.3218), (6, 0.2543), (7, 0.2012), (8, 0.1594), (9, 0.1263), (10, 0.1002), (11, 0.07954), (12, 0.06314), (13, 0.05011), (14, 0.03975), (15, 0.03147), (16, 0.02481), (17, 0.01935), (18, 0.01473), (19, 0.01065), (20, 0.007071), (21, 0.004239), (22, 0.002334), (23, 0.001221), (24, 0.0006232), (25, 0.0003147), (26, 0.0001582), ), "Wf": ( (-17, 0.02407), (-16, 0.03803), (-15, 0.06021), (-14, 0.09619), (-13, 0.1575), (-12, 0.2675), (-11, 0.4537), (-10, 0.6951), (-9, 0.9), (-8, 1.004), (-7, 0.9928), (-6, 0.8501), (-5, 0.6149), (-4, 0.3884), (-3, 0.2225), (-2, 0.1157), (-1, 0.05434), (0, 0.02352), (1, 0.009705), (2, 0.003916), (3, 0.001566), ), "Wh": ( (-1, 0.01586), (0, 0.02514), (1, 0.03985), (2, 0.06314), (3, 0.09992), (4, 0.1576), (5, 0.2461), (6, 0.3754), (7, 0.545), (8, 0.7272), (9, 0.8731), (10, 0.9514), (11, 0.9576), (12, 0.8958), (13, 0.782), (14, 0.6471), (15, 0.5192), (16, 0.4111), (17, 0.3244), (18, 0.256), (19, 0.2024), (20, 0.1602), (21, 0.127), (22, 0.1007), (23, 0.07988), (24, 0.06338), (25, 0.05026), (26, 0.0398), (27, 0.03137), (28, 0.02447), (29, 0.01862), (30, 0.01346), (31, 0.00894), (32, 0.005359), (33, 0.00295), (34, 0.001544), (35, 0.0007878), (36, 0.0003978), ), "Wj": ( (-10, 0.03099), (-9, 0.04897), (-8, 0.07703), (-7, 0.1199), (-6, 0.1821), (-5, 0.263), (-4, 0.3489), (-3, 0.4176), (-2, 0.4585), (-1, 0.4776), (0, 0.4844), (1, 0.4851), (2, 0.4832), (3, 0.4819), (4, 0.4889), (5, 0.5246), (6, 0.6251), (7, 0.7948), (8, 0.947), (9, 1.016), (10, 1.03), (11, 1.026), (12, 1.019), (13, 1.012), (14, 1.006), (15, 1.0), (16, 0.9911), (17, 0.972), (18, 0.9304), (19, 0.8465), (20, 0.7075), (21, 0.5338), (22, 0.37), (23, 0.2437), (24, 0.1565), (25, 0.09951), (26, 0.06297), ), "Wk": ( (-10, 0.03121), (-9, 0.04931), (-8, 0.07756), (-7, 0.1207), (-6, 0.1832), (-5, 0.2644), (-4, 0.3504), (-3, 0.4188), (-2, 0.4588), (-1, 0.4767), (0, 0.4825), (1, 0.4846), (2, 0.4935), (3, 0.5308), (4, 0.6335), (5, 0.8071), (6, 0.9648), (7, 1.039), (8, 1.054), (9, 1.037), (10, 0.9884), (11, 0.8989), (12, 0.7743), (13, 0.6373), (14, 0.5103), (15, 0.4031), (16, 0.316), (17, 0.2451), (18, 0.1857), (19, 0.1339), (20, 0.08873), (21, 0.05311), (22, 0.02922), (23, 0.01528), (24, 0.007795), (25, 0.003935), (26, 0.001978), ), "Wm": ( (-10, 0.01584), (-9, 0.0251), (-8, 0.03976), (-7, 0.06293), (-6, 0.09941), (-5, 0.1563), (-4, 0.243), (-3, 0.3684), (-2, 0.5304), (-1, 0.7003), (0, 0.8329), (1, 0.9071), (2, 0.9342), (3, 0.9319), (4, 0.9101), (5, 0.8721), (6, 0.8184), (7, 0.7498), (8, 0.6692), (9, 0.5819), (10, 0.4941), (11, 0.4114), (12, 0.3375), (13, 0.2738), (14, 0.2203), (15, 0.176), (16, 0.1396), (17, 0.1093), (18, 0.08336), (19, 0.06036), (20, 0.04013), (21, 0.02407), (22, 0.01326), (23, 0.006937), (24, 0.003541), (25, 0.001788), (26, 0.000899), ), } # ISO 8041-1:2017 Annex B, Tables B.1-B.9: the printed design-goal phase per # one-third-octave band (band number n -> true centre 10^(n/10) Hz), in # degrees, to the significant figures the tables print. Each table runs one # continuous branch, from close to +180 degrees at its first row down past # -180 at its last, which is the branch H.2.3.4 k) points at when it says # that in Tables B.1 to B.9 "180 have been added" to the main branches of the # arctan function. Transcribed from the page images and checked as a set # against Formula (5): all 318 cells are reproduced within their own print # rounding. ISO8041_1_ANNEX_B_PHASES_DEG: dict[WeightingName, tuple[tuple[int, float], ...]] = { "Wb": ( # Table B.1, 37 rows, n = -10 to 26 (-10, 160.0), (-9, 154.5), (-8, 147.4), (-7, 138.1), (-6, 126.0), (-5, 110.7), (-4, 93.14), (-3, 75.73), (-2, 60.94), (-1, 49.84), (0, 42.42), (1, 38.51), (2, 38.27), (3, 41.76), (4, 46.57), (5, 45.79), (6, 34.64), (7, 17.75), (8, 1.77), (9, -11.94), (10, -24.56), (11, -37.1), (12, -49.93), (13, -62.89), (14, -75.75), (15, -88.55), (16, -101.7), (17, -116.0), (18, -132.2), (19, -150.9), (20, -171.3), (21, -191.3), (22, -208.5), (23, -222.2), (24, -232.8), (25, -240.8), (26, -247.1), ), "Wc": ( # Table B.2, 37 rows, n = -10 to 26 (-10, 158.8), (-9, 153.1), (-8, 145.6), (-7, 135.8), (-6, 123.0), (-5, 107.0), (-4, 88.38), (-3, 69.65), (-2, 53.11), (-1, 39.64), (0, 28.88), (1, 20.11), (2, 12.66), (3, 5.957), (4, -0.5318), (5, -7.327), (6, -15.0), (7, -24.1), (8, -34.91), (9, -47.06), (10, -59.37), (11, -70.7), (12, -80.61), (13, -89.43), (14, -97.78), (15, -106.4), (16, -115.9), (17, -127.3), (18, -141.2), (19, -158.0), (20, -177.0), (21, -195.8), (22, -212.1), (23, -225.1), (24, -235.0), (25, -242.6), (26, -248.5), ), "Wd": ( # Table B.3, 37 rows, n = -10 to 26 (-10, 157.6), (-9, 151.5), (-8, 143.6), (-7, 133.2), (-6, 119.8), (-5, 102.8), (-4, 83.11), (-3, 62.84), (-2, 44.21), (-1, 27.86), (0, 13.09), (1, -1.131), (2, -15.55), (3, -30.06), (4, -43.71), (5, -55.44), (6, -64.89), (7, -72.34), (8, -78.34), (9, -83.39), (10, -87.9), (11, -92.2), (12, -96.59), (13, -101.3), (14, -106.8), (15, -113.3), (16, -121.3), (17, -131.4), (18, -144.4), (19, -160.6), (20, -179.0), (21, -197.4), (22, -213.4), (23, -226.1), (24, -235.8), (25, -243.3), (26, -249.0), ), "We": ( # Table B.4, 37 rows, n = -10 to 26 (-10, 155.9), (-9, 149.3), (-8, 140.8), (-7, 129.7), (-6, 115.1), (-5, 96.68), (-4, 74.87), (-3, 51.65), (-2, 29.04), (-1, 7.786), (0, -11.85), (1, -29.24), (2, -43.67), (3, -55.05), (4, -63.83), (5, -70.66), (6, -76.11), (7, -80.61), (8, -84.51), (9, -88.06), (10, -91.49), (11, -94.99), (12, -98.77), (13, -103.1), (14, -108.1), (15, -114.3), (16, -122.1), (17, -132.1), (18, -145.0), (19, -161.0), (20, -179.3), (21, -197.7), (22, -213.6), (23, -226.2), (24, -236.0), (25, -243.4), (26, -249.1), ), "Wf": ( # Table B.5, 21 rows, n = -17 to 3 (-17, 160.9), (-16, 156.2), (-15, 150.6), (-14, 143.7), (-13, 134.8), (-12, 121.4), (-11, 99.53), (-10, 68.36), (-9, 32.06), (-8, -5.596), (-7, -44.61), (-6, -85.43), (-5, -125.5), (-4, -162.1), (-3, -195.6), (-2, -226.8), (-1, -254.6), (0, -277.7), (1, -295.8), (2, -309.8), (3, -320.6), ), "Wh": ( # Table B.6, 38 rows, n = -1 to 36 (-1, 168.1), (0, 165.0), (1, 161.0), (2, 155.9), (3, 149.3), (4, 140.8), (5, 129.7), (6, 115.2), (7, 96.7), (8, 74.91), (9, 51.74), (10, 29.15), (11, 7.81), (12, -12.05), (13, -29.71), (14, -44.37), (15, -55.89), (16, -64.78), (17, -71.7), (18, -77.27), (19, -81.94), (20, -86.06), (21, -89.92), (22, -93.75), (23, -97.8), (24, -102.3), (25, -107.5), (26, -113.8), (27, -121.7), (28, -131.8), (29, -144.7), (30, -160.8), (31, -179.2), (32, -197.5), (33, -213.5), (34, -226.2), (35, -235.9), (36, -243.3), ), "Wj": ( # Table B.7, 37 rows, n = -10 to 26 (-10, 159.8), (-9, 154.2), (-8, 147.0), (-7, 137.6), (-6, 125.3), (-5, 109.9), (-4, 92.06), (-3, 74.31), (-2, 59.02), (-1, 47.18), (0, 38.57), (1, 32.71), (2, 29.31), (3, 28.42), (4, 30.41), (5, 35.14), (6, 39.31), (7, 36.78), (8, 27.42), (9, 17.07), (10, 8.688), (11, 2.043), (12, -3.729), (13, -9.33), (14, -15.31), (15, -22.16), (16, -30.43), (17, -40.78), (18, -53.9), (19, -70.15), (20, -88.68), (21, -107.1), (22, -123.2), (23, -135.9), (24, -145.7), (25, -153.2), (26, -158.9), ), "Wk": ( # Table B.8, 37 rows, n = -10 to 26 (-10, 159.8), (-9, 154.3), (-8, 147.1), (-7, 137.7), (-6, 125.4), (-5, 109.9), (-4, 92.2), (-3, 74.54), (-2, 59.44), (-1, 47.96), (0, 40.06), (1, 35.55), (2, 34.48), (3, 36.45), (4, 37.98), (5, 32.73), (6, 20.35), (7, 6.309), (8, -6.841), (9, -19.73), (10, -33.3), (11, -47.62), (12, -61.84), (13, -75.03), (14, -87.02), (15, -98.35), (16, -109.9), (17, -122.7), (18, -137.6), (19, -155.2), (20, -174.8), (21, -194.1), (22, -210.7), (23, -224.0), (24, -234.2), (25, -241.9), (26, -247.9), ), "Wm": ( # Table B.9, 37 rows, n = -10 to 26 (-10, 168.7), (-9, 165.7), (-8, 161.9), (-7, 157.1), (-6, 150.8), (-5, 142.8), (-4, 132.2), (-3, 118.6), (-2, 101.3), (-1, 81.4), (0, 61.03), (1, 42.49), (2, 26.56), (3, 12.83), (4, 0.5459), (5, -10.89), (6, -21.86), (7, -32.52), (8, -42.85), (9, -52.73), (10, -62.07), (11, -70.84), (12, -79.15), (13, -87.25), (14, -95.45), (15, -104.2), (16, -114.0), (17, -125.7), (18, -139.8), (19, -156.9), (20, -176.1), (21, -195.1), (22, -211.5), (23, -224.6), (24, -234.7), (25, -242.3), (26, -248.3), ), } # ISO 8041-1:2017 Table 4: tolerance transition frequencies ft1..ft4 per # weighting, as exact powers 10^(k/10) Hz. The Table 5 magnitude tolerances # per region: f <= ft1 and f >= ft4: +26 %/-100 %; ft1 < f < ft2 and # ft3 < f < ft4: +26 %/-21 %; ft2 <= f <= ft3: +12 %/-11 %. _WBV_TRANSITIONS = (10.0**-0.6, 10.0**-0.2, 10.0**1.8, 10.0**2.2) ISO8041_1_TABLE4_TRANSITIONS: dict[str, tuple[float, float, float, float]] = { "Wb": _WBV_TRANSITIONS, "Wc": _WBV_TRANSITIONS, "Wd": _WBV_TRANSITIONS, "We": _WBV_TRANSITIONS, "Wf": (10.0**-1.3, 10.0**-0.9, 10.0**-0.4, 10.0**0.0), "Wh": (10.0**0.6, 10.0**1.0, 10.0**2.9, 10.0**3.3), "Wj": _WBV_TRANSITIONS, "Wk": _WBV_TRANSITIONS, "Wm": (10.0**-0.3, 10.0**0.1, 10.0**1.8, 10.0**2.2), } # Table 5 magnitude tolerances (upper, lower), as fractions, by region index # 0: f <= ft1, 1: ft1 < f < ft2, 2: ft2 <= f <= ft3, 3: ft3 < f < ft4, # 4: f >= ft4. ISO8041_1_TABLE5_TOLERANCES: tuple[tuple[float, float], ...] = ( (0.26, 1.00), (0.26, 0.21), (0.12, 0.11), (0.26, 0.21), (0.26, 1.00), ) # ISO 8041-1:2017 Annex B, Tables B.1-B.9, "Band-limiting Factor" column: the # printed design-goal factor of the band-limiting weighting alone (Formulae # (1) and (2)) per one-third-octave band. Six weightings share the 0,4 Hz and # 100 Hz corners of Table 3 and therefore print the same column, verified # cell by cell against the page images of Tables B.1 to B.9, so it is # transcribed once here; Wf, Wh and Wm have corners of their own. _SHARED_BAND_LIMITING: tuple[tuple[int, float], ...] = ( (-10, 0.06238), (-9, 0.09857), (-8, 0.1551), (-7, 0.2415), (-6, 0.3669), (-5, 0.53), (-4, 0.7037), (-3, 0.8434), (-2, 0.9279), (-1, 0.9693), (0, 0.9874), (1, 0.9949), (2, 0.998), (3, 0.9992), (4, 0.9997), (5, 0.9999), (6, 0.9999), (7, 1.0), (8, 1.0), (9, 1.0), (10, 0.9999), (11, 0.9999), (12, 0.9997), (13, 0.9992), (14, 0.998), (15, 0.995), (16, 0.9877), (17, 0.9699), (18, 0.9291), (19, 0.8457), (20, 0.7071), (21, 0.5336), (22, 0.3699), (23, 0.2436), (24, 0.1565), (25, 0.0995), (26, 0.06297), ) ISO8041_1_ANNEX_B_BAND_LIMITING: dict[str, tuple[tuple[int, float], ...]] = { "Wb": _SHARED_BAND_LIMITING, "Wc": _SHARED_BAND_LIMITING, "Wd": _SHARED_BAND_LIMITING, "We": _SHARED_BAND_LIMITING, # Table B.5: 0,08 Hz and 0,63 Hz corners, n = -17 to 3. "Wf": ( (-17, 0.06208), (-16, 0.09811), (-15, 0.1544), (-14, 0.2404), (-13, 0.3653), (-12, 0.5282), (-11, 0.702), (-10, 0.842), (-9, 0.9265), (-8, 0.9671), (-7, 0.9824), (-6, 0.9826), (-5, 0.9677), (-4, 0.9279), (-3, 0.8447), (-2, 0.7059), (-1, 0.5324), (0, 0.3689), (1, 0.2429), (2, 0.1561), (3, 0.0992), ), # Table B.6: 10^0,8 Hz and 10^3,1 Hz corners, n = -1 to 36. "Wh": ( (-1, 0.01585), (0, 0.02511), (1, 0.03978), (2, 0.06297), (3, 0.0995), (4, 0.1565), (5, 0.2436), (6, 0.3699), (7, 0.5336), (8, 0.7071), (9, 0.8457), (10, 0.9291), (11, 0.9699), (12, 0.9877), (13, 0.995), (14, 0.998), (15, 0.9992), (16, 0.9997), (17, 0.9999), (18, 0.9999), (19, 1.0), (20, 1.0), (21, 0.9999), (22, 0.9999), (23, 0.9997), (24, 0.9992), (25, 0.998), (26, 0.995), (27, 0.9877), (28, 0.9699), (29, 0.9291), (30, 0.8457), (31, 0.7071), (32, 0.5336), (33, 0.3699), (34, 0.2436), (35, 0.1565), (36, 0.0995), ), "Wj": _SHARED_BAND_LIMITING, "Wk": _SHARED_BAND_LIMITING, # Table B.9: 10^-0,1 Hz and 100 Hz corners, n = -10 to 26. "Wm": ( (-10, 0.01585), (-9, 0.02511), (-8, 0.03978), (-7, 0.06297), (-6, 0.0995), (-5, 0.1565), (-4, 0.2436), (-3, 0.3699), (-2, 0.5336), (-1, 0.7071), (0, 0.8457), (1, 0.9291), (2, 0.9699), (3, 0.9877), (4, 0.995), (5, 0.998), (6, 0.9992), (7, 0.9997), (8, 0.9999), (9, 0.9999), (10, 0.9999), (11, 0.9999), (12, 0.9997), (13, 0.9992), (14, 0.998), (15, 0.995), (16, 0.9877), (17, 0.9699), (18, 0.9291), (19, 0.8457), (20, 0.7071), (21, 0.5336), (22, 0.3699), (23, 0.2436), (24, 0.1565), (25, 0.0995), (26, 0.06297), ), } # ISO 8041-1:2017 Table 2 (folio 12), rows 2 and 3: the two consistency # tolerances of the indication, in per cent. Row 3 is part 1 only, because # ISO 8041-2 5.13 declares the running r.m.s. not applicable to a PVEM. ISO8041_1_WEIGHTING_CONSISTENCY_PERCENT = 3.0 ISO8041_1_RUNNING_RMS_CONSISTENCY_PERCENT = 2.0 # ISO 8041-1:2017 Table 6 (folio 17): the whole-body saw-tooth signal burst, # 100 rad/s, first burst at 1 s, repeated every 10 s over a 60 s record. ISO8041_1_BURST_WBV_ANGULAR_FREQUENCY_RAD_S = 100.0 ISO8041_1_BURST_WBV_START_S = 1.0 ISO8041_1_BURST_WBV_REPEAT_S = 10.0 ISO8041_1_BURST_WBV_DURATION_S = 60.0 # ISO 8041-1:2017 Table 8 (folios 18 and 19), the one-cycle-per-burst row of # the band-limiting weighting and of Wk: (r.m.s., VDV, MTVV linear, MTVV # exponential) for a 1 m/s2 amplitude burst. The printed tolerances are 10 % # on the r.m.s. and the two MTVV columns and 12 % on the VDV column. ISO8041_1_TABLE8_ONE_CYCLE: dict[str, tuple[float, float, float, float]] = { "band-limiting": (0.0433, 0.498, 0.137, 0.135), "Wk": (0.0299, 0.323, 0.0944, 0.0922), } ISO8041_1_TABLE8_TOLERANCE_PERCENT: tuple[float, float, float, float] = ( 10.0, 12.0, 10.0, 10.0, ) # ISO 8041-1:2017 Tables 10 and 11 (folios 20 and 21): the time the running # r.m.s. indication takes to fall to 10 % of its initial value after a steady # reference sinusoid is shut off, as (time constant s, printed time s, # printed tolerance s), and the equivalent decay rate Table 11 prints beside # it, as (time constant s, lower dB/s, upper dB/s). Table 10 prints no rate. ISO8041_1_TABLE10_DECAY_S: tuple[tuple[float, float, float], ...] = ( (0.125, 0.124, 0.005), (1.0, 0.99, 0.05), (8.0, 7.92, 0.2), ) ISO8041_1_TABLE11_DECAY_S: tuple[tuple[float, float, float], ...] = ( (0.125, 0.58, 0.03), (1.0, 4.61, 0.25), (8.0, 36.8, 2.0), ) ISO8041_1_TABLE11_DECAY_RATE_DB_PER_S: tuple[tuple[float, float, float], ...] = ( (0.125, 31.0, 40.0), (1.0, 3.8, 4.9), (8.0, 0.48, 0.62), ) # --------------------------------------------------------------------------- # ISO 8041-2:2021, personal vibration exposure meters (PVEM). Read off the # printed pages of the 2021 edition, whose PDF page index is the printed folio # plus 8, and typed here from those pages rather than copied from the ISO # 8041-1 tables the library holds: the point of this block is to find out # whether Part 2 prints the same numbers, so it cannot start from them. # --------------------------------------------------------------------------- # Table 6 (folio 12): per application, the weightings, the angular frequency # in rad/s, the start time in s, the burst lengths in cycles, the repeat time # in s and the measurement duration in s. ISO8041_2_TABLE6: dict[ str, tuple[tuple[str, ...], float, float, tuple[int, ...], float, float] ] = { "hand-arm": (("Wh",), 500.0, 0.2, (1, 2, 4, 8, 16), 2.0, 12.0), "whole-body": ( ("Wb", "Wc", "Wd", "We", "Wj", "Wk", "Wm"), 100.0, 1.0, (1, 2, 4, 8, 16), 10.0, 60.0, ), "low-frequency-whole-body": (("Wf",), 2.5, 40.0, (1, 2, 4, 8, 16), 400.0, 2400.0), } # Tables 7, 8 and 9 (folios 12, 13 and 14): every printed line, keyed by # (row, burst length) with None for the "Continuous" line and "band-limiting" # for the "Band limiting" row, holding one (indication, tolerance %) pair per # printed column in printed order. The tolerance is typed per cell, as the # page prints it, rather than once per column. ISO8041_2_TABLE7_COLUMNS: tuple[str, ...] = ("rms",) ISO8041_2_TABLE7: dict[tuple[str, int | None], tuple[tuple[float, float], ...]] = { ("band-limiting", 1): ((0.0448, 10.0),), ("band-limiting", 2): ((0.0633, 10.0),), ("band-limiting", 4): ((0.0895, 10.0),), ("band-limiting", 8): ((0.127, 10.0),), ("band-limiting", 16): ((0.179, 10.0),), ("band-limiting", None): ((0.565, 10.0),), ("Wh", 1): ((0.0103, 10.0),), ("Wh", 2): ((0.0133, 10.0),), ("Wh", 4): ((0.0168, 10.0),), ("Wh", 8): ((0.0224, 10.0),), ("Wh", 16): ((0.0309, 10.0),), ("Wh", None): ((0.0946, 10.0),), } # Table 8 spans folios 13 and 14: the Wm row is the "Table 8 (continued)" at # the head of folio 14. ISO8041_2_TABLE8_COLUMNS: tuple[str, ...] = ( "rms", "vdv", "mtvv_linear", "mtvv_exponential", ) ISO8041_2_TABLE8: dict[tuple[str, int | None], tuple[tuple[float, float], ...]] = { ("band-limiting", 1): ((0.0433, 10.0), (0.498, 12.0), (0.137, 10.0), (0.135, 10.0)), ("band-limiting", 2): ((0.0612, 10.0), (0.593, 12.0), (0.193, 10.0), (0.188, 10.0)), ("band-limiting", 4): ((0.0865, 10.0), (0.705, 12.0), (0.274, 10.0), (0.258, 10.0)), ("band-limiting", 8): ((0.122, 10.0), (0.838, 12.0), (0.387, 10.0), (0.344, 10.0)), ("band-limiting", 16): ((0.173, 10.0), (0.996, 12.0), (0.547, 10.0), (0.437, 10.0)), ("band-limiting", None): ( (0.546, 10.0), (1.77, 12.0), (0.547, 10.0), (0.549, 10.0), ), ("Wb", 1): ((0.0314, 10.0), (0.342, 12.0), (0.0991, 10.0), (0.0968, 10.0)), ("Wb", 2): ((0.0435, 10.0), (0.403, 12.0), (0.137, 10.0), (0.132, 10.0)), ("Wb", 4): ((0.0614, 10.0), (0.482, 12.0), (0.194, 10.0), (0.182, 10.0)), ("Wb", 8): ((0.0867, 10.0), (0.575, 12.0), (0.274, 10.0), (0.243, 10.0)), ("Wb", 16): ((0.123, 10.0), (0.685, 12.0), (0.387, 10.0), (0.309, 10.0)), ("Wb", None): ((0.387, 10.0), (1.22, 12.0), (0.388, 10.0), (0.388, 10.0)), ("Wc", 1): ((0.0222, 10.0), (0.244, 12.0), (0.0703, 10.0), (0.0684, 10.0)), ("Wc", 2): ((0.0292, 10.0), (0.275, 12.0), (0.0923, 10.0), (0.0885, 10.0)), ("Wc", 4): ((0.0397, 10.0), (0.318, 12.0), (0.126, 10.0), (0.117, 10.0)), ("Wc", 8): ((0.055, 10.0), (0.374, 12.0), (0.174, 10.0), (0.153, 10.0)), ("Wc", 16): ((0.077, 10.0), (0.445, 12.0), (0.243, 10.0), (0.192, 10.0)), ("Wc", None): ((0.24, 10.0), (0.788, 12.0), (0.243, 10.0), (0.242, 10.0)), ("Wd", 1): ((0.00669, 10.0), (0.0779, 12.0), (0.0212, 10.0), (0.0197, 10.0)), ("Wd", 2): ((0.00906, 10.0), (0.0852, 12.0), (0.0286, 10.0), (0.0264, 10.0)), ("Wd", 4): ((0.0116, 10.0), (0.0923, 12.0), (0.0366, 10.0), (0.033, 10.0)), ("Wd", 8): ((0.0148, 10.0), (0.101, 12.0), (0.0469, 10.0), (0.04, 10.0)), ("Wd", 16): ((0.0197, 10.0), (0.115, 12.0), (0.0611, 10.0), (0.0481, 10.0)), ("Wd", None): ((0.059, 10.0), (0.197, 12.0), (0.0611, 10.0), (0.0594, 10.0)), ("We", 1): ((0.00342, 10.0), (0.0409, 12.0), (0.0108, 10.0), (0.00992, 10.0)), ("We", 2): ((0.00478, 10.0), (0.0452, 12.0), (0.0151, 10.0), (0.0135, 10.0)), ("We", 4): ((0.00637, 10.0), (0.0493, 12.0), (0.0201, 10.0), (0.0176, 10.0)), ("We", 8): ((0.00816, 10.0), (0.0535, 12.0), (0.0255, 10.0), (0.0214, 10.0)), ("We", 16): ((0.0102, 10.0), (0.0592, 12.0), (0.0311, 10.0), (0.0244, 10.0)), ("We", None): ((0.0295, 10.0), (0.0987, 12.0), (0.0311, 10.0), (0.0297, 10.0)), ("Wj", 1): ((0.0435, 10.0), (0.517, 12.0), (0.138, 10.0), (0.135, 10.0)), ("Wj", 2): ((0.0616, 10.0), (0.609, 12.0), (0.195, 10.0), (0.189, 10.0)), ("Wj", 4): ((0.0874, 10.0), (0.723, 12.0), (0.277, 10.0), (0.261, 10.0)), ("Wj", 8): ((0.124, 10.0), (0.859, 12.0), (0.392, 10.0), (0.349, 10.0)), ("Wj", 16): ((0.175, 10.0), (1.02, 12.0), (0.554, 10.0), (0.443, 10.0)), ("Wj", None): ((0.554, 10.0), (1.81, 12.0), (0.555, 10.0), (0.557, 10.0)), ("Wk", 1): ((0.0299, 10.0), (0.323, 12.0), (0.0944, 10.0), (0.0922, 10.0)), ("Wk", 2): ((0.0411, 10.0), (0.38, 12.0), (0.13, 10.0), (0.125, 10.0)), ("Wk", 4): ((0.0577, 10.0), (0.455, 12.0), (0.182, 10.0), (0.171, 10.0)), ("Wk", 8): ((0.0814, 10.0), (0.543, 12.0), (0.257, 10.0), (0.228, 10.0)), ("Wk", 16): ((0.115, 10.0), (0.648, 12.0), (0.363, 10.0), (0.289, 10.0)), ("Wk", None): ((0.362, 10.0), (1.15, 12.0), (0.364, 10.0), (0.363, 10.0)), ("Wm", 1): ((0.0149, 10.0), (0.165, 12.0), (0.0472, 10.0), (0.0456, 10.0)), ("Wm", 2): ((0.0197, 10.0), (0.185, 12.0), (0.0623, 10.0), (0.0594, 10.0)), ("Wm", 4): ((0.0264, 10.0), (0.211, 12.0), (0.0836, 10.0), (0.0775, 10.0)), ("Wm", 8): ((0.0363, 10.0), (0.247, 12.0), (0.115, 10.0), (0.101, 10.0)), ("Wm", 16): ((0.0507, 10.0), (0.294, 12.0), (0.16, 10.0), (0.126, 10.0)), ("Wm", None): ((0.158, 10.0), (0.52, 12.0), (0.16, 10.0), (0.159, 10.0)), } ISO8041_2_TABLE9_COLUMNS: tuple[str, ...] = ("rms", "msdv") ISO8041_2_TABLE9: dict[tuple[str, int | None], tuple[tuple[float, float], ...]] = { ("band-limiting", 1): ((0.0341, 10.0), (1.671, 10.0)), ("band-limiting", 2): ((0.0487, 10.0), (2.386, 10.0)), ("band-limiting", 4): ((0.069, 10.0), (3.38, 10.0)), ("band-limiting", 8): ((0.0982, 10.0), (4.811, 10.0)), ("band-limiting", 16): ((0.139, 10.0), (6.81, 10.0)), ("band-limiting", None): ((0.439, 10.0), (21.51, 10.0)), ("Wf", 1): ((0.0197, 10.0), (0.9651, 10.0)), ("Wf", 2): ((0.0236, 10.0), (1.156, 10.0)), ("Wf", 4): ((0.0304, 10.0), (1.489, 10.0)), ("Wf", 8): ((0.0416, 10.0), (2.038, 10.0)), ("Wf", 16): ((0.0571, 10.0), (2.797, 10.0)), ("Wf", None): ((0.176, 10.0), (8.622, 10.0)), } # Table 2 (folio 8): the two rows a PVEM prints, in per cent. The first row # carries one tolerance per application; the running r.m.s. row of ISO 8041-1 # Table 2 is not printed, and 5.13 (folio 15) reads "Not applicable for PVEM". ISO8041_2_TABLE2_INDICATION_PERCENT = 4.0 # hand-transmitted and whole-body ISO8041_2_TABLE2_LOW_FREQUENCY_INDICATION_PERCENT = 5.0 # low-frequency ISO8041_2_TABLE2_WEIGHTING_CONSISTENCY_PERCENT = 3.0 # The maximum expanded uncertainties of measurement clauses 12 and 13 print, # in per cent, keyed by clause: 12.7 (folio 26, the same 2 % three times), # 12.10.1 (folio 27, 2 % on the reference range and 2 % on the others), # 12.10.2 (folio 28, 3 % on the reference range, 4 % on the others), 12.11.2 # (folio 29), 12.11.3 (folio 30), 12.11.4 and 12.13 (folio 31), 12.14 and # 12.18 (folio 32), and 13.9 (folio 41, the same 5 % for linearity and for # frequency response). 12.20.2 prints 0,5 degC and 10 % relative humidity, # uncertainties of an environmental condition rather than of a deviation. ISO8041_2_MAX_EXPANDED_UNCERTAINTY_PERCENT: dict[str, float] = { "12.7": 2.0, "12.10.1": 2.0, "12.10.2": 3.0, "12.10.2 additional ranges": 4.0, "12.11.2": 4.5, "12.11.3": 3.0, "12.11.4": 5.0, "12.13": 3.0, "12.14": 2.0, "12.18": 0.01, "13.9": 5.0, } # 12.1 (folio 23) prints "a coverage factor of no less than 2"; 13.1 (folio # 37) prints "the coverage factor k = 2". ISO8041_2_COVERAGE_FACTOR = 2.0 # ISO 5349-2:2001 Annex E worked-example daily exposures A(8), m/s^2. ISO5349_2_E21_A8 = 4.1 # E.2.1 single tool: 7,4*sqrt(2,5/8) ISO5349_2_E3_A8 = 3.6 # E.3 forestry three-task combination # ISO 5349-1:2001 Annex C: Dy = 31,8*A(8)^-1,06; Table C.1 A(8)=7 -> Dy=4 yr. ISO5349_1_VWF_A8 = 7.0 ISO5349_1_VWF_DY_YEARS = 4.0 # Directive 2002/44/EC Article 3 daily exposure action/limit values. DIRECTIVE_2002_44_HAV_EAV = 2.5 # A(8) m/s^2, Art. 3(1)(a) DIRECTIVE_2002_44_HAV_ELV = 5.0 # A(8) m/s^2, Art. 3(1)(b) DIRECTIVE_2002_44_WBV_EAV = 0.5 # A(8) m/s^2, Art. 3(2)(a) DIRECTIVE_2002_44_WBV_ELV = 1.15 # A(8) m/s^2, Art. 3(2)(b) # --------------------------------------------------------------------------- # Multiple-shock whole-body vibration - ISO 2631-5:2018, Annex C worked # example: five 40 m/s2 response peaks per day, 82 kg male, exposure from age # b = 20 for n = 20 years at N = 120 days/year. Daily acceleration dose # Dzd = 55.97 m/s2, stress variable R = 1.22 and injury probability Pi = 0.37. # --------------------------------------------------------------------------- ISO2631_5_DZD_MALE = 55.97 # daily acceleration dose, m/s2 (Formula 3) ISO2631_5_R_MALE = 1.22 # cumulative stress variable R (Formula C.3) ISO2631_5_PI_MALE = 0.37 # probability of lumbar injury (Formula C.5) # Annex C NOTE 5: the same exposure for a 64 kg female (mz = 0,025 MPa/(m/s2)). ISO2631_5_SD_FEMALE = 1.40 # daily compressive stress Sd, MPa (Formula C.1) ISO2631_5_R_FEMALE = 0.97 # cumulative stress variable R (Formula C.3). # Exact recomputation of NOTE 5 (mz = 0,025, Sage = 0,039, b = 20, n = 20) # gives R = 0.9621, which rounds to 0.96; the printed 0.97 is a last-digit # inconsistency of the standard's own note (the male path reproduces the # printed 1.22 exactly with the identical code). Tolerance 0.01 covers it. # ISO 2631-5:2018 Annex D, Table D.1: digital-filter realization of the # clause 5.2 seat-to-spine transfer function (Formula 1) at fs = 256 Hz, # 12 taps. An independent cross-check of the Formula 1 coefficients: the # analog magnitude must match the filter within the clause 5.2 tolerance # (+/- 0,04 up to 40 Hz, +/- 0,08 up to 80 Hz). ISO2631_5_ANNEX_D_FS = 256.0 # sampling frequency of the Table D.1 filter, Hz ISO2631_5_ANNEX_D_B: tuple[float, ...] = ( -0.000005710, 0.000020010, 0.001373900, 0.014541920, 0.025152310, -0.014242050, -0.044262840, -0.008888510, 0.017715720, 0.010216420, 0.002030740, 0.000055980, ) ISO2631_5_ANNEX_D_A: tuple[float, ...] = ( 1.000000000, -3.323217600, 4.256126150, -1.980417270, -1.488735470, 3.329511290, -2.949072140, 1.653403410, -0.635677800, 0.167519420, -0.028076980, 0.002348730, ) # --------------------------------------------------------------------------- # Mechanical mobility and transfer stiffness - ISO 7626 / ISO 10846 anchors. # ISO 7626-2:2015, 7.5.2: the FRF of a freely suspended rigid block of mass # m = 10 kg is mag(A) = 1/m = 0,100 1/kg at every frequency, and # mag(Y) = 1/(2*pi*f*m) = 1,59155e-4 m/(N.s) at 100 Hz, within +/-5 %. # Annex A: coherence 0,8 with n = 75 averages -> normalized random error # eps = sqrt((1-g2)/(2*n*g2)) = 4,08 % (< 5 %, the 8.1.3 criterion). # The omega = 1000 rad/s decade identity across the FRF family: a rigid 1 kg # mass has accelerance 1 1/kg, mobility 1e-3 m/(N.s), compliance 1e-6 m/N. # ISO 10846-3:2002, 6.1: valid where DeltaL1,2 >= 20 dB (mag(T) <= 0,1); the # T << 1 approximation then holds within 1 dB (12 %) - at the limit the # undamped mass-spring model gives k_indirect/k = 1,1 (0,83 dB, 10 %). # ISO 10846-1:2008, Eq. (6): at mag(k2,2/kt) = 0,1 the delivered force is # F2/F2,b = 1/1,1 = 0,9091 - the Eq. (7) "within 10 %" claim. # ISO 10846-2 7.7 and ISO 10846-3 7.6 (the test for linearity is 7.7 in # Parts 2, 4 and 5 and 7.6 in Part 3): two input spectra 10 dB apart must # give transfer-stiffness levels within 1,5 dB for the data to count as # linear. # --------------------------------------------------------------------------- ISO7626_2_CAL_MASS_KG = 10.0 # rigid calibration block mass (7.5.2) ISO7626_2_CAL_ACCELERANCE = 0.100 # mag(A) = 1/m, 1/kg ISO7626_2_CAL_MOBILITY_100HZ = 1.59155e-4 # mag(Y) at 100 Hz, m/(N.s) ISO7626_2_RANDOM_ERROR_PCT = 4.08 # Annex A example: g2 = 0,8, n = 75 ISO7626_1_DECADE_FREQ_HZ = 1000.0 / (2.0 * math.pi) # 159,155 Hz (1000 rad/s) ISO7626_1_DECADE_MOBILITY = 1.0e-3 # mag(Y) of a rigid 1 kg mass, m/(N.s) ISO7626_1_DECADE_COMPLIANCE = 1.0e-6 # mag(H) of a rigid 1 kg mass, m/N ISO10846_3_LIMIT_DELTA_L_DB = 20.0 # Inequality (2): DeltaL1,2 >= 20 dB ISO10846_3_LIMIT_BIAS_RATIO = 1.1 # k_indirect/k of the model at mag(T) = 0,1 ISO10846_3_ACCURACY_DB = 1.0 # 6.1: Formula (1) accurate within 1 dB ISO10846_3_ACCURACY_FRACTION = 0.12 # i.e. within 12 % ISO10846_1_EQ6_FORCE_RATIO = 1.0 / 1.1 # F2/F2,b at mag(k2,2/kt) = 0,1 ISO10846_LINEARITY_STEP_DB = 10.0 # -2 7.7 b), -3 7.6 b): A/B 10 dB apart ISO10846_LINEARITY_TOL_DB = 1.5 # -2 7.7 c), -3 7.6 c): within 1,5 dB # --------------------------------------------------------------------------- # ISO 7626-5:2019, mobility by impact excitation. The part prints no worked # example, so its rows are anchored in a closed form: a single-degree-of- # freedom resonator struck by a Gaussian force pulse, whose response is the # exact convolution below. The pulse is smooth enough that its spectrum is # negligible at the Nyquist frequency of 4096 Hz sampling, so the DFT of the # sampled records is the continuous transform to about 1e-9 below 500 Hz. # Printed numbers the rows hold the library to: 8.3 and 8.5.2 (folios 14, 19 # and 23, PDF pages 20, 25 and 29), 9.1 (folio 24, PDF page 30), 8.1 (folio # 13, PDF page 19), Annex A (folio 26, PDF page 32). # --------------------------------------------------------------------------- ISO7626_5_FS_HZ = 4096.0 ISO7626_5_SAMPLES = 4096 ISO7626_5_MASS_KG = 2.0 ISO7626_5_NATURAL_FREQUENCY_HZ = 40.0 ISO7626_5_PULSE_SIGMA_S = 5e-4 ISO7626_5_PULSE_TIME_S = 0.005 ISO7626_5_PEAK_N = 100.0 ISO7626_5_RESPONSE_END_RATIO = 0.01 # 8.3: "about 1 %" at the end of the record ISO7626_5_RESPONSE_MIDPOINT_RATIO = 0.1 # 8.5.2: "about 10 %" at the midpoint ISO7626_5_WINDOWED_END_RATIO = 0.25 # 8.5.2: "25 % or less" of natural decay ISO7626_5_HIGH_COHERENCE = 0.9 # 9.1: "high (greater than 0,9)" ISO7626_5_COHERENCE_RECORDS = 5 # 9.1: "a few records (five to ten)" ISO7626_5_CHANNEL_MAGNITUDE = 0.05 # 8.1: unity within +/- 5 % ISO7626_5_CHANNEL_PHASE_DEG = 5.0 # 8.1: zero within +/- 5 degrees ISO7626_5_FIGURE10_FINAL_VALUE = 0.05 # 8.5.2: Figure 10 decays to 5 % def sdof_gaussian_impact( damping_ratio: float, *, quantity: str = "acceleration", natural_frequency_hz: float = ISO7626_5_NATURAL_FREQUENCY_HZ, mass_kg: float = ISO7626_5_MASS_KG, peak_n: float = ISO7626_5_PEAK_N, pulse_time_s: float = ISO7626_5_PULSE_TIME_S, ) -> tuple[np.ndarray, np.ndarray]: r"""Force and exact response of an SDOF resonator struck by a Gaussian pulse. With the receptance written as :math:`A/(s-p) + A^*/(s-p^*)`, the response is :math:`x(t) = 2\,\mathrm{Re}[A I(t)]` with :math:`I(t) = \int_{-\infty}^t e^{p(t-u)} f(u)\,du`, which for :math:`f(u) = F_0 e^{-(u-t_0)^2/2\sigma^2}` is :math:`F_0 e^{p(t-t_0)} e^{p^2\sigma^2/2} \sigma\sqrt{\pi/2}\, \mathrm{erfc}[-(t - t_0 + p\sigma^2)/(\sigma\sqrt 2)]`. Velocity and acceleration follow by differentiating, the latter carrying the direct term :math:`f(t)/m` of the mass line. :param damping_ratio: Damping ratio of the resonator, in (0, 1). :param quantity: ``"acceleration"``, ``"velocity"`` or ``"displacement"``. :return: ``(force, response)``, one record each of 4096 samples at 4096 Hz. """ fs, n, sigma_t = ISO7626_5_FS_HZ, ISO7626_5_SAMPLES, ISO7626_5_PULSE_SIGMA_S t = np.arange(n) / fs omega_n = 2.0 * math.pi * natural_frequency_hz pole = complex( -damping_ratio * omega_n, omega_n * math.sqrt(1.0 - damping_ratio**2) ) residue = 1.0 / (mass_kg * (pole - pole.conjugate())) force = peak_n * np.exp(-((t - pulse_time_s) ** 2) / (2.0 * sigma_t**2)) argument = -(t - pulse_time_s + pole * sigma_t**2) / (sigma_t * math.sqrt(2.0)) integral = ( peak_n * np.exp(pole * (t - pulse_time_s)) * np.exp(pole**2 * sigma_t**2 / 2.0) * sigma_t * math.sqrt(math.pi / 2.0) * erfc(argument) ) response = { "displacement": 2.0 * np.real(residue * integral), "velocity": 2.0 * np.real(residue * pole * integral), "acceleration": 2.0 * np.real(residue * pole**2 * integral) + force / mass_kg, }[quantity] return force, np.asarray(response, dtype=np.float64) # --------------------------------------------------------------------------- # ISO 10846-4:2003 (BS EN ISO 10846-4:2003) and ISO 10846-5:2008 (BS EN # ISO 10846-5:2009). Neither part prints a worked example, so the rows are # closed forms held against the numbers the pages do print, read on the # rasterized pages: # - -4 Formula (11), PDF p. 38 (folio 28), and -5 Formula (6), PDF p. 25 # (folio 17): "a minimum of n = 5 frequencies" per one-third-octave band. # - -4 Inequality (3), PDF p. 30 (folio 20): m0 <= 0,06 x 10^(LF2/20) / # 10^(La2/20) kg, and its NOTE 1: |LFb - LF2| <= 0,5 dB (printed "05 dB"). # - -4 Inequality (5), PDF p. 31 (folio 21): |20 lg(m2,eff/m2)| <= 1 dB, # deviations below 40 Hz ignored (folio 23). # - -5 Inequalities (1) and (2) and 6.2, PDF p. 20 (folio 12): 20 dB, 15 dB, # and f_UL 2 dB below the 1 Hz to 20 Hz value; Formula (7), folio 17: # within 2 dB for f <= f_UL. # - -5 Table B.1 and B.3.4 to B.3.6, PDF pp. 32-33 (folios 24-25): 0,3, 0,5, # p/sqrt(3), 0,3, 1,2, 0,5 dB, the last three printed as 1/(2 sqrt 3), # 2/sqrt 3 and 1,5/(2 sqrt 3); (B.3) U = 2u. # --------------------------------------------------------------------------- ISO10846_MIN_FREQUENCIES_PER_BAND = 5 # -4 F(11), -5 F(6) ISO10846_4_OUTPUT_MASS_FACTOR = 0.06 # -4 Inequality (3) ISO10846_4_NOTE1_BIAS_DB = 0.5 # -4 6.2 NOTE 1, printed to one decimal ISO10846_4_EFFECTIVE_MASS_TOL_DB = 1.0 # -4 Inequality (5) ISO10846_5_DRIVING_POINT_TOL_DB = 2.0 # -5 6.2 and Formula (7) ISO10846_5_BLOCKED_OUTPUT_DB = 20.0 # -5 Inequality (1) ISO10846_5_UNWANTED_INPUT_DB = 15.0 # -5 Inequality (2) ISO10846_5_TABLE_B1_U_DB = (0.3, 0.5, 0.3, 1.2, 0.5) # without delta_rep ISO10846_5_COVERAGE_FACTOR = 2.0 # -5 Formula (B.3)