Introduction

Quantum mechanics (QM) in curved space-time is a rich and intricate field that investigates how quantum phenomena are shaped by the curvature of space-time1. This interdisciplinary area bridges the fundamental principles of general relativity2 and quantum mechanics3, offering profound insights into the behavior of quantum particles in non-trivial geometries. While in flat space-time, quantum mechanics follows a well-defined framework governed by Minkowski geometry, the introduction of curvature imposes additional complexities that significantly alter the quantum dynamics. The presence of gravitational fields necessitates modifications to fundamental wave equations, ensuring consistency with curved space-time. For instance, in the case of spin-0 particles, the Klein-Gordon equation must be adapted by replacing partial derivatives with covariant derivatives, allowing for a proper description of particle motion in a gravitationally curved background4. In extreme scenarios, such as black hole physics, quantum effects in curved space-time give rise to striking phenomena like Hawking radiation, where quantum field fluctuations near an event horizon result in the emission of particles5,6,7. This phenomenon plays a crucial role in the ongoing effort to reconcile quantum mechanics with general relativity, offering insights into the behavior of quantum fields in strong gravitational environments. More broadly, the study of quantum mechanics in curved space-time serves as a stepping stone toward a deeper understanding of quantum gravity, illuminating the fundamental nature of space-time at the quantum level.

Among the most intriguing aspects of quantum mechanics in curved space-time is the role of topological defects, such as cosmic strings8,9,10,11. These one-dimensional structures, predicted by grand unified theories (GUTs), arise from phase transitions in the early universe and create localized curvature effects in space-time12,13,14,15,16. Cosmic strings exhibit a conical geometry that modifies the propagation of quantum wave functions, leading to phase shifts and alterations in energy spectra. Numerous authors have been studied the cosmic string in general relativity as well as in quantum mechanical systems (see, for example, Refs.17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35). This behavior shares a striking resemblance to the Aharonov-Bohm effect, where a charged particle moving around a magnetic flux acquires a measurable phase shift without experiencing a local force. The space-time around a cosmic string is described by the metric36,37,38:

$$\begin{aligned} ds^2 = -dt^2 + dr^2 + (1 - 4\, G\, \mu )^2\, r^2\, d\phi ^2 + dz^2, \end{aligned}$$
(1)

where G is the Newtonian gravitational constant, and \(\mu\) represents the mass per unit length of the string. The conical structure introduces a deficit angle, \(\Delta \phi = 2\pi (1 - \alpha ) = 8\,\pi \, G \mu\), which alters particle trajectories, affects wave functions, and influences light propagation near the string. This geometric deformation leads to measurable gravitational lensing effects and modifies quantum interference patterns. Additionally, cosmic strings exhibit strong analogies with condensed matter systems, particularly dislocations in crystalline structures, where similar topological defects influence electron wave functions. This deep connection between high-energy physics and condensed matter theory underscores the universality of topological effects in nature36,37. Investigating quantum mechanics in curved space-time, particularly in the presence of topological defects, provides valuable insights into the fundamental interplay between quantum theory and gravitational effects, advancing our understanding of both quantum field theory and astrophysical phenomena.

In the weak-field approximation, the gravitational influence of a cosmic string is typically encapsulated in the metric39, which provides a more detailed understanding of how space-time curvature affects particle interactions and quantum fields40. When a quantum particle interacts with a cosmic string, the conical geometry of space-time alters the particle’s wave function, leading to unique phase shifts and modifications in its energy spectrum, effects that are distinct from those observed in flat space-time and directly arise from the curvature induced by the cosmic string41. This interaction serves as an excellent theoretical laboratory for exploring the intersection of quantum field theory and general relativity, offering valuable insights into how particles behave in non-trivial geometries and how the curvature of space-time influences quantum states. Beyond their role in fundamental physics, cosmic strings are also significant in cosmology, as they are expected to have formed during symmetry-breaking phase transitions in the early universe, making them potential candidates for explaining certain large-scale structures of the universe42. As such, these topological defects not only serve as intriguing objects for theoretical investigations but also provide crucial insights into the nature of space-time itself. The study of cosmic strings and their effects on quantum particles enhances our understanding of quantum fields in curved space-time, revealing how quantum phenomena manifest in extreme conditions such as those present in the early universe43,44. Additionally, these investigations contribute to a broader comprehension of how fundamental particles and fields behave in regions where the space-time fabric deviates significantly from flatness, thereby pushing the frontiers of both quantum mechanics and general relativity45,46. By studying the impact of cosmic strings on quantum systems, researchers can further explore the nature of quantum-gravitational interactions, potentially uncovering new theoretical frameworks that bridge the gap between quantum field theory and general relativity47,48,49,50.

The q-Woods-Saxon potential51 also known as the modified Woods-Saxon potential, represents an enhancement of the traditional Woods-Saxon potential52, which is used to describe approximately the forces applied on each nucleon, in the nuclear shell model for the structure of the nucleus. The traditional Woods-Saxon potential effectively models the attractive forces that bind nucleons within an atomic nucleus53,54, providing a simple yet powerful description of nuclear binding; however, it has some limitations in fitting experimental data with high precision, particularly in capturing the finer details of nuclear interactions55. To overcome these limitations, the q-Woods-Saxon potential introduces additional parameters that allow for more precise control over the depth, range, and shape of the potential well56,57, enabling a more accurate representation of the nuclear forces that govern the behavior of nucleons and making it possible to model quantum states and energy levels with greater precision58,59,60. One of the key advantages of the q-Woods-Saxon potential is its ability to provide a more detailed and flexible description of the internal structure of a nucleus; by incorporating adjustable parameters, this potential better captures the spatial distribution of bound states within a nucleus, influencing both the position and momentum distributions of nucleons. This more refined modeling is crucial for accurately predicting nuclear phenomena, such as the behavior of nuclei under different energy states, nuclear reactions, and decay processes, and, for instance, the q-Woods-Saxon potential provides a more precise description of the energy spectra and transition probabilities of nucleons within a nucleus. This, in turn, improves the accuracy of predictions related to reaction rates in processes like nuclear fusion and fission, which are fundamental to both energy production and the understanding of stellar processes61.

The q-Woods-Saxon potential offers enhanced capabilities that make it an indispensable tool for theoretical models striving to replicate experimental data with high fidelity. Unlike the traditional Woods-Saxon potential, it accounts for a wider range of physical effects, including higher-order interactions and intricate nuclear configurations, allowing for a more precise depiction of nuclear structure and dynamics62. This added flexibility makes it particularly useful in describing various nuclear phenomena, such as exotic isotopes and extreme nuclear conditions, further solidifying its importance in nuclear research. Moreover, the q-Woods-Saxon potential plays a pivotal role in nuclear astrophysics, where it aids in understanding the intricate forces at play within stellar environments, especially in the context of nucleosynthesis. By providing a more refined and comprehensive framework for nuclear interactions, it enhances models that describe element formation in stars, the energetic processes driving supernovae, and the complex matter interactions within neutron stars and other astrophysical events. Its ability to refine energy levels and reaction rates not only improves the accuracy of theoretical predictions but also opens new pathways for exploring fundamental nuclear forces and their broader implications for the universe. Moreover, the research presented in Ref.63 investigates a cosmological framework where a scalar field, influenced by a Woods-Saxon-like potential, plays a pivotal role in explaining the accelerated expansion of the universe. Quintessence, a dynamic scalar field, offers an intriguing alternative to the traditional cosmological constant in dark energy models. In this context, the Woods-Saxon potential-originally a tool in nuclear physics for describing the distribution of nucleons within an atomic nucleus-is repurposed to model the complex behavior of dark energy. This innovative approach provides a more flexible and evolving explanation for the universe’s acceleration, standing in stark contrast to the fixed nature of the cosmological constant in the widely accepted \(\Lambda\)CDM model. By leveraging the adaptability of the Woods-Saxon potential, this model introduces a dynamic framework that could potentially yield new insights into the nature of dark energy and the evolution of the cosmos.

Our main motivation in the current study is to investigate the effect of conical geometry of four-dimensional cosmic string space-time and a modified Woods-Saxon (WS) potential on spin-0 scalar particles, analyzing how these factors influence the particle dynamics. To achieve this, we solve the Klein-Gordon equation within the context of (3+1)-dimensional cosmic string space-time background, incorporating the modified WS potential. Additionally, our investigation includes the influence of Aharonov-Bohm (AB) flux on the quantum system, where the scalar quantum particles experiences zero magnetic field \(\vec {B}=\vec {\nabla }\times \vec {A}=\textbf{0}\). The radial equation is solved using special functions, like Gaussian hypergeometric function, while the angular solutions involved conical spherical harmonics that depend on the cosmic string parameter. Our findings demonstrate that the presence of the cosmic string, the deformation parameter on WS-potential, and the AB-flux collectively impact the behavior of scalar particles, leading to significant modifications in the results. Specifically, these factors alter the energy spectrum and wave functions of the particles and shifted the results compared Minkowski flat space.

