In this work, we present a molecular simulation study on gas separation in polymeric membranes. Utilizing the dual control volume molecular dynamics (DCVMD) method, under both equilibrium and nonequilbrium conditions, combined with bulk N V T and N P T ensembles, we calculate transport and structural properties to deepen our understanding of the underlying molecular mechanisms governing gas transport within the polymer matrix.