pub const COEFFICIENT_SHA256: &str =
"70581710e64cdb92a67094908c8dd6aa168a9f1fb7db1ef2ccc4ee557c70caf8";
#[derive(Clone, Copy, Debug, PartialEq, Eq)]
pub enum Shape {
Circular,
Box,
Other,
}
#[derive(Clone, Copy, Debug)]
pub struct Coefficients {
pub code: u8,
pub shape: Shape,
pub admitted: bool,
pub mitered: bool,
pub form: u8,
pub k: f64,
pub m: f64,
pub c: f64,
pub y: f64,
pub swmm_line: u16,
}
pub const VALUE_MISMATCHES: usize = 0;
#[rustfmt::skip]
pub const CODES: &[Coefficients] = &[
Coefficients { code: 1, shape: Shape::Circular, admitted: true, mitered: false, form: 1, k: 0.0098, m: 2.0, c: 0.0398, y: 0.67, swmm_line: 37 },
Coefficients { code: 2, shape: Shape::Circular, admitted: true, mitered: false, form: 1, k: 0.0018, m: 2.0, c: 0.0292, y: 0.74, swmm_line: 38 },
Coefficients { code: 3, shape: Shape::Circular, admitted: true, mitered: false, form: 1, k: 0.0045, m: 2.0, c: 0.0317, y: 0.69, swmm_line: 39 },
Coefficients { code: 4, shape: Shape::Circular, admitted: true, mitered: false, form: 1, k: 0.0078, m: 2.0, c: 0.0379, y: 0.69, swmm_line: 42 },
Coefficients { code: 5, shape: Shape::Circular, admitted: true, mitered: true, form: 1, k: 0.0210, m: 1.33, c: 0.0463, y: 0.75, swmm_line: 43 },
Coefficients { code: 6, shape: Shape::Circular, admitted: true, mitered: false, form: 1, k: 0.0340, m: 1.50, c: 0.0553, y: 0.54, swmm_line: 44 },
Coefficients { code: 7, shape: Shape::Circular, admitted: true, mitered: false, form: 1, k: 0.0018, m: 2.50, c: 0.0300, y: 0.74, swmm_line: 47 },
Coefficients { code: 8, shape: Shape::Circular, admitted: true, mitered: false, form: 1, k: 0.0018, m: 2.50, c: 0.0243, y: 0.83, swmm_line: 48 },
Coefficients { code: 9, shape: Shape::Box, admitted: true, mitered: false, form: 1, k: 0.026, m: 1.0, c: 0.0347, y: 0.81, swmm_line: 51 },
Coefficients { code: 10, shape: Shape::Box, admitted: true, mitered: false, form: 1, k: 0.061, m: 0.75, c: 0.0400, y: 0.80, swmm_line: 52 },
Coefficients { code: 11, shape: Shape::Box, admitted: true, mitered: false, form: 1, k: 0.061, m: 0.75, c: 0.0423, y: 0.82, swmm_line: 53 },
Coefficients { code: 12, shape: Shape::Box, admitted: true, mitered: false, form: 2, k: 0.510, m: 0.667, c: 0.0309, y: 0.80, swmm_line: 56 },
Coefficients { code: 13, shape: Shape::Box, admitted: true, mitered: false, form: 2, k: 0.486, m: 0.667, c: 0.0249, y: 0.83, swmm_line: 57 },
Coefficients { code: 14, shape: Shape::Box, admitted: true, mitered: false, form: 2, k: 0.515, m: 0.667, c: 0.0375, y: 0.79, swmm_line: 60 },
Coefficients { code: 15, shape: Shape::Box, admitted: true, mitered: false, form: 2, k: 0.495, m: 0.667, c: 0.0314, y: 0.82, swmm_line: 61 },
Coefficients { code: 16, shape: Shape::Box, admitted: true, mitered: false, form: 2, k: 0.486, m: 0.667, c: 0.0252, y: 0.865, swmm_line: 62 },
Coefficients { code: 17, shape: Shape::Box, admitted: true, mitered: false, form: 2, k: 0.545, m: 0.667, c: 0.04505, y: 0.73, swmm_line: 65 },
Coefficients { code: 18, shape: Shape::Box, admitted: true, mitered: false, form: 2, k: 0.533, m: 0.667, c: 0.0425, y: 0.705, swmm_line: 66 },
Coefficients { code: 19, shape: Shape::Box, admitted: true, mitered: false, form: 2, k: 0.522, m: 0.667, c: 0.0402, y: 0.68, swmm_line: 67 },
Coefficients { code: 20, shape: Shape::Box, admitted: true, mitered: false, form: 2, k: 0.498, m: 0.667, c: 0.0327, y: 0.75, swmm_line: 68 },
Coefficients { code: 21, shape: Shape::Box, admitted: true, mitered: false, form: 2, k: 0.497, m: 0.667, c: 0.0339, y: 0.803, swmm_line: 71 },
Coefficients { code: 22, shape: Shape::Box, admitted: true, mitered: false, form: 2, k: 0.493, m: 0.667, c: 0.0361, y: 0.806, swmm_line: 72 },
Coefficients { code: 23, shape: Shape::Box, admitted: true, mitered: false, form: 2, k: 0.495, m: 0.667, c: 0.0386, y: 0.71, swmm_line: 73 },
Coefficients { code: 24, shape: Shape::Box, admitted: true, mitered: false, form: 2, k: 0.497, m: 0.667, c: 0.0302, y: 0.835, swmm_line: 76 },
Coefficients { code: 25, shape: Shape::Box, admitted: true, mitered: false, form: 2, k: 0.495, m: 0.667, c: 0.0252, y: 0.881, swmm_line: 77 },
Coefficients { code: 26, shape: Shape::Box, admitted: true, mitered: false, form: 2, k: 0.493, m: 0.667, c: 0.0227, y: 0.887, swmm_line: 78 },
Coefficients { code: 27, shape: Shape::Other, admitted: false, mitered: false, form: 1, k: 0.0083, m: 2.0, c: 0.0379, y: 0.69, swmm_line: 81 },
Coefficients { code: 28, shape: Shape::Other, admitted: false, mitered: false, form: 1, k: 0.0145, m: 1.75, c: 0.0419, y: 0.64, swmm_line: 82 },
Coefficients { code: 29, shape: Shape::Other, admitted: false, mitered: false, form: 1, k: 0.0340, m: 1.5, c: 0.0496, y: 0.57, swmm_line: 83 },
Coefficients { code: 30, shape: Shape::Other, admitted: false, mitered: false, form: 1, k: 0.0100, m: 2.0, c: 0.0398, y: 0.67, swmm_line: 86 },
Coefficients { code: 31, shape: Shape::Other, admitted: false, mitered: false, form: 1, k: 0.0018, m: 2.5, c: 0.0292, y: 0.74, swmm_line: 87 },
Coefficients { code: 32, shape: Shape::Other, admitted: false, mitered: false, form: 1, k: 0.0045, m: 2.0, c: 0.0317, y: 0.69, swmm_line: 88 },
Coefficients { code: 33, shape: Shape::Other, admitted: false, mitered: false, form: 1, k: 0.0100, m: 2.0, c: 0.0398, y: 0.67, swmm_line: 91 },
Coefficients { code: 34, shape: Shape::Other, admitted: false, mitered: false, form: 1, k: 0.0018, m: 2.5, c: 0.0292, y: 0.74, swmm_line: 92 },
Coefficients { code: 35, shape: Shape::Other, admitted: false, mitered: false, form: 1, k: 0.0095, m: 2.0, c: 0.0317, y: 0.69, swmm_line: 93 },
Coefficients { code: 36, shape: Shape::Other, admitted: false, mitered: false, form: 1, k: 0.0083, m: 2.0, c: 0.0379, y: 0.69, swmm_line: 96 },
Coefficients { code: 37, shape: Shape::Other, admitted: false, mitered: true, form: 1, k: 0.0300, m: 1.0, c: 0.0463, y: 0.75, swmm_line: 97 },
Coefficients { code: 38, shape: Shape::Other, admitted: false, mitered: false, form: 1, k: 0.0340, m: 1.5, c: 0.0496, y: 0.57, swmm_line: 98 },
Coefficients { code: 39, shape: Shape::Other, admitted: false, mitered: false, form: 1, k: 0.0300, m: 1.5, c: 0.0496, y: 0.57, swmm_line: 101 },
Coefficients { code: 40, shape: Shape::Other, admitted: false, mitered: false, form: 1, k: 0.0088, m: 2.0, c: 0.0368, y: 0.68, swmm_line: 102 },
Coefficients { code: 41, shape: Shape::Other, admitted: false, mitered: false, form: 1, k: 0.0030, m: 2.0, c: 0.0269, y: 0.77, swmm_line: 103 },
Coefficients { code: 42, shape: Shape::Other, admitted: false, mitered: false, form: 1, k: 0.0300, m: 1.5, c: 0.0496, y: 0.57, swmm_line: 106 },
Coefficients { code: 43, shape: Shape::Other, admitted: false, mitered: false, form: 1, k: 0.0088, m: 2.0, c: 0.0368, y: 0.68, swmm_line: 107 },
Coefficients { code: 44, shape: Shape::Other, admitted: false, mitered: false, form: 1, k: 0.0030, m: 2.0, c: 0.0269, y: 0.77, swmm_line: 108 },
Coefficients { code: 45, shape: Shape::Other, admitted: false, mitered: false, form: 1, k: 0.0083, m: 2.0, c: 0.0379, y: 0.69, swmm_line: 111 },
Coefficients { code: 46, shape: Shape::Other, admitted: false, mitered: true, form: 1, k: 0.0300, m: 1.0, c: 0.0473, y: 0.75, swmm_line: 112 },
Coefficients { code: 47, shape: Shape::Other, admitted: false, mitered: false, form: 1, k: 0.0340, m: 1.5, c: 0.0496, y: 0.57, swmm_line: 113 },
Coefficients { code: 48, shape: Shape::Other, admitted: false, mitered: false, form: 2, k: 0.534, m: 0.555, c: 0.0196, y: 0.90, swmm_line: 116 },
Coefficients { code: 49, shape: Shape::Other, admitted: false, mitered: false, form: 2, k: 0.519, m: 0.64, c: 0.0210, y: 0.90, swmm_line: 117 },
Coefficients { code: 50, shape: Shape::Other, admitted: false, mitered: false, form: 2, k: 0.536, m: 0.622, c: 0.0368, y: 0.83, swmm_line: 120 },
Coefficients { code: 51, shape: Shape::Other, admitted: false, mitered: false, form: 2, k: 0.5035, m: 0.719, c: 0.0478, y: 0.80, swmm_line: 121 },
Coefficients { code: 52, shape: Shape::Other, admitted: false, mitered: false, form: 2, k: 0.547, m: 0.80, c: 0.0598, y: 0.75, swmm_line: 122 },
Coefficients { code: 53, shape: Shape::Other, admitted: false, mitered: false, form: 2, k: 0.475, m: 0.667, c: 0.0179, y: 0.97, swmm_line: 125 },
Coefficients { code: 54, shape: Shape::Other, admitted: false, mitered: false, form: 2, k: 0.56, m: 0.667, c: 0.0446, y: 0.85, swmm_line: 128 },
Coefficients { code: 55, shape: Shape::Other, admitted: false, mitered: false, form: 2, k: 0.56, m: 0.667, c: 0.0378, y: 0.87, swmm_line: 129 },
Coefficients { code: 56, shape: Shape::Other, admitted: false, mitered: false, form: 2, k: 0.50, m: 0.667, c: 0.0446, y: 0.65, swmm_line: 132 },
Coefficients { code: 57, shape: Shape::Other, admitted: false, mitered: false, form: 2, k: 0.50, m: 0.667, c: 0.0378, y: 0.71, swmm_line: 133 },
];