Steady-State simulation code for positive displacement machines