In this paper, we examine the behavior of the charged compact star model PSR J0740+6620. To achieve this, we solve the Einstein field equations within an anisotropic framework. We model the star’s structure using a Gaussian density profile. Our analysis focuses on assessing the stability of the star and verifying whether its physical properties are consistent with the conditions required for equilibrium. In particular, we consider the Reissner-Nordstr o ¨ m spacetime configuration as an outer line element for equilibrium conditions. The important aspect of the work is to investigate the acceptable or non-acceptable regions for radial and tangential sound speeds using the contour plot. This helps us to choose the domain of free parameters involved in our work for further analysis. Conclusively, charged compact stars with a Gaussian density profile do exist in general relativity with Reissner-Nordstr o ¨ m exterior geometry.
Asghar et al. (Sun,) studied this question.