While this study focus into the quantum dynamics of spin-0 scalar particles in a cosmic string space-time under a modified Woods-Saxon potential and quantum flux, several limitations should be noted. First, the background geometry is modeled by a static, axially symmetric space-time metric, where the cosmic string parameter \(\beta \in (0,1]\) encodes the angular deficit introduced by the cosmic string. This simplification effectively models a topological defect but neglects dynamical or non-static effects, such as cosmic string oscillations or back-reaction from the scalar field. Additionally, we assumes equal scalar and vector potentials, limiting the generality of the results. One may consider equal magnitude of scalar and vector potentials but opposite in sign. The fourth-order energy equation derived from the radial wave equation cannot be solved analytically, necessitating numerical computations for the energy spectrum, which may obscure certain physical insights. Future work may address these issues by exploring more general space-time backgrounds, varying scalar-vector couplings, or alternative numerical approaches that yield broader physical insights.

This paper is summarized as follows: In section Dynamics of spin-0 scalar particle: The Klein-Gordon Equation, we solve the Klein-Gordon equation in a cosmic string space-time with a modified WS-potential under the influence of quantum flux field. We tested the influence of the cosmic string parameter on the Woods-Saxon potential and showed how topological defects modify the effective potential experienced by scalar particles. The dependence of the potential on the string parameter introduces a geometric contribution that alters the particle dynamics, providing deeper insight into quantum behavior in curved spacetimes with topological features. In section Numerical Results and Discussions, we analyzed the energy eigenvalue and presented some numerical results. In section Conclusions, we present our conclusions. In this work, we use natural units, \(\hbar =c=G=1\).

Dynamics of spin-0 scalar particle: The klein-gordon equation

In flat Minkowski space-time, the spin-0 scalar particles are represented by the usual Klein-Gordon equation. This equation can be generalized to the curved space-time case. In order to determine the generalization of this relativistic wave equation, one may replace the ordinary derivatives by covariant derivative64,65,66 and the resultant wave equation is

$$\begin{aligned} \Bigg [-\frac{1}{\sqrt{-g}}\,D_{\mu }\,\left( \sqrt{-g}\,g^{\mu \nu }\,D_{\nu }\right) +M^2\Bigg ]\,\Psi (x^{\mu })=0\quad (\mu ,\nu =0,\cdots ,3), \end{aligned}$$
(2)

where M is the rest mass of the particles, \(D_{\mu } \equiv (\partial _{\mu }-i\,e\,A_{\mu })\) with e is the electric charge, \(\partial _{\mu }\) is the partial derivative, \(A_{\mu }\) is the electromagnetic four-vector potential that is introduced through minimal coupling, and \(x^{\mu }\) is a four-vector. Here \(g^{\mu \nu }\) is the inverse of the metric tensor \(g_{\mu \nu }\) and \(g=\text{ det }(g_{\mu \nu })\) is the determinant.

An arbitrary scalar potential S(tr) may be taken into account by making a modification in the mass term as \(M \rightarrow M+S(t,r)\)64,65. Substituting this modified mass term into (2) we obtain the following differential equation:

$$\begin{aligned} \Bigg [-\frac{1}{\sqrt{-g}}\,D_{\mu }\,\left( \sqrt{-g}\,g^{\mu \nu }\,D_{\nu }\right) +(M+S(t,r))^2\Bigg ]\,\Psi (x^{\mu })=0. \end{aligned}$$
(3)

In this work, we focus on quantum motions of spin-0 scalar particles within the background of topological defect produced by a cosmic string in the presence of a static scalar (S(r)) and vector (V(r)) potentials. In the “Schwarzschild” coordinate \((t, r, \theta , \phi )\), the line-element describing a cosmic string space-time is represented by64,67,68,69,70,71,72,73,74

$$\begin{aligned} & ds^2=-dt^2+dr^2+r^2\,(d\theta ^2+\beta ^2\,\sin ^2 \theta \,d\phi ^2),\nonumber \\ & -\infty< t < +\infty ,\quad r\ge 0,\quad 0 \le \theta \le \pi ,\quad \phi \in [0,2\,\pi ), \end{aligned}$$
(4)

where \(\beta\) is the cosmic string parameter which produces an angular deficit by an amount \(\Delta \phi =2\,\pi \,(1-\beta )\). In the limit \(\beta =1\), there is zero angular deficit and the space-time reduces to flat Minkowski space.

