  Geometric phase in the wave function is important with regard to quantum
non-locality and adiabatic evolution. We study the confinement of a particle by
three-dimensional isotropically moving walls, of relevance to experimental
trapping techniques, via a proposed approach that explains the physical origin
of the geometric Dirac phase induced in the wave function. This phase depends
only on the relative rate of change of the spatial scale factor. The approach
also yields the class of external potentials that replicate adiabatic evolution
in finite time. As illustrative examples, we consider uniform and accelerating
walls, and the case where the Dirac phase is due to cosmic expansion.
