Computer-aided simulation