A study on some solutions of Einsteins field equations with variable cosmological constant in general relativity