yarn simulation