function test by weixuan_yu | SimScale