Numerical Modeling With A Moving Coordinate System; Application To Flow Through Porous Media