Study of the k-essence Scalar Field in the context of inhomogeneous cosmology