Exact Boundary Conditions at an Artificial Boundary for Partial Differential Equations in Cylinders