In this analysis, we consider the following electromagnetic potential64,74 (please see Eq. (33) in Ref.74 where \(a' \rightarrow \beta\) in our case):

$$\begin{aligned} A_{\mu }=(-A_0, \vec {A}),\quad \quad \vec {A}=(A_r, A_{\theta }, A_{\phi })=(0,0,A_{\phi }),\quad \quad A_{\phi }=\frac{\Phi _{AB}}{2\,\pi \,\beta \,r\,\sin \theta }, \end{aligned}$$
(5)

where \(A_0=V\) is called temporal component of the potential, and \(\Phi _{AB}\) is the flux field. There is zero external magnetic field, \(\vec {B}=\vec {\nabla } \times \vec {A}=0\), experience by the quantum particles. However, the presence of flux field causes a shift in the eigenvalue solution of a quantum mechanical problem and we discuss it in the current study.

The total wave function can be written as \((x^{\mu }=(t, r, \theta , \phi ))\)

$$\begin{aligned} \Psi (t, r, \theta , \phi )=\exp (-i\,E\,t)\,Y (\theta , \phi )\,\psi (r), \end{aligned}$$
(6)

where E is the particle’s energy, \(Y(\theta , \phi )\) is the conical spherical harmonics (will explain later on) and \(\psi (r)\) is the radial wave function.

Therefore, the wave equation (3) using Eq. (5) and (6) can explicitly be written as follows:

$$\begin{aligned} \frac{1}{r^2}\,\frac{d}{dr}\left( r^2\,\frac{d\psi }{dr}\right) +\left[ (E-V)^2-(M+S)^2-\frac{\ell _{(\beta )}\,(\ell _{(\beta )}+1)}{r^2}\right] \,\psi (r)=0, \end{aligned}$$
(7)

where we have used the following relations65,75,76,77,78,79

$$\begin{aligned} & \Bigg [\frac{1}{\sin \theta }\left( \sin \theta \,\frac{d}{d\theta }\right) +\frac{1}{\beta ^2\,\sin ^2\theta }\,\left( \frac{d}{d\phi }-i\,\Phi \right) ^2\Bigg ]\,Y^{m_{(\beta )}}_{\ell _{(\beta )}}(\theta ,\phi )=-\ell _{(\beta )}\,(\ell _{(\beta )}+1)\,Y^{m_{(\beta )}}_{\ell _{(\beta )}},\nonumber \\ & \ell _{(\beta )}=\ell +|m'|\,\left( \frac{1}{\beta }-1\right) ,\quad m'=m-\Phi ,\quad \Phi =\frac{\Phi _{AB}}{\Phi _0},\quad \Phi _0=2\,\pi \,e^{-1},\nonumber \\ & Y^{m_{(\beta )}}_{\ell _{(\beta )}}=\exp (i\,m\,\phi )\,P^{m_{(\beta )}}_{\ell _{(\beta )}}(\cos \theta ). \end{aligned}$$
(8)

Here \(Y^{m_{(\beta )}}_{\ell _{(\beta )}}(x)\) is called the conical spherical harmonics.

In this analysis, we consider equal scalar and temporal potential, that is \(S=V\). In that case, the above equation (7) becomes

$$\begin{aligned} \frac{1}{r^2}\,\frac{d}{dr}\left( r^2\,\frac{d\psi }{dr}\right) +\left[ E^2-M^2-2\,(E+M)\,V-\frac{\ell _{(\beta )}\,(\ell _{(\beta )}+1)}{r^2}\right] \,\psi (r)=0. \end{aligned}$$
(9)

Finally transforming to a new function via

$$\begin{aligned} \psi (r)=\frac{R(r)}{r} \end{aligned}$$
(10)

into the Eq. (9), we finds the following second-order differential equation

$$\begin{aligned} \left[ \frac{d^2}{dr^2}+E^2-M^2-2\,(E+M)\,V-\frac{\ell _{(\beta )}\,(\ell _{(\beta )}+1)}{r^2}\right] \,R(r)=0, \end{aligned}$$
(11)

The Woods-Saxon potential52 is frequently used to explain the neutron interactions with a heavy nucleus. The general form of Wood Saxon potential is as determined as

$$\begin{aligned} V_{WS}(r)=-\frac{V_0}{1+\exp (r-r_0)/\delta }, \end{aligned}$$
(12)

where \(V_0\) (having dimension of energy) represents the potential well depth, \(r_0\) is a measure of the nuclear size, and \(\delta\) determines the diffuseness of the nuclear surface (or is a length representing the surface thickness of the nucleus).

A modified form of this WS-potential is considered in80 given by

$$\begin{aligned} V(r)=-V_0\,\frac{\exp (r/\delta )}{\left[ 1+\exp \{(r-r_0)/\delta \}\right] ^2}, \end{aligned}$$
(13)

where \(r \in [0, \infty )\) is the distance between the target core and projectile. Setting \(\exp (-r_0/\delta )=\frac{1}{q}\), one can obtain the modified WS-potential as follows80,81:

$$\begin{aligned} V(r)=\frac{-q\,V_0}{4\,\cosh ^{2}\left( \frac{r}{2\,\delta }\right) }. \end{aligned}$$
(14)

Substituting potential (14) into the radial equation (11), one can write the differential equation as follows:

$$\begin{aligned} R''(r)+\left[ E^2-M^2-\frac{\ell _{(\beta )}\,(\ell _{(\beta )}+1)}{r^2}+\frac{q\,V_0\,(E+M)}{2}\,\frac{1}{\cosh ^{2}\left( \frac{r}{2\,\delta }\right) }\right] \,R(r)=0, \end{aligned}$$
(15)

Equation (15) can not solved easily due to the presence of hyperbolic term. Therefore, we choose a suitable approximation into the centrifugal term \(\frac{1}{r^2}\) called Greene-Aldrich approximation82, where \(\frac{1}{r^2}=\frac{4\,d^2}{(e^{d\,r}-e^{-d\,r})^2}\). This approximation has been employed many authors in solving quantum mechanical problems under exponential potential of various kinds (see, for examples,83,84,85). Therefore, we can write the centrifugal term \(\frac{1}{r^2}\) in terms of hyperbolic function as follows:

$$\begin{aligned} \frac{1}{r^2} =\frac{1}{4\,\delta ^2\,\sinh ^{2}\left( \frac{r}{2\,\delta }\right) }. \end{aligned}$$
(16)

Using approximation (16), thus, we can rewrite equation (15) as follows:

$$\begin{aligned} R''(r)+\left[ E^2-M^2+\frac{q\,V_0\,(E+M)}{2}\,\frac{1}{\cosh ^{2}\left( \frac{r}{2\,\delta }\right) }-\frac{\ell _{(\beta )}\,(\ell _{(\beta )}+1)}{4\,\delta ^2}\,\frac{1}{\sinh ^{2}\left( \frac{r}{2\,\delta }\right) }\right] \,R(r)=0. \end{aligned}$$
(17)

The above differential equation can be expressed as \(R''(r)+\left( \tilde{E}^2-V_\text {eff}(r)\right) \,R(r)=0\), where \(\tilde{E}^2=E^2-M^2\) and \(V_\text {eff}(r)\) is the effective potential of the system given by

$$\begin{aligned} V_\text {eff} (r)= & \frac{\ell _{(\beta )}\,(\ell _{(\beta )}+1)}{4\,\delta ^2}\,\frac{1}{\sinh ^{2}\left( \frac{r}{2\,\delta }\right) }-\frac{qV_0(E+M)}{2}\frac{1}{\cosh ^{2}\left( \frac{r}{2\,\delta }\right) },\nonumber \\= & \frac{1}{4\delta ^2}\left( \ell +\frac{|m-\Phi |}{\beta }-|m|\right) \left( \ell +\frac{|m-\Phi |}{\beta }-|m|+1\right) \frac{1}{\sinh ^{2}\left( \frac{r}{2\,\delta }\right) }-\frac{qV_0(E+M)}{2}\frac{1}{\cosh ^{2}\left( \frac{r}{2\,\delta }\right) }. \end{aligned}$$
(18)

From the expression given in Eq. (18), it is evident that the effective potential (\(V_\text {eff}\)) of the system depends on various factors. These include the cosmic string parameter \(\beta\), magnetic quantum flux \(\Phi\), arbitrary parameter q, strength of the potential \(V_0\), mass of quantum particles M, and changes with the quantum numbers \(\{\ell , m\}\), as well as the surface thickness \(\delta\).

In the limit \(\Phi =0\), corresponding to the absence of the magnetic flux, the effective potential given in Eq. (18) simplifies to:

$$\begin{aligned} V_\text {eff} (r)=\frac{1}{4\delta ^2}\left( \ell +\frac{|m|}{\beta }-|m|\right) \left( \ell +\frac{|m|}{\beta }-|m|+1\right) \frac{1}{\sinh ^{2}\left( \frac{r}{2\,\delta }\right) }-\frac{qV_0(E+M)}{2}\frac{1}{\cosh ^{2}\left( \frac{r}{2\,\delta }\right) }. \end{aligned}$$
(19)

Moreover, in the limit \(\Phi =0\) (absence of the magnetic flux) and \(\beta =1\) (absence of the cosmic string), the effective potential given in Eq. (18) simplifies to:

$$\begin{aligned} V_\text {eff} (r)=\frac{\ell \,(\ell +1)}{4\,\delta ^2}\,\frac{1}{\sinh ^{2}\left( \frac{r}{2\,\delta }\right) }-\frac{q\,V_0\,(E+M)}{2}\frac{1}{\cosh ^{2}\left( \frac{r}{2\,\delta }\right) } \end{aligned}$$
(20)

which is similar to the expression obtained in Ref.80.

Defining the following parameters

$$\begin{aligned} \frac{\ell _{(\beta )}\,(\ell _{(\beta )}+1)}{4\,\delta ^2}=\eta ^2,\quad \quad \frac{q\,V_0\,(E+M)}{2}=\lambda ^2,\quad \quad E^2-M^2=-\Delta ^2 \end{aligned}$$
(21)

into the Eq. (17), we finds

$$\begin{aligned} \frac{d^2R}{dr^2}-\left[ \frac{\eta ^2}{\sinh ^{2}\left( \frac{r}{2\,\delta }\right) }-\frac{\lambda ^2}{\cosh ^{2}\left( \frac{r}{2\,\delta }\right) }+\Delta ^2\right] \,R(r)=0. \end{aligned}$$
(22)

We perform the following transforming

$$\begin{aligned} & z=\cosh ^{2}\left( \frac{r}{2\,\delta }\right) ,\nonumber \\ & \frac{d}{dr}=\frac{1}{\delta }\,\sqrt{z\,(z-1)}\,\frac{d}{dz},\nonumber \\ & \frac{d^2}{dr^2}=\frac{1}{\delta ^2}\,\left\{ z\,(z-1)\,\frac{d^2}{dz^2}+(z-1/2)\,\frac{d}{dz}\right\} \end{aligned}$$
(23)

into the equation (22), we finds

$$\begin{aligned} z\,(1-z)\,R''(z)+\left( \frac{1}{2}-z\right) \,R'(z)+\Bigg [\delta ^2\,\Delta ^2-\frac{\eta ^2\,\delta ^2}{(1-z)}-\frac{\delta ^2\,\lambda ^2}{z}\Bigg ]\,R(z)=0. \end{aligned}$$
(24)

Setting various parameters in Eq. (24) as follows:

$$\begin{aligned} & \frac{k'^2}{4}=\delta ^2\,\Delta ^2,\nonumber \\ & \frac{\zeta '\,(\zeta '-1)}{4}=\delta ^2\,\eta ^2\Rightarrow \zeta '=\frac{1}{2}+\sqrt{\frac{1}{4}+4\,\delta ^2\,\eta ^2}=\ell _{(\beta )}+1,\nonumber \\ & \frac{\lambda '\,(\lambda '+1)}{4}=\delta ^2\,\lambda ^2\Rightarrow \lambda '=-\frac{1}{2}+\sqrt{\frac{1}{4}+4\,\delta ^2\,\lambda ^2}. \end{aligned}$$
(25)

Therefore, equation (24) can be rewritten as

$$\begin{aligned} z\,(1-z)\,R''(z)+\left( \frac{1}{2}-z\right) \,R'(z)+\frac{1}{4}\,\Bigg [k'^2-\frac{\zeta '\,(\zeta '-1)}{(1-z)}-\frac{\lambda '\,(\lambda '+1)}{z}\Bigg ]\,R(z)=0. \end{aligned}$$
(26)

