A mathematical representation of a hydrotreating unit that predicts reactor, separation, heat-transfer, and recycle-hydrogen behavior. It supports design, troubleshooting, optimization, and safe operation as feed or operating conditions change.