A more generalized analysis of hydrogen trapping