Thermo-fluid model of a batch hydrothermal carbonization reactor