Numerical simulation of a two-stroke marine diesel engine