validate - Copy by hunyu | SimScale