Dynamic hysteresis modeling and applications