transition weighting factor for initialization
function weightingfactor input Real t_init; input Real length; input Real t; output Real y; end weightingfactor;