The men’s jail is a Category C prison and young offender institution.
The visit was part of this year’s Addiction Awareness Week.
The event aims to highlight the vast array of people who are affected by addiction.
The Princess is a patron of the addiction charity, Forward Trust.