The above equation is a second-order linear differential equation with three regular singular points located at \(z = 0\), \(z = 1\), and \(z = \infty\). To simplify this equation, we adopt an appropriate transformation for the radial function R(z) . The key idea is to absorb the dominant singular behaviors at \(z = 0\) and \(z = 1\) using a factorized ansatz. The justification is as follows: (i) Behavior near \(z = 0\): The differential equation contains a singular term of the form \(-\frac{\lambda '(\lambda ' + 1)}{4z},\) which governs the behavior of the solution near \(z = 0\). To eliminate this singularity and ensure regularity, we include a factor \(z^{\frac{\lambda '}{2} + \frac{1}{2}}\) in the ansatz, that is, \(R(z) \sim z^{\frac{\lambda '}{2} + \frac{1}{2}}\), (ii) Behavior near \(z = 1\): Similarly, the singular term near \(z = 1\) is \(-\frac{\zeta '(\zeta ' - 1)}{4(1 - z)}.\) To regularize the solution near this point, we include an additional factor \((1 - z)^{\frac{\zeta '}{2}}\) in the ansatz. This motivates the behavior near \(z=1\) of the form: \(R(z) \sim (1 - z)^{\frac{\zeta '}{2}}\). With these considerations, the substitution absorbs the singular behavior at both points \(z=0\, \& \, 1\), reducing the original equation to a more tractable form that can typically be solved in terms of hypergeometric functions. We therefore propose the following ansatz for the wave function:

$$\begin{aligned} R(z)&=z^{p_1}\,(1-z)^{p_2}\,f(z),\nonumber \\ p_1&=\frac{\lambda '}{2}+\frac{1}{2}\quad \quad ,\quad \quad p_2=\frac{\zeta '}{2}. \end{aligned}$$
(27)

where f(z) is expected to satisfy a regular second-order differential equation amenable to standard solution techniques.

Substituting Eq. (27) into the Eq. (26), we arrive at the following equation:

$$\begin{aligned} z\,(1-z)\,f''(z)+\Big [\left( 2\,p_1+\frac{1}{2}\right) -(2\,p_1+2\,p_2+1)\,z\Big ]\,f'(z)-\left[ (p_1+p_2)^2-\frac{k'^2}{4}\right] \,f(z)=0. \end{aligned}$$
(28)

The above equation can be written in the following standard differential equation form:

$$\begin{aligned} z\,(1-z)\,f''(z)+\Big [\textrm{c}-(\textrm{a}+\textrm{b}+1)\,z \Big ]\,f'(z)-\textrm{a}\,\textrm{b}\,f(z)=0. \end{aligned}$$
(29)

where

$$\begin{aligned} & \textrm{a}=\sqrt{\frac{1}{4}+4\,\delta ^2\,\lambda ^2}+\frac{1}{2}\,\sqrt{\frac{1}{4}+4\,\delta ^2\,\eta ^2}-\delta \,\Delta ,\nonumber \\ & \textrm{b}=\sqrt{\frac{1}{4}+4\,\delta ^2\,\lambda ^2}+\frac{1}{2}\,\sqrt{\frac{1}{4}+4\,\delta ^2\,\eta ^2}+\delta \,\Delta ,\nonumber \\ & \textrm{c}=1+\sqrt{\frac{1}{4}+4\,\delta ^2\,\lambda ^2}. \end{aligned}$$
(30)

The above second-order differential equation (29) is the well-known form of the Gaussian or ordinary hypergeometric differential equation86,87,88,89,90, and hence, the function f(z) is called the hypergeometric function \({}_2 F_1\) given by

$$\begin{aligned} f(z)={}_2 F_{1}(\textrm{a},\textrm{b},\textrm{c};z)=\sum ^{\infty }_{k=0}\frac{(a)_k\,(b)_k}{(c)_k}\,\frac{z^k}{k!}. \end{aligned}$$
(31)

Here \(\textrm{a}\), \(\textrm{b}\) and \(\textrm{c}\) are stated earlier the Pochhammer symbols \((x)_k\) are given as \((x)_k=\frac{\Gamma (x+k)}{\Gamma (x)}\), where \(\Gamma\) is the gamma function.

For bound states, we need polynomial solutions; f(z), in order to keep the wave function regular at the points \(z=0\) and \(z=1\). It is well-known in the literature that the hypergeometric function \({}_2 F_{1}(\textrm{a},\textrm{b},\textrm{c};z)\) becomes a finite degree polynomial of order n provided, we must have the following condition86,87,89:

$$\begin{aligned} \textrm{a}=-n\quad \quad (n=0,1,2,3,..), \end{aligned}$$
(32)

where the requirement \(\textrm{b}=-n\) is precluded since \(\textrm{b}\) as given in Eq. (30) is a positive definite. This condition \(a=-n\) implies that the Pochhammer symbol \((a)_n\) will become zero for some term in the series expansion. This results in the series truncating at that point, and the function f(z) becomes a polynomial of degree n.

Therefore, simplification of the condition Eq. (32) gives us the following relation

$$\begin{aligned} E^2+\frac{1}{4\,\delta ^2}\,\left[ 2\,n+2\,\sqrt{\frac{1}{4}+2\,\delta ^2\,q\,V_0\,(E+M)}+\ell +\frac{|m-\Phi |}{\beta }-|m|+\frac{1}{2}\right] ^2-M^2=0\nonumber \\\Rightarrow E=\pm \,\sqrt{M^2-\frac{\left[ 2\,n+2\,\sqrt{\frac{1}{4}+2\,\delta ^2\,q\,V_0\,(E+M)}+\ell +\frac{|m-\Phi |}{\beta }-|m|+\frac{1}{2}\right] ^2}{4\,\delta ^2}} \end{aligned}$$
(33)

It is worth noting that the original Klein-Gordon equation is derived from the relativistic energy-momentum relation \(E^2 = \vec {p}^{\,2}\, c^2 + m^2\, c^4\). This relation leads to both positive and negative solutions for the energy E, indicating that the Klein-Gordon equation admits both positive and negative energy eigenvalues. The existence of negative energy solutions posed a conceptual challenge in early quantum theory and ultimately motivated the development of quantum field theory (QFT), where these solutions are reinterpreted as corresponding to antiparticles.

The above equation (33) can be expressible in a polynomial form of order 4 given by \(\text {H}(E)=\text {c}_0+\text {c}_1\,E+\text {c}_2\,E^2+\text {c}_3\,E^3+\text {c}_4\,E^4\), where \(c_i\quad \forall \quad i \in [0,5]\) are the coefficients of various related with \(n, m, \Phi , \beta , q\) and \(V_0\). The real valued solution of this polynomial equation gives us the relativistic energy spectrum \(E=E_{n\,m\,\beta \,\Phi }\) of spin-0 scalar particles in cosmic string background. The exact real valued solution of the above polynomial equation is challenging. However, we presented numerical result of this Energy eigenvalue for different values of the cosmic string parameter \(\beta\), the magnetic flux \(\Phi\), the deformed parameter q in the next section 3.

The radial solution is given by

$$\begin{aligned} & R(z)=z^{\frac{1}{4}+\frac{1}{2}\,\sqrt{\frac{1}{4}+2\,\delta ^2\,q\,V_0\,(E+M)}}\,(1-z)^{\frac{1}{2}+\frac{\ell }{2}+\frac{|m-\Phi |}{2\,\beta }-\frac{|m|}{2}}\,{}_2 F_{1}(-n,\textrm{b},\textrm{c};z),\quad z=\cosh ^{2}\left( \frac{r}{2\,\delta }\right) ,\nonumber \\ & R(r)=\left( \cosh \left( \frac{r}{2\,\delta }\right) \right) ^{\frac{1}{2}+\sqrt{\frac{1}{4}+2\,\delta ^2\,q\,V_0\,(E+M)}}\,\left( -\sinh ^{2}\left( \frac{r}{2\,\delta }\right) \right) ^{\frac{1}{2}+\frac{\ell }{2}+\frac{|m-\Phi |}{2\,\beta }-\frac{|m|}{2}}\,{}_2 F_{1}\left( -n,\textrm{b},\textrm{c};\cosh ^{2}\left( \frac{r}{2\,\delta }\right) \right) ,\nonumber \\ & \psi (r)=\mathcal {N}\,\frac{R(r)}{r}, \end{aligned}$$
(34)

where \(\textrm{b}\) and \(\textrm{c}\) are given in Eq. (30) and \(\mathcal {N}\) is the normalization constant (see the note in Section 4). This normalization constant can be determined using the following relation

$$\begin{aligned} |\mathcal {N}|=\left[ \int ^{\infty }_{0}\,r^2\,|\psi (r)|^2\,dr\right] ^{-1/2}=\left[ \int ^{\infty }_{0}\,|R(r)|^2\,dr\right] ^{-1/2}. \end{aligned}$$
(35)

