Piecewise linear B(H) interpolation
function BH_Approx extends Modelica.Icons.Function; input Integer N "Count of nodes"; input SI.MagneticFieldStrength Hk[N] "Field strength coefficients"; input SI.MagneticFluxDensity Bk[N] "Flux density coefficients"; input SI.MagneticFieldStrength H "Field strength in ferromagnetic flux tube element"; output SI.MagneticFluxDensity B "Flux density in ferromagnetic flux tube element"; end BH_Approx;