  A charged compact star models have been determined for anisotropic fluid
distribution. We have solved the Einstein's- Maxwell field equations to
construct the charged compact star models by using radial pressure, metric
function $e^{\lambda}$ and electric charge function. The generic charged
anisotropic solution is verified by exploring different physical conditions
like, causality condition, mass-radius relation and stability of the solution
(via. adiabatic index, TOV equations and Herrera cracking concept). It is
observed that the present charged anisotropic compact star is compatible with
the star PSR 1937+21. However we also presented the EOS $\rho=f(p)$ for present
charged compact star model.
