Modeling hydrogen transport by dislocations