Note that the normalization constant in the integral above can be explicitly evaluated only under certain assumptions relating the parameter \(\textrm{c}\) of the hypergeometric function to the exponent of the weight function \((\cosh \left( \frac{r}{2\,\delta }\right) )^{\mathcal {Q}}\). Specifically, a closed-form expression exists when \(\textrm{c} = \mathcal {Q} + 1\), that is satisfied in the current analysis. In the absence of such a relation, the integral generally cannot be evaluated in closed form. In our case, the normalization constant is found to be a real and positive, provided that an appropriate constraint on the parameters \(\ell ,\,m,\,\beta\) and \(\Phi\) is imposed (see the note in Section Conclusions).

One can see that the radial wave function R(z) depends on various factors. These include the cosmic string parameter \(\beta\), the magnetic flux \(\Phi\), the deformed parameter q, and the changes with the quantum numbers \(\{n,m\}\).

The total wave function is therefore from Eq. (6) given by

$$\begin{aligned} \Psi _{n\,m\,\beta \,\Phi }= \mathcal {C}_{n\,m\,\beta \,\Phi }\,\exp (-i\,E_{n\,m\,\beta \,\Phi }\,t)\,Y^{m_{(\beta )}}_{\ell _{(\beta )}}(\theta , \phi )\,\psi _{n\,m\,\beta \,\Phi }(r), \end{aligned}$$
(36)

and \(\mathcal {C}_{n\,m\,\beta \,\Phi }\) is the normalization constant.

Equation (31) can be written as

$$\begin{aligned} f(z)={}_2 F_{1}(\textrm{a},\textrm{b},\textrm{c};z)=1+\frac{\textrm{a}\,\textrm{b}}{\textrm{c}}\,z+\frac{\textrm{a}\,(\textrm{a}+1)\,\textrm{b}\,(\textrm{b}+1)}{\textrm{c}\,(\textrm{c}+1)}\,\frac{z^2}{2!}+\frac{\textrm{a}\,(\textrm{a}+1)\,(\textrm{a}+2)\,\textrm{b}\,(\textrm{b}+1)\,(\textrm{b}+2)}{\textrm{c}\,(\textrm{c}+1)\,(\textrm{c}+2)}\,\frac{z^3}{3!}+...\,. \end{aligned}$$
(37)

Since \(a=-n\), where \(n=0,1,2,...\), we find a few functions as follows:

$$\begin{aligned} & n=0,\quad \textrm{a}=0,\quad \quad f(z)={}_2 F_{1}(-0,\textrm{b},\textrm{c};z)=1,\nonumber \\ & n=1,\quad \textrm{a}=-1,\quad f(z)={}_2 F_{1}(-1,\textrm{b},\textrm{c};z)=1-\frac{\textrm{b}}{\textrm{c}}\,z,\nonumber \\ & n=2,\quad \textrm{a}=-2,\quad f(z)={}_2 F_{1}(-2,\textrm{b},\textrm{c};z)=1-2\,\frac{\textrm{b}}{\textrm{c}}\,z+2\,\frac{\textrm{b}\,(\textrm{b}+1)}{\textrm{c}\,(\textrm{c}+1)}\,\frac{z^2}{2!},\nonumber \\ & n=3,\quad \textrm{a}=-3,\quad f(z)={}_2 F_{1}(-3,\textrm{b},\textrm{c};z)=1-3\frac{\textrm{b}}{\textrm{c}}z+6\frac{\textrm{b}(\textrm{b}+1)}{\textrm{c}(\textrm{c}+1)}\frac{z^2}{2!}-6\frac{\textrm{b}(\textrm{b}+1)(\textrm{b}+2)}{\textrm{c}(\textrm{c}+1)(\textrm{c}+2)}\frac{z^3}{3!} \end{aligned}$$
(38)

and others are in the same way. It is worth noting that the values of \(\textrm{b}\) and \(\textrm{c}\) are not same for different values of n. This is because parameters \(\textrm{b}\) and \(\textrm{c}\) from Eq. (30) can be re-written using Eq. (21) as follows:

$$\begin{aligned} & \textrm{b} \rightarrow \textrm{b}_{n\,m\,\beta \,\Phi }=\sqrt{\frac{1}{4}+2\,q\,V_0\,\delta ^2\,(E_{n\,m\,\beta \,\Phi }+M)}+\frac{\ell _{(\beta )}}{2}+\frac{1}{4}+\delta \,\sqrt{M^2-E^2_{n\,m\,\beta \,\Phi }},\nonumber \\ & \textrm{c} \rightarrow \textrm{c}_{n\,m\,\beta \,\Phi }=1+\sqrt{\frac{1}{4}+2\,q\,V_0\,\delta ^2\,(E_{n\,m\,\beta \,\Phi }+M)} \end{aligned}$$
(39)

which are now changes with \(E_{n\,m\,\beta \,\Phi }\) for \(n=0,1,2,...\) and the condition \(M>E\) must holds good.

