Tissues.swift (1340B)
1 // SPDX-License-Identifier: GPL-2.0-only 2 import Foundation 3 4 /// The Bühlmann ZHL-16C coefficients, for nitrogen and helium, as Subsurface has them (`core/deco.cpp`, GPL-2.0). 5 enum Tissues { 6 static let count = 16 7 static let n2A: [Double] = [1.1696, 1.0, 0.8618, 0.7562, 0.62, 0.5043, 0.441, 0.4, 8 0.375, 0.35, 0.3295, 0.3065, 0.2835, 0.261, 0.248, 0.2327] 9 static let n2B: [Double] = [0.5578, 0.6514, 0.7222, 0.7825, 0.8126, 0.8434, 0.8693, 0.8910, 10 0.9092, 0.9222, 0.9319, 0.9403, 0.9477, 0.9544, 0.9602, 0.9653] 11 static let n2HalfLife: [Double] = [5.0, 8.0, 12.5, 18.5, 27.0, 38.3, 54.3, 77.0, 12 109.0, 146.0, 187.0, 239.0, 305.0, 390.0, 498.0, 635.0] 13 static let heA: [Double] = [1.6189, 1.383, 1.1919, 1.0458, 0.922, 0.8205, 0.7305, 0.6502, 14 0.595, 0.5545, 0.5333, 0.5189, 0.5181, 0.5176, 0.5172, 0.5119] 15 static let heB: [Double] = [0.4770, 0.5747, 0.6527, 0.7223, 0.7582, 0.7957, 0.8279, 0.8553, 16 0.8757, 0.8903, 0.8997, 0.9073, 0.9122, 0.9171, 0.9217, 0.9267] 17 static let heHalfLife: [Double] = [1.88, 3.02, 4.72, 6.99, 10.21, 14.48, 20.53, 29.11, 18 41.20, 55.19, 70.69, 90.34, 115.29, 147.42, 188.24, 240.03] 19 }