Text this: Modeling water and hydrogen networks with partitioning regeneration units