We present a new class of singularity-free interior solutions for anisotropic compact stars with spherical symmetry. By prescribing a specific pressure anisotropy, exact solutions to Einstein’s field equations are obtained and matched smoothly to the Schwarzschild exterior metric. The model parameters are determined using the boundary condition of vanishing radial pressure. The physical viability of the model is demonstrated through an analysis of the pulsar 4U1820-30, characterized by a radius of 9. 1 km and mass M=1. 58M_.
Rinkal Patel (Sun,) studied this question.