The goal of this procedure is to easily and rapidly produce a microfluidic device with customizable geometry and resistance to swelling by organic fluids for oil recovery studies. A polydimethylsiloxane mold is first generated, and then used to cast the epoxy-based device. A representative displacement study is reported.