half thread - copy by rszoeke | SimScale