This internal function calculates the temperature dependent energy gap based on the actual temperature, and two coefficients given as input to the function.
function energyGapDepTemp extends Modelica.Icons.Function; input SI.Temp_K temp "Temperature"; output SI.GapEnergy ret "Output Gap Energy"; end energyGapDepTemp;