Now, we discuss few special cases of the relativistic energy eigenvalue given in Eq. (33).

  • The first case corresponds to zero flux field, \(\Phi _{AB}=0\). In that case, the relativistic energy eigenvalue given in Eq. (33) simplifies to:

    $$\begin{aligned} E=\pm \,\sqrt{M^2-\frac{\left[ 2\,n+2\,\sqrt{\frac{1}{4}+2\,\delta ^2\,q\,V_0\,(E+M)}+\ell +\left( \frac{1}{\beta }-1\right) \,|m|+\frac{1}{2}\right] ^2}{4\,\delta ^2}}. \end{aligned}$$
    (40)

    The real valued solution of this polynomial equation (40) gives us the relativistic energy spectrum of spin-0 scalar particles without any flux field in a cosmic string space-time background under the effects of equal scalar and vector potential.

  • The second special case corresponds to the absence of the cosmic string effects (\(\beta =1\)) but nonzero flux field \(\Phi _{AB} \ne 0\). In that case, the relativistic energy eigenvalue given in Eq. (33) simplifies to:

    $$\begin{aligned} E=\pm \,\sqrt{M^2-\frac{\left[ 2\,n+2\,\sqrt{\frac{1}{4}+2\,\delta ^2\,q\,V_0\,(E+M)}+\ell +|m-\Phi |-|m|+\frac{1}{2}\right] ^2}{4\,\delta ^2}}. \end{aligned}$$
    (41)

    The real valued solution of the polynomial equation (41) gives us the energy spectrum of spin-0 scalar particles in Minkowski space-time background with a magnetic flux field under the effects of equal scalar and vector potential.

  • The final case corresponds to the absence both the cosmic string effects (\(\beta =1\)) and the magnetic flux (\(\Phi _{AB} =0\)). In that case, the relativistic energy eigenvalue given in Eq. (33) simplifies to:

    $$\begin{aligned} E=\pm \,\sqrt{M^2-\frac{\left[ 2\,n+2\,\sqrt{\frac{1}{4}+2\,\delta ^2\,q\,V_0\,(E+M)}+\ell +\frac{1}{2}\right] ^2}{4\,\delta ^2}}. \end{aligned}$$
    (42)

    The real valued solution of the polynomial equation (42) gives us the energy spectrum of spin-0 scalar particles in Minkowski flat space under the effects of equal scalar and vector potential, as discussed in80. Noted that the energy eigenvalue expression presented in Ref. 80 appears to be incorrect, stemming from a misapplication of the properties of the hypergeometric function \({}_2F_1(a', b', c'; z)\). Specifically, the derivation assumed that the hypergeometric function reduces to a polynomial of finite degree, which is only valid when either \(a'\) or \(b'\) is a non-positive integer. Since \(a'\) given in Eq. (32) in80 is positive, and thus, only \(b' = -n\) is valid. Thereby, simplification of the condition \(b' = -n\) will give us a correct expression of the energy eigenvalue. Without satisfying this condition, \({}_2F_1\) remains an infinite series and does not yield discrete quantized solutions. Consequently, the energy quantization condition derived under this incorrect assumption lacks mathematical justification, and the resulting eigenvalues do not correspond to physically admissible solutions of the Klein-Gordon equation.

By comparing equation (31) with equations (40)–(42), it becomes apparent that the presence of the flux field, denoted as \(\Phi _{AB}\), and the cosmic string parameter \(\beta\) lead to significant modifications in the relativistic energy expression E. These modifications shift the energy spectrum compared to the flat space scenario, where no flux field or cosmic string is present, under the influence of the modified Woods-Saxon potential. Specifically, the flux field \(\Phi _{AB}\) introduces additional complexities to the quantum system, influencing both the spatial distribution and the dynamics of the scalar particles, while the cosmic string parameter \(\beta\) alters the space-time geometry, which in turn modifies the behavior of the particles.

The modified Woods-Saxon potential V(r), which serves as a more accurate representation of the nuclear potential, plays a crucial role in determining the energy eigenvalues. The combination of this potential with the topological defect parameter \(\beta\) and the flux field \(\Phi _{AB}\) leads to a noticeable shift in the energy spectrum of spin-0 scalar particles, highlighting the profound impact that curvature, topological defects, and external fields have on the quantum properties of particles in such non-trivial geometries.

This shift in the energy eigenvalues, when compared to the Minkowski flat space case (as discussed in Ref.80), illustrates how the interactions between quantum fields, gravitational effects, and topological features such as cosmic strings profoundly influence the quantum states of particles. The influence of the modified Woods-Saxon potential, in conjunction with the cosmic string and flux field, modifies the energy levels, leading to distinct differences from those found in flat space.

Now, we discuss solution of the angular equation given in Eq. (8). Writing the conical spherical harmonics as follows:

$$\begin{aligned} Y(\theta ,\phi )=\mathcal {A}(\theta )\,\mathcal {B}(\phi ). \end{aligned}$$
(43)

Substituting Eq. (43) into the Eq. (8) and after separating the variables, we find

$$\begin{aligned} \frac{\sin ^2\theta }{\mathcal {A}(\theta )}\,\left[ \left\{ \frac{1}{\sin \theta }\,\frac{d}{d\theta }\left( \sin \theta \,\frac{d}{d\theta }\right) +\ell _{(\beta )}\,(\ell _{(\beta )}+1)\right\} \,\mathcal {A}(\theta )\right] =-\frac{1}{\mathcal {B}(\phi )}\left[ \frac{1}{\beta ^2}\left( \frac{d}{d\phi }-i\,\Phi \right) ^2\,\mathcal {B}(\phi )\right] =m^2_{(\beta )}, \end{aligned}$$
(44)

where \(m^2_{(\beta )}\) is the separation constant.

We focus into azimuthal equation which is as follows:

$$\begin{aligned} \left( \frac{d}{d\phi }-i\,\Phi \right) ^2\,\mathcal {B}(\phi )=\beta ^2\,m^2_{(\beta )}\,\mathcal {B}(\phi )\Rightarrow \left( \frac{d^2}{d\phi ^2}-2\,i\,\Phi \,\frac{d}{d\phi }-\Phi ^2\right) \,\,\mathcal {B}(\phi )=\beta ^2\,m^2_{(\beta )}\,\mathcal {B}(\phi ). \end{aligned}$$
(45)

Let us consider a possible solution as

$$\begin{aligned} \mathcal {B}(\phi )=\exp (i\,m\,\phi ). \end{aligned}$$
(46)

Substituting Eq. (46) into the Eq. (45) and after simplification, we find

$$\begin{aligned} \beta ^2\,m^2_{(\beta )}\,=(m-\Phi )^2\Rightarrow m_{(\beta )}=\frac{m'}{\beta },\quad \quad m'=(m-\Phi ). \end{aligned}$$
(47)

The angular equation from Eq. (44) can be rewritten as

$$\begin{aligned} \left[ \frac{1}{\sin \theta }\,\frac{d}{d\theta }\left( \sin \theta \,\frac{d}{d\theta }\right) +\ell _{(\beta )}\,(\ell _{(\beta )}+1)-\frac{m^2_{(\beta )}}{\sin ^2 \theta }\right] \,\mathcal {A}(\theta )=0. \end{aligned}$$
(48)

Transforming to a new variable via \(x=\cos \theta\) into the Eq. (48) yields:

$$\begin{aligned} \left[ \frac{d}{dx}\left( (1-x^2)\,\frac{d}{dx}\right) +\ell _{(\beta )}\,(\ell _{(\beta )}+1)-\frac{m^2_{(\beta )}}{1-x^2}\right] \,\mathcal {A}(x)=0 \end{aligned}$$
(49)

which is the associated Legendre equation of degree \(\ell _{(\beta )}\) and order \(m_{(\beta )}\) and its solutions are well-known86,91. Therefore, \(\mathcal {A}(x)\) is the associated Legendre polynomials given by

$$\begin{aligned} \mathcal {A}(x)=P^{m_{(\beta )}}_{\ell _{(\beta )}}(x). \end{aligned}$$
(50)

The above polynomials has nonzero values provided we have the condition

$$\begin{aligned} |m_{(\beta )}| \le \ell _{(\beta )}\Rightarrow \ell _{(\beta )}=|m_{(\beta )}|+k\quad \quad (k=0,1,2,....). \end{aligned}$$
(51)

Substituting \(m_{(\beta )}\) from Eq. (47), we find

$$\begin{aligned} \ell _{(\beta )}=\frac{|m-\Phi |}{\beta }+k=\ell +\frac{|m-\Phi |}{\beta }-|m|. \end{aligned}$$
(52)

Thus, it is evident that the presence of the cosmic string characterized by the parameter \(\beta\) as well as the magnetic flux \(\Phi\) shifts the magnetic quantum number \(m \rightarrow m_{(\beta )}\), as shown in Eq. (47). Consequently, the orbital quantum number changes to \(\ell \rightarrow \ell _{(\beta )}\). Notably, in the limit where \(\beta =1\), that is, without cosmic string and zero magnetic flux, \(\Phi =0\), we recover \(m_{(\beta )} \rightarrow m\) and \(\ell _{(\beta )} \rightarrow \ell\). This leads to \(\ell _{(\beta )}\,(\ell _{(\beta )}+1) \rightarrow \ell \,(\ell +1)\), which is a well-known result presented in many quantum mechanics textbooks. Therefore, the un-normalized conical spherical harmonics solutions are given by

$$\begin{aligned} Y^{m_{(\beta )}}_{\ell _{(\beta )}}(\theta ,\phi )=\exp (i\,m\,\phi )\,P^{m_{(\beta )}}_{\ell _{(\beta )}}(\cos \theta ). \end{aligned}$$
(53)

Numerical results and discussions

Before presenting the numerical results and discussion, we note that throughout this manuscript, we adopt natural units by setting \(c = \hbar = G = 1\), so that all physical quantities become dimensionless.

As stated earlier, the effective potential \(V_\text {eff}\) of the quantum system given in Eq. (18) depends on the cosmic string parameter \(\beta\), the magnetic flux \(\Phi\), the deformed parameter q, and the changes with the magnetic quantum number m.

Fig. 1
figure 1

The behavior of the effective potential (18) with r for different values of \((\beta , \Phi )\). Here, \(V_0 = 0.1, \delta = 0.2, M = 1, n = 1, m = 1, E = 0.5, \ell =1, \text{ and }\, q=0.1\) in the natural units \(\hbar =1=c=G\).

Fig. 2
figure 2

The behavior of the effective potential (18) with r for different values of of the potential strength \(V_0\). Here, we set \(\delta = 0.2; M = 1; n = 1; m = 1; E= 0.5; \ell = 1; \beta = 0.9; \Phi = 0.5; q = 0.1\) in the natural units.

Fig. 3
figure 3

A comparison of the effective potential (18) with r in different scenario. Here, \(V_0 = 0.1, \delta = 0.2, M = 1, n = 1, m = 1, E = 0.5, \ell =1, \text{ and }\, q=0.1\) in the natural units \(\hbar =1=c=G\).

In Fig. 1b a , we present a graphical representation of the effective potential \(V_\text {eff}\) and examine its behavior for varying values of the cosmic string parameter \(\beta\), and the magnetic flux \(\Phi\), while maintaining the other system parameters constant at \(V_0 = 0.1\), \(\delta = 0.2\), \(M =1\), \(n=1\), \(m=1\), \(E=0.5\), \(q=0.1\), and \(\ell =1\). This Figure provides a comprehensive understanding of how each of these key parameters influences the shape and characteristics of the effective potential. By varying \(\beta\), the cosmic string parameter, we explore how the spacetime geometry affects the potential, while changing \(\Phi\) allows us to assess the impact of the magnetic flux on the system. The fixed parameters \(V_0\), \(\delta\), M, n, m, E, q, and \(\ell\) serve as a reference point, ensuring that the observed variations in the effective potential are primarily due to the changes in \(\beta\), and \(\Phi\). The resulting plots provide valuable insights into the interplay between these physical parameters and their collective impact on the effective potential, shedding light on the underlying dynamics of the system. This investigation not only deepens our understanding of how cosmic strings, and the magnetic flux field affect the system but also offers a clear picture of the potential landscape under different physical conditions. In Figure 2, we present a graphical representation of the effective potential \(V_\text {eff}\) showing its behavior for different values of the potential strength \(V_0\) keeping fixed other parameters \(\delta = 0.2,\, M = 1,\, n = 1,\, m = 1,\, E= 0.5,\, \ell = 1,\, \beta = 0.9,\, \Phi = 0.5,\, q = 0.1\) in the natural units.

In Fig. 3, we present a comparison of the effective potential under different scenarios: with and without the presence of both the cosmic string and the magnetic flux.

Fig. 4
figure 4

The behavior of the radial wave function R(z) as a function of z is illustrated varying the parameters \(\beta\) and \(\Phi\). Panels (a), (c) and (e), corresponding to \(n = 0\), while panels (b), (d), and (f) corresponding to \(n = 1\).

The radial wave function \(R_{n\,m\,\beta \,\Phi }\), as expressed in Eq. (34), depends on several parameters, including the cosmic string parameter \(\beta\), the magnetic flux \(\Phi\), parameter q, and changes with the quantum numbers n, \(\ell\) and m. In Fig. 4, we present the variation of the radial wave function R(z) as defined in Eq. (34) for different values of the cosmic string parameter \(\beta\), the magnetic flux \(\Phi\) and/or their combination, while keeping other parameters fixed at \(V_0 = 1\)\(\delta = 0.2\)\(M =1\)\(q = 1\)\(E =0.5\),  and \(\ell = 1=m\). The choice of these fixed parameters ensures that the changes in the radial wave function are primarily due to the variations in the cosmic string parameter \(\beta\), the magnetic quantum number m, and the magnetic flux \(\Phi\), allowing us to isolate and study their individual effects. The results from this investigation demonstrate how the cosmic string and magnetic flux influence the radial distribution of the wave function, altering its behavior. Additionally, the deformation parameter q further complicates the structure of the wave function, and understanding this dependency is crucial for uncovering the underlying physics of the system. By varying these parameters systematically, we gain insights into how the geometry of space-time, the magnetic field, and quantum effects combine to shape the characteristics of the system. We summarize Fig. 4 as follows:

  • In Fig. 4 (a) and (b), the radial wave function R(z) is plotted for \(\Phi = 0.5\), illustrating the effect of the cosmic string parameter \(\beta\) on the particles’ dynamics for \(n=0\) and 1. The presence of a non-zero magnetic flux \(\Phi\) introduces additional complexities, including the influence of a topological defect, which modifies the wave function’s amplitude and structure.

  • In Fig. 4 (c) and (d), for \(\beta =0.9\), the radial wave function demonstrates how the magnetic flux \(\Phi\) affects the particle’s behavior for \(n=0\) and 1. As \(\Phi\) increases, the amplitude of the wave function decreases, indicating a reduction in the particle’s localization. This suggests that higher magnetic flux weakens the particle’s confinement, leading to a more delocalized state, which reflects the significant influence of the magnetic field on the quantum system.

  • In Fig. 4 (e) and (f), we show the combined effects of \(\beta\) and \(\Phi\) on the wave function for \(n=0\) and 1.

Fig. 5
figure 5

The behavior of the radial wave function R(z) as a function of z for different values of the potential strength \(V_0\). Here, we set \(\delta = 0.2,\, M = 1,\, E = 0.5,\, q = 1,\, \ell = 1,\, \beta =0.8,\, \Phi = 0.5,\, m = 1\) in the natural units.

In Fig. 5, we present the variation of the radial wave function R(z) as defined in Eq. (34) for different values of the potential strength \(V_0\) keeping fixed other parameters \(\delta = 0.2,\, M = 1,\, E = 0.5,\, q = 1,\, \ell = 1,\, \beta =0.8,\, \Phi = 0.5,\, m = 1\) in the natural units. Panel (a) corresponds to the quantum number \(n=0\), while panel (b) for \(n=1\).

Fig. 6
figure 6

A comparison of the Radial wave function R(z) plotted as a function of z under different scenario: flat space \(\beta =1, \Phi =0\); cosmic string effects alone \(\beta \ne 1, \Phi =0\); and both the cosmic string and quantum flux effects \(\beta \ne 1, \Phi \ne 0\). Here, we set \(V = 1,\, \delta = 0.2,\, M = 1,\, E = 0.5,\, q = 1\).

Figure 6 presents a comparative analysis of the radial wave function R(z) for the ground (\(n = 0\)) and first excited (\(n = 1\)) states, illustrating the effects of the cosmic string and quantum flux. In both panels, three different scenarios are depicted for comparison. The dotted curve represents the reference case where both the cosmic string (\(\beta = 1\)) and the quantum flux (\(\Phi = 0\)) are absent. The dashed curve corresponds to the presence of the cosmic string alone (\(\beta \ne 1\)) with no quantum flux (\(\Phi = 0\)). The solid curve shows the scenario where both the cosmic string (\(\beta \ne 1\)) and quantum flux (\(\Phi \ne 0\)) are present. This figure demonstrates that the inclusion of both the cosmic string and quantum flux leads to an increase in the amplitude of the radial wave function, indicating enhanced localization and altered spatial structure of the quantum states due to the combined topological and electromagnetic effects.

In Tables 1, 2, 3 and 4, we have presented numerical values of the energy eigenvalue E for different values of the topological parameter \(\alpha\), amount of magnetic flux \(\Phi\), and the deformed parameter q.

Table 1 The energy spectrum E for different values of \(\beta\). Here \(V_0=0.1, q=0.1, \delta = 0.5, M = 5, \ell =1, n = 1, m = 1, \text{ and } \Phi = 0.3\) in the natural units \(\hbar =1=c=G\).
Table 2 The energy spectrum E for different values of flux \(\Phi\). Here \(V_0=0.1, q =0.1, \delta = 0.5, M = 5, \ell =1, n = 1, m = 1, \beta = 0.9\).
Table 3 The energy spectrum E for different values of q. Here \(V_0=0.1, \delta = 0.5, M =5, \ell =1, n = 1, m = 1, \Phi = 0.9=\alpha\).
  1. 1.

    Analysis of Energy Eigenvalues with Varying Cosmic String Parameter \(\beta\):

    In Table 1, the energy eigenvalues \(E_{\pm }\) are presented for different values of the cosmic string \(\beta\), while keeping the potential strength \(V_0=0.1\), deformed parameter \(q=0.1\), screening parameter \(\delta =0.5\), rest mass of the charged particles \(M=5\), radial quantum number \(n=1\), orbital quantum number \(\ell =1\), magnetic quantum number \(m=1\), and the magnetic quantum flux \(\Phi =0.5\) constant. We observe that as the values of \(\beta\) increase, the positive values of the energy (\(E_{+}\)) also increase, while the negative values of the energy (\(E_{-}\)) decrease. Noted that the energy becomes imaginary values in the interval \(0<\beta < 0.4\).

  2. 2.

    Influence of Magnetic Flux \(\Phi\) on Energy Eigenvalues:

    In Table 2, the variation of the energy eigenvalues \(E_{\pm }\) with changes in the amount of magnetic flux \(\Phi\) is shown, with the other parameters held constant: potential strength \(V_0=0.1\), deformed parameter \(q=0.1\), screening parameter \(\delta =0.5\), rest mass of the charged particles \(M=5\), the radial quantum number \(n=1\), the orbital quantum number \(\ell =1\), the magnetic quantum number \(m=1\), and the cosmic string parameter \(\beta =0.9\). An increase in the quantum flux \(\Phi\) results in an increase in positive values of the energy (\(E_{+}\)), while the negative values of the energy (\(E_{-}\)) decrease.

  3. 3.

    Impact of Deformed Parameter q on Energy Eigenvalues:

    In Table 3, the energy eigenvalues E are calculated for varying values of the deformed parameter q. The other parameters remain fixed: potential strength \(V_0=0.1\), screening parameter \(\delta =0.5\), rest mass of the charged particles \(M=5\), radial quantum number \(n=1\), orbital quantum number \(\ell =1\), magnetic quantum number \(m=1\), global monopole parameter \(\alpha =0.9\), and amount of quantum flux \(\Phi =0.9\). An increase in q results in a decrease in the positive values of the energy (\(E_{+}\)), while the negative values of the energy (\(E_{-}\)) increases.

  4. 4.

    Combined Effects of Cosmic String Parameter \(\beta\), Magnetic Flux \(\Phi\), and Deformed Parameter q:

    Finally, Table 4 explores the combined effects of varying the cosmic string parameter \(\beta\), amount of magnetic flux \(\Phi\), and the deformed parameter q on the energy \(E_{\pm }\). The potential strength \(V_0=0.1\), rest mass of the charged particles \(M=5\), radial quantum number \(n=1\), orbital quantum number \(\ell =1\), and magnetic quantum number \(m=1\) are kept constant. The results show that increasing these parameters together leads to an increases in the positive values of the energy (\(E_{+}\)), while the negative values of the energy (\(E_{-}\)) decreases. Noted that the energy becomes imaginary values in the interval \(0<\beta < 0.4\).

Table 4 The energy value E for different values \((\beta , \Phi , q)\). Here \(V_0=0.1, \delta = 0.5, M = 5, \ell =1, n = 1, m = 1\).

Conclusions

In this work, we investigated the relativistic quantum dynamics of spin-0 scalar bosonic particles in the presence of a topological defect produced by a cosmic string space-time, subject to the influence of a modified Woods-Saxon potential and quantum flux field. By solving the Klein-Gordon equation in this curved background, we derived a fourth-degree polynomial equation for the relativistic energy eigenvalues, showing the significant roles played by the cosmic string parameter \(\beta\) and the magnetic flux \(\Phi _{AB}\). We also examined the limiting case corresponding to Minkowski space, where \(\beta = 1\) and \(\Phi _{AB} = 0\), recovering the standard form of the energy expression without topological or flux effects. Our numerical analysis demonstrated how variations in the parameters \(\beta\), \(\Phi _{AB}\), and the deformation parameter q modify the energy spectrum and quantization conditions. The numerical results of the relativistic energy spectrum, summarized in Tables 1, 2, 3 and 4 and the radial wave function plotted in Figures 4, 5, and 6 underscore the sensitivity of the system’s bound states to the presence of topological defects and quantum flux, even in the absence of a classical magnetic field. In particular, the flux induces nontrivial modifications to the energy levels, reflecting the topological nature of the interaction, while the cosmic string spacetime alters the effective geometry experienced by the particles. Also, these results contribute to a deeper understanding of how curved space-time geometries, topological structures, and external field effects govern the quantum behavior of particles. The study offers relevant insights for models of particle physics in the early universe and condensed matter analogs, such as graphene systems and quantum rings. As an outlook for future research, it would be valuable to extend the current analysis to include scattering states, allowing for a deeper investigation into phase shifts and resonant behavior under topological and flux influences. Additionally, testing the thermal and magnetic properties of the system could provide further insight into quantum statistical behaviors in curved backgrounds. Introducing uniform and mixed magnetic fields may help examine the interplay between classical and topological magnetic effects. Finally, applying this framework to model diatomic molecular systems could reveal how curvature and topological features influence vibrational and rotational spectra, opening avenues for quantum control in molecular and nanoscale systems.

NOTE: Using R(r) given in Eq. (34), one can determine the integral \(\int ^{\infty }_{0}\,|R(r)|^2\,dr\) as follows:

$$\begin{aligned}= & \int ^{\infty }_{0}\,\left( \cosh \left( \frac{r}{2\,\delta }\right) \right) ^{2\,c-1}\,\left( -\sinh ^{2}\left( \frac{r}{2\,\delta }\right) \right) ^{1+\ell +\frac{|m-\Phi |}{\beta }-|m|}\,\left[ {}_2 F_{1}\left( -n,\textrm{b},\textrm{c};\cosh ^{2}\left( \frac{r}{2\,\delta }\right) \right) \right] ^2\,dr\nonumber \\= & \delta \int ^{\infty }_{0}\left( \cosh \left( \frac{r}{2\,\delta }\right) \right) ^{2\,c-1}\left( -\sinh ^{2}\left( \frac{r}{2\,\delta }\right) \right) ^{1+\ell +\frac{|m-\Phi |}{\beta }-|m|}\left[ {}_2 F_{1}\left( -n,\textrm{b},\textrm{c};\cosh ^{2}\left( \frac{r}{2\,\delta }\right) \right) \right] ^2\frac{d\left( \cosh ^2\left( \frac{r}{2\,\delta }\right) \right) }{\cosh \left( \frac{r}{2\,\delta }\right) \sinh \left( \frac{r}{2\,\delta }\right) }\nonumber \\= & \delta \,\int ^{\infty }_{0}\,\left( \cosh ^2\left( \frac{r}{2\,\delta }\right) \right) ^{c-1}\,\frac{\left( -\sinh ^{2}\left( \frac{r}{2\,\delta }\right) \right) ^{1+\ell +\frac{|m-\Phi |}{\beta }-|m|}}{\sinh \left( \frac{r}{2\,\delta }\right) }\,\left[ {}_2 F_{1}\left( -n,\textrm{b},\textrm{c};\cosh ^{2}\left( \frac{r}{2\,\delta }\right) \right) \right] ^2\,d\left( \cosh ^2\left( \frac{r}{2\,\delta }\right) \right) \nonumber \\= & (-1)^{1+\ell +\frac{|m-\Phi |}{\beta }-|m|}\,\delta \,\int ^{\infty }_{1}\,\frac{z^{c-1}\,(z-1)^{1+\ell +\frac{|m-\Phi |}{\beta }-|m|}}{\sqrt{z-1}}\,\left[ {}_2 F_{1}\left( -n,\textrm{b},\textrm{c};z\right) \right] ^2\,dz\nonumber \\= & (-1)^{1+\ell +\frac{|m-\Phi |}{\beta }-|m|}\,\delta \,\int ^{\infty }_{1}\,z^{\textrm{c}-1}\,(z-1)^{\tilde{\alpha }}\,\left[ {}_2 F_{1}\left( -n,\textrm{b},\textrm{c};z\right) \right] ^2\,dz\nonumber \\= & (-1)^{1+\ell +\frac{|m-\Phi |}{\beta }-|m|}\,\delta \,\frac{\Gamma (\textrm{c})^2 \, \Gamma (\tilde{\alpha } + 1) \, \Gamma (\textrm{b} - \textrm{c} - \tilde{\alpha })}{n! \, \Gamma (\textrm{b} - \tilde{\alpha } + n) \, \Gamma (\textrm{c} - \textrm{b} + \tilde{\alpha } + 1)}, \end{aligned}$$
(54)

where \(\tilde{\alpha }=\frac{1}{2}+\ell +\frac{|m-\Phi |}{\beta }-|m|\) and we have used the orthogonality condition of the hypergeometric function given in86,87,88,89.

Therefore, the normalization constant is given by

$$\begin{aligned} |\mathcal {N}_{n,m,\beta ,\Phi }|=\left[ \int ^{\infty }_{0}\,|R(r)|^2\,dr\right] ^{-1/2}=\left[ (-1)^{1+\ell +\frac{|m-\Phi |}{\beta }-|m|}\,\delta \,\frac{\Gamma (\textrm{c})^2 \, \Gamma (\tilde{\alpha } + 1) \, \Gamma (\textrm{b} - \textrm{c} - \tilde{\alpha })}{n! \, \Gamma (\textrm{b} - \tilde{\alpha } + n) \, \Gamma (\textrm{c} - \textrm{b} + \tilde{\alpha } + 1)}\right] ^{-1/2}, \end{aligned}$$
(55)

which is real and positive provided we impose the constraint \(\left( \ell +\frac{|m-\Phi |}{\beta }-|m|\right) \in \mathbb {Z}_\text {odd}\). It is important to note that the parameters \(\ell \in \{0\,\pm \,1,\pm \,2,...,\},\, m \in \{0\,\pm \,1,\pm \,2,...\},\, 0< \beta <1\) and \(\Phi >1\,(\text{ or }\,\, \Phi <1)\) must be carefully chosen so that the constraint above is satisfied. As an illustrative example, take: \(\ell =1=m\), \(\Phi =(1-k\,\beta )<1\), \(k \in \mathbb {Z}^{+}_\text {odd}\), \(k < 1/\beta\). In this case, the constraint simplifies to: \(1+\frac{|1-\Phi |}{\beta }-1=k\), which clearly yields odd integer values for \(k=1,3,5,...\) . There are, in fact, numerous combinations of parameter values that satisfy the constraint and produce valid odd outputs. By appropriately tuning \(\ell ,\,m,\,\beta\) and \(\Phi\), one can generate a variety of such valid cases.

The normalized radial wave function \(\psi (r)\) is thus given by

$$\begin{aligned} \psi _{n,m,\beta ,\Phi } (r)=|\mathcal {N}_{n,m,\beta ,\Phi }|\,\frac{R_{n,m,\beta ,\Phi }(r)}{r}. \end{aligned}$$
(56)

Since both parameters \(\textrm{b}, \textrm{c}\) given in Eq. (39) depend on the energy eigenvalue \(E_{n,m,\beta ,\Phi }\), they are not constants but rather variables that vary with the quantum state \(\{n, m\}\). Consequently, the normalization constant \(|\mathcal {N}_{n,m,\beta ,\Phi }|\) must be determined individually for each specific quantum state, as it is directly related to the corresponding energy eigenvalue. Given this dependency, a graphical representation of the normalized radial functions \(\psi (r)\) given in Eq. (56) becomes a rather tedious and technically demanding task. Therefore, we have not included a figure for the normalized radial function \(\psi (r)\). Instead, in Figures 4 to 6, we have plotted the function R as a function of z, rather than in terms of r.