Simulation of combustion in a porous-medium diesel engine