Dimensions of a submarine diesel as function of engine power and speed