Yarn-level cloth simulator