1 Introduction

In recent years, the study of the topology of black holes has attracted much interest and attention, including light rings [1,2,3,4,5], timelike circular orbits [6, 7], thermodynamics [8,9,10,11,12,13,14,15,16,17], phase transitions [18,19,20,21,22,23], as well as thermodynamic topological classifications [24,25,26,27,28,29,30,31,32,33,34,35,36,37], and so on. In particular, a novel approach has been recently suggested in Ref. [24] to study the thermodynamic topological properties of black holes by interpreting black hole solutions as topological thermodynamic defects, creating topological numbers, and then classifying all black holes into three separate categories based upon their different topological numbers, which sheds new light on the fundamental properties of black holes and gravity. Due to its adaptability and simplicity, the topological approach suggested in Ref. [24] quickly gained widespread acceptance. As a result, it was successfully applied to explore the topological numbers of several well-known black hole solutions [25,26,27,28,29,30,31,32,33,34,35,36], for examples, the static Gauss-Bonnet-AdS black holes [25], the static black hole in nonlinear electrodynamics [26], the Kerr and Kerr–Newman black holes [27], the Kerr-AdS and Kerr–Newman-AdS as well as three-dimensional BTZ black holes [28], some static hairy black holes [29], the dyonic black hole in nonlinear electrodynamics [30], the black hole in de Sitter spacetimes [31], and the black hole in massive gravity [32, 33], the static dyonic AdS black holes in different ensembles [34], some Bardeen black holes [35], as well as the static Born-Infeld-AdS black holes [36]. Very recently, we have investigated the topological numbers for the cases of the four-dimensional Lorentzian Taub-NUT, Kerr-NUT, and Taub-NUT-AdS\(_4\) spacetimes [37], and demonstrated that these spacetimes should be viewed as generic black holes from the viewpoint of the thermodynamic topological approach. It is then natural for us to extend that work to the more general charged cases with a pure electric charge to examine whether the four-dimensional Lorentzian charged Taub-NUT spacetimes are generic black holes, which serves as our motivation for the present work.

In this paper, within the framework of the (\(\psi -\mathscr {N}\))-pair formalism, we will first utilize the generalized Komar super-potential [38] to derive the consistent thermodynamics of the four-dimensional Lorentzian Reissner-Nordström-NUT (RN-NUT), Kerr–Newman-NUT (KN-NUT), and RN-NUT-AdS spacetimes, and to investigate their topological number via the uniformly modified form of the generalized off-shell Helmholtz free energy. We find that these spacetimes should also be viewed as generic black holes from the thermodynamic topological perspective.

The remaining part of this paper is organized as follows. In Sect. 2, we give a brief review of the novel thermodynamic topological approach for Taub-NUT-type spacetimes. In Sect. 3, we first derive the consistent formulation of thermodynamic properties of the four-dimensional Lorentzian RN-NUT spacetime and then investigate its topological number. In Sect. 4, we turn to discuss the case of the Lorentzian KN-NUT spacetime. In Sect. 5, we then extend to discuss the more general Lorentzian RN-NUT-AdS\(_4\) spacetime. Finally, we present our conclusions in Sect. 6.

2 Thermodynamic topological approach for Taub-NUT-type spacetimes

In accordance with the thermodynamic topological approach suggested in Ref. [37], it is possible to introduce the modified form of the generalized off-shell Helmholtz free energy

$$\begin{aligned} \mathscr {F}= M -\frac{S}{\tau } -\psi \mathscr {N}\,, \end{aligned}$$
(1)

for a Taub-NUT-type black hole thermodynamical system with the mass M, the entropy S, and the Misner potential \(\psi \), as well as the gravitational Misner charge \(\mathscr {N}\), where \(\tau \) is an extra variable that can be treated as the inverse temperature of the cavity surrounding the Taub-NUT-type black hole. Only when \(\tau = T^{-1}\), the modified form of the generalized Helmholtz free energy (1) is on-shell and reduces to the common Helmholtz free energy: \(F = M -TS -\psi \mathscr {N}\) of the Taub-NUT-type black holes [39,40,41].

According to Ref. [24], a core vector \(\phi \) is defined as

$$\begin{aligned} \phi = \Big (\frac{\partial \mathscr {F}}{\partial r_{h}}\,, ~ -\cot \Theta \csc \Theta \Big ) \,, \end{aligned}$$
(2)

where the two parameters satisfy the ranges: \(0< r_h < +\infty \), \(0 \le \Theta \le \pi \), respectively. The component \(\phi ^\Theta \) is divergent at \(\Theta = 0\) and \(\Theta = \pi \), indicating that the direction of the vector is outward there.

One can define the topological current by using Duan’s \(\phi \)-mapping topological current theory [42,43,44] as follows:

$$\begin{aligned} j^{\mu }=\frac{1}{2\pi }\epsilon ^{\mu \nu \rho }\epsilon _{ab}\partial _{\nu }n^{a}\partial _{\rho }n^{b}\,, \qquad \mu ,\nu ,\rho =0,1,2, \end{aligned}$$
(3)

where \(\partial _{\nu }= \partial /\partial x^{\nu }\) and \(x^{\nu }=(\tau ,~r_h,~\Theta )\). The unit vector n is \(n = (n^r, n^\Theta )\), where \(n^r = \phi ^{r_h}/||\phi ||\) and \(n^\Theta = \phi ^{\Theta }/||\phi ||\). Since it is easy to prove that the above current (3) is conserved, and one can quickly obtain \(\partial _{\mu }j^{\mu } = 0\) and then indicate that the topological current is a \(\delta \)-function of the field configuration [43, 44]

$$\begin{aligned} j^{\mu }=\delta ^{2}(\phi )J^{\mu }\Big (\frac{\phi }{x}\Big ) \,, \end{aligned}$$
(4)

where the three dimensional Jacobian \(J^{\mu }(\phi /x)\) obeys: \(\epsilon ^{ab}J^{\mu }(\phi /x) = \epsilon ^{\mu \nu \rho }\partial _{\nu }\phi ^a\partial _{\rho }\phi ^b\). It is easy to demonstrate that \(j^\mu \) equals to zero only when \(\phi ^a(x_i) = 0\), and one can easily obtain the topological number W as follows:

$$\begin{aligned} W = \int _{\Sigma }j^{0}d^2x = \sum _{i=1}^{N}\beta _{i}\eta _{i} = \sum _{i=1}^{N}w_{i}\,, \end{aligned}$$
(5)

where \(\beta _i\) is the positive Hopf index that counts the number of the loops of the vector \(\phi ^a\) in the \(\phi \)-space when \(x^{\mu }\) are around the zero point \(z_i\), while \(\eta _{i}= \textrm{sign} (J^{0}({\phi }/{x})_{z_i})=\pm 1\) is the Brouwer degree, and \(w_{i}\) is the winding number for the i-th zero point of \(\phi \) that is contained in the domain \(\Sigma \). In addition, if two different closed curves \(\Sigma _1\) and \(\Sigma _2\) enclose the same zero point of \(\phi \), the corresponding winding number must equal. On the other hand, if there is no zero point of \(\phi \) in the enclosed region, one must have \(W = 0\).

Note that the local winding number \(w_{i}\) can be used to characterize the local thermodynamic stability, with positive and negative values corresponding to thermodynamically stable and unstable black holes, respectively, and the global topological number W represents the difference between the number of thermodynamically stable black holes and the number of thermodynamically unstable black holes of a classical black hole solution at a fixed temperature [24]. Therefore, not only can one distinguish between different black hole phases (thermodynamically stable or unstable) of the same black hole solution at a specific temperature based upon the local winding number, but also can classify the black hole solutions based upon the global topological number. Furthermore, according to this classification, black holes with the same global topological number (even if they are of different geometric types) have similar thermodynamical topology properties.

3 RN-NUT spacetime

As the simplest charged case, we will investigate the four-dimensional Lorentzian RN-NUT solution [45,46,47], and adopt the following line element in which the Misner strings are symmetrically distributed along the polar axis:

$$\begin{aligned} ds^2= & {} -\frac{f(r)}{r^2 +n^2}(dt +2n\cos \theta \, d\varphi )^2 +\frac{r^2 +n^2}{f(r)}dr^2 \nonumber \\{} & {} +\big (r^2 +n^2\big )\big (d\theta ^2 +\sin ^2\theta \, d\varphi ^2\big ) \,, \end{aligned}$$
(6)

where

$$\begin{aligned} f(r) = r^2 -2mr -n^2 +q^2 \,, \end{aligned}$$

in which m, n and q are the mass, the NUT charge, and the electric charge parameters, respectively. The event horizon radius: \(r_h = m +\sqrt{m^2 +n^2 -q^2}\) is the largest root of the equation: \(f(r_h) = 0\). In addition, the electromagnetic gauge potential one-form is given by

$$\begin{aligned} \mathbb {A}= \frac{qr}{r^2+n^2}(dt +2n\cos \theta \, d\varphi ) \,, \end{aligned}$$
(7)

with which a convenient gauge choice is made so that its temporal component vanishes at infinity.

The metric (6) with the Abelian gauge potential (7) is an exact solution to the field equations derived from the Lagrangian density: \(\mathscr {L} = \sqrt{-g}\big (R -F^2\big )/(16\pi )\). For latter convenience, we introduce a generalized Komar super-potential (see Eq. (5.20) of Ref. [38]) as follows:

$$\begin{aligned} \Xi ^{ab}[\xi ]\! =\! \nabla ^a\xi ^b \!-\!\nabla ^b\xi ^a \!+\!(4\xi ^c{}F^{ab} \!+\!2\xi ^a{}F^{bc} \!+\!2\xi ^b{}F^{ca})\mathbb {A}_c \,, \nonumber \\ \end{aligned}$$
(8)

associated with a Killing vector \(\xi \) and the Faraday-Maxwell field strength tensor: \(F_{ab} = \nabla _a\mathbb {A}_b -\nabla _b\mathbb {A}_a\) defined by \(F = d\mathbb {A}\). It can be shown that \(\nabla _b\Xi ^{ab} = 0\).

3.1 Consistent thermodynamics

As we are only focused on the purely electrically charged RN-NUT solutions, so we will first rederive the consistent thermodynamics of the four-dimensional Lorentzian RN-NUT spacetime within the framework of the (\(\psi -\mathscr {N}\))-pair formalism.

The Bekenstein–Hawking entropy is one quarter of the area of the event horizon

$$\begin{aligned} S = \frac{A}{4} = \pi \big (r_h^2 +n^2\big ) \,, \end{aligned}$$
(9)

the Gibbons-Hawking temperature is proportional to the surface gravity \(\kappa \) on the event horizon

$$\begin{aligned} T = \frac{\kappa }{2\pi } = \frac{f^\prime (r_h)}{4\pi \big (r_h^2 +n^2\big )} = \frac{1}{4\pi {r_h}}\Big (1 -\frac{q^2}{r_h^2 +n^2}\Big ) \,, \end{aligned}$$
(10)

in which a prime represents the partial derivative with respective to its variable.

Secondly, the total electric charge distribution over a two-dimensional sphere with a finite radius r is given by the Gauss’ integral

$$\begin{aligned} Q(r) = \frac{-1}{4\pi }\int _{S^2} {^\star }F = q\frac{r^2-n^2}{r^2+n^2} \,, \end{aligned}$$

which clearly shows it is radial-dependently distributed and should be on the Misner string singularities [48]. So the electric charge on the event horizon is

$$\begin{aligned} Q_h = q\frac{r_h^2-n^2}{r_h^2+n^2} \,. \end{aligned}$$
(11)

The corresponding electrostatic potential at the event horizon simply reads

$$\begin{aligned} \Phi = (\mathbb {A}_{\mu }\chi ^{\mu })|_{r=r_h} = \frac{qr_h}{r_h^2 +n^2}\,, \end{aligned}$$
(12)

where \(\chi = \partial _t\) is the timelike Killing vector normal to the event horizon.

In the Lorentzian RN-NUT spacetime, there are additional Killing horizons (north/south pole axes) connected to the Misner strings with the associated Misner potential being

$$\begin{aligned} \psi = \frac{1}{8\pi n} \,. \end{aligned}$$
(13)

In the language of exterior differential forms, the Hodge dual two-form corresponding to the generalized Komar superpotential (8) can be obtained as

$$\begin{aligned}{} & {} {^\star }\Xi [\chi ] = \frac{2n}{\big (r^2+n^2\big )^2}\Big (-f +\frac{4q^2r^2}{r^2+n^2}\Big ) dr\wedge \nonumber \\{} & {} \quad (dt+2n\cos \theta {}d\phi ) \nonumber \\{} & {} \quad -\bigg [f^{\prime } -\frac{2rf}{r^2+n^2} +\frac{2q^2r\big (r^2-n^2\big )}{ \big (r^2+n^2\big )^2}\bigg ]\sin \theta {}d\theta \wedge {}d\phi \,,\nonumber \\ \qquad \end{aligned}$$
(14)

for the timelike Killing vector \(\chi = \partial _t\).

Using the above generalized Komar superpotential two-form (14) to replace the ordinary Komar one and following the same pattern of the (\(\psi -\mathscr {N}\))-pair formalism as did in Refs. [40, 49] (namely, one deliberately separates the integral into three parts: the spatial infinity, the horizon, and two Misner string tubes), one can derive the integral Bekenstein–Smarr-like mass formula

$$\begin{aligned} M = 2TS +\Phi {}Q_h +2\psi \mathscr {N}\,, \end{aligned}$$
(15)

and then verify that the differential first law can also be satisfied:

$$\begin{aligned} dM = TdS +\Phi {}dQ_h +\psi {}d\mathscr {N}\,. \end{aligned}$$
(16)

In the derivation of the Smarr-like formula, one can define the conserved mass as

$$\begin{aligned} M= & {} \frac{-1}{8\pi }\int _{S^2_{\infty }} {^\star }\Xi [\chi ] = \frac{-1}{4}\int _0^{\pi }d\theta (\sqrt{-g}\Xi ^{tr})\big |_{r\rightarrow \infty }\nonumber \\= & {} m \,, \end{aligned}$$
(17)

which exactly coincides with the Komar mass calculated via the usual Komar integral at infinity, since the well fall-off asymptotic behavior of the Maxwell field. In the computation, we has used the determinant \(\sqrt{-g} = \big (r^2+n^2\big )\sin \theta \). On the hand hand, we have instead

$$\begin{aligned} \frac{-1}{8\pi }\int _{S^2_h} {^\star }\Xi [\chi ] = 2TS +\Phi {}Q_h \,. \end{aligned}$$
(18)

The last thermodynamic quantity of the Misner charge can be easily determined via the above Bekenstein–Smarr-like mass formula as

$$\begin{aligned} \mathscr {N}= \frac{4\pi n^3}{r_h}\bigg [-1 +q^2\frac{3r_h^2 +n^2}{ \big (r_h^2 +n^2\big )^2}\bigg ] \,, \end{aligned}$$
(19)

which is non-globally conserved. Alternately, it can also be evaluated via the Misner tubes integral

$$\begin{aligned} \mathscr {N}= & {} \frac{n}{2}\int _{(T_+ -T_-)} {^\star }\Xi [\chi ] = \pi {}n\int _{r_h}^{\infty }dr (\sqrt{-g}\Xi ^{t\theta })\big |_{\theta =0}^{\theta =\pi } \\= & {} -8\pi {}n^3\frac{\big (r^2+n^2\big )(r_h -m) -q^2r_h}{\big (r_h^2+n^2\big )^2} \,, \end{aligned}$$

which reproduces the above expression (19) after using the identity \(m = \big (r_h^2 -n^2 +q^2\big )/(2r_h)\).

It can be further identified that all the above thermodynamic quantities are related to the Gibbs free energy of the four-dimensional Lorentzian RN-NUT spacetime [50]

$$\begin{aligned} G = M -TS -\psi \mathscr {N}-\Phi {}Q_h \,, \end{aligned}$$
(20)

whose expression can be obtained via a Wick-rotated back procedure from the Euclidean action of the Euclidean RN-NUT spacetime:

$$\begin{aligned} I_E= & {} \frac{1}{16\pi }\int _M d^4x \sqrt{g}\big (R -F^2\big )\nonumber \\{} & {} +\frac{1}{8\pi }\int _{\partial {}M} d^3x \sqrt{h}(K -K_0) \,, \end{aligned}$$
(21)

where h is the determinant of the induced metric \(h_{ij}\), K is the trace of the extrinsic curvature tensor defined on the boundary with this induced metric, and \(K_0\) is the subtracted one of the massless uncharged Taub-NUT solution as the reference background. The computation of the Euclidean action integral yields the following expression for the Gibbs free energy

$$\begin{aligned} G = \frac{I_E}{\beta } = \frac{m}{2} -q^2\frac{r_h\big (r_h^2 -n^2\big )}{2\big (r_h^2 +n^2\big )^2} {= \frac{1}{2}(M -\Phi {}Q_h)} \,, \end{aligned}$$
(22)

where \(\beta = 1/T\) is the interval of the time coordinate.

By the way, it should be noted that the above results are completely consistent with those given in Ref. [51] without any “derivation”.

3.2 Topological number

Next, we will investigate the topological number of the four-dimensional Lorentzian RN-NUT spacetime. We note that the Helmholtz free energy simply reads

$$\begin{aligned} F = G +\Phi {}Q_h = M -TS -\psi \mathscr {N}\,. \end{aligned}$$
(23)

Replacing T with \(1/\tau \) in Eq. (23) and using \(m = \big (r_h^2 -n^2 +q^2\big ) /(2r_h)\), then the generalized off-shell Helmholtz free energy is

$$\begin{aligned} \mathscr {F}= \frac{r_h}{2} -\frac{\pi \big (r_h^2 +n^2\big )}{\tau } +q^2\frac{r_h\big (r_h^2 -n^2\big )}{2\big (r_h^2 +n^2\big )^2} \,. \end{aligned}$$
(24)

Adopting the definition of Eq. (2), the components of the vector \(\phi \) can be easily calculated as follows:

$$\begin{aligned} \phi ^{r_h}= & {} \frac{1}{2} -\frac{2\pi r_h}{\tau } -q^2\frac{r_h^4 -6n^2r_h^2 +n^4}{2\big (r_h^2 +n^2\big )^3} \,, \nonumber \\ \phi ^{\Theta }= & {} -\cot \Theta \csc \Theta \,. \end{aligned}$$
(25)

By solving the equation: \(\phi ^{r_h} = 0\), one can arrive at a curve on the \(r_h-\tau \) plane. For the four-dimensional RN-NUT spacetime, one can obtain

$$\begin{aligned} \tau = \frac{4\pi {}r_h\big (r_h^2 +n^2\big )^3}{\big (r_h^2 +n^2\big )^3 -q^2\big (r_h^4 -6n^2r_h^2 +n^4\big )} \,. \end{aligned}$$
(26)

We point out that Eq. (26) consistently reduces to the one obtained in the case of the four-dimensional RN black hole [24] when the NUT charge parameter n is turned off. Note that the generation point satisfies the constraint conditions:

$$\begin{aligned} \frac{\partial \tau }{\partial {}r_h} = 0 \,, \qquad \frac{\partial ^2\tau }{\partial {}r_h^2} > 0 \,. \end{aligned}$$
(27)
Fig. 1
figure 1

Zero points of the vector \(\phi ^{r_h}\) shown in the \(r_h-\tau \) plane with \(n/r_0=1\) and \(q/r_0=1\). The generation point for the RN-NUT spacetime is represented by the black dot with \(\tau _c\). At \(\tau = \tau _1\), there are two RN-NUT spacetimes

Taking \(q/r_0 = 1\) and \(n/r_0 = 1\) for the four-dimensional Lorentzian RN-NUT spacetime, we plot in Figs. 1 and 2, respectively, for the zero points of the component \(\phi ^{r_h}\), and for the unit vector field n on a portion of the \(\Theta -r_h\) plane with \(\tau = 7r_0\) in which \(r_0\) is an arbitrary length scale set by the size of a cavity enclosing the RN-NUT spacetime. From Fig. 1, one generation point can be found at \(\tau /r_0 = \tau _c/r_0 = 5.13\). It is clear that the RN-NUT spacetime behaves like the RN black hole, showing that the NUT charge parameter appears to have no impact on the thermodynamic topological classification for the static charged asymptotically locally flat spacetime. Consequently, it would be fascinating to learn more about the relationship between geometric topology and thermodynamic topology: for example, it would be very interesting to investigate the topological number of ultraspinning black holes [52,53,54,55,56,57,58,59] and their usual counterparts.

Fig. 2
figure 2

The red arrows represent the unit vector field n on a portion of the \(r_h-\Theta \) plane for the RN-NUT spacetime with \(n/r_0=1\), \(q/r_0=1\) and \(\tau /r_0 = 7\). The zero points (ZPs) marked with black dots are at \((r_h/r_0, \Theta ) = (0.23,\pi /2)\), and \((0.86,\pi /2)\), respectively. The blue contours \(C_i\) are closed loops enclosing the zero points

In Fig. 2, the zero points are located at \((r_h/r_0, \Theta ) = (0.23,\pi /2)\), and \((0.86,\pi /2)\), respectively. Thus, one can read the winding numbers \(w_i\) for the blue contours \(C_i\): \(w_1 = 1\), \(w_2 = -1\), which are similar to those of the RN black hole [24]. In terms of the topological global properties, one can easily obtain the topological number \(W = 0\) for the RN-NUT spacetime from Fig. 2, which is also the same one as that of the RN black hole. As a result, based upon the viewpoint of the thermodynamic topological numbers, the Lorentzian RN-NUT spacetime should be welcomed into the black hole family. Furthermore, it can be indicated that, while the RN-NUT spacetime and RN black hole are evidently distinguished in geometric topology, they belong to the same class in terms of thermodynamic topology.

4 KN-NUT spacetime

In this section, we will focus on the case of a rotating charged Taub-NUT spacetime by considering the four-dimensional KN-NUT solution [60,61,62,63], whose line element with the Misner strings symmetrically distributed along the rotation axis is written in the Boyer-Lindquist coordinates as:

$$\begin{aligned} ds^2= & {} -\frac{\Delta (r)}{\Sigma }\big [dt +\big (2n\cos \theta -a\sin ^2\theta \big )d\varphi \big ]^2 +\frac{\Sigma }{\Delta (r)}dr^2 \nonumber \\{} & {} +\Sigma d\theta ^2 +\frac{\sin ^2\theta }{\Sigma }\big [a{}dt -\big (r^2+a^2+n^2\big )d\varphi \big ]^2 \,, \end{aligned}$$
(28)

where

$$\begin{aligned} \Sigma= & {} r^2 +(n +a\cos \theta )^2 \,, \\{} & {} \Delta (r) = r^2 -2mr-n^2 +a^2 +q^2 \,, \end{aligned}$$

in which m, n, a and q are the mass, the NUT charge, the rotation and the electric parameters, respectively. The event horizon radius is \(r_h = m +\sqrt{m^2 +n^2 -a^2 -q^2}\). In addition, the electromagnetic gauge potential one-form is given by

$$\begin{aligned} \mathbb {A}= \frac{qr}{\Sigma }\big [dt +\big (2n\cos \theta -a\sin ^2\theta \big )d\varphi \big ] \,, \end{aligned}$$
(29)

in a gauge that its temporal component vanishes at infinity.

4.1 Consistent thermodynamics

Now, we investigate the consistent thermodynamics of the four-dimensional Lorentzian KN-NUT spacetime within the framework of the (\(\psi -\mathscr {N}\))-pair formalism. The Bekenstein–Hawking entropy is taken as one quarter of the event horizon area:

$$\begin{aligned} S = \frac{A}{4} = \pi \big (r_h^2 +a^2 +n^2\big ) \,. \end{aligned}$$
(30)

The Hawking temperature is proportional to the surface gravity \(\kappa \) on the event horizon

$$\begin{aligned} T = \frac{\kappa }{2\pi } = \frac{f^\prime (r_h)}{4\pi \big (r_h^2 +a^2 +n^2\big )} = \frac{r_h -m}{2\pi \big (r_h^2 +a^2 +n^2\big )} \,.\nonumber \\ \end{aligned}$$
(31)

The angular velocity at the event horizon and the Misner potential are, respectively,

$$\begin{aligned} \Omega = \frac{a}{r_h^2 +a^2 +n^2} \,, \qquad \psi = \frac{1}{8\pi n} \,. \end{aligned}$$
(32)

The electric charge Q on the event horizon can be computed as

$$\begin{aligned} Q_h = \frac{-1}{4\pi }\int _{S^2_{h}}{^\star }F = q\frac{\big (r_h^2 +a^2\big )^2 -n^4}{\big (r_h^2 +a^2 +n^2\big )^2 -4a^2n^2} \,, \end{aligned}$$
(33)

and its corresponding electrostatic potential at the event horizon is

$$\begin{aligned} \Phi = (\mathbb {A}_{\mu }\chi ^{\mu })|_{r=r_h} = \frac{qr_h}{r_h^2 +a^2 +n^2} \,, \end{aligned}$$
(34)

where \(\chi = \partial _t +\Omega \partial _\varphi \) is the Killing vector normal to the event horizon.

As for the conserved mass, one can compute it just like the non-rotating case and get

$$\begin{aligned} M = \frac{-1}{8\pi }\int _{S^2_{\infty }} {^\star }\Xi [\partial _t] = m \,, \end{aligned}$$
(35)

for the timelike Killing vector \(\partial _t\). One can note that it exactly coincides with the Komar mass evaluated via the usual Komar integral at infinity.

One can anticipate that both the first law and the Bekenstein–Smarr mass formula for the Lorentzian KN-NUT spacetime should read

$$\begin{aligned} dM= & {} TdS +\Omega {}dJ_h +\Phi {}dQ_h +\psi {}d\mathscr {N}\,, \end{aligned}$$
(36)
$$\begin{aligned} M= & {} 2TS +2\Omega {}J_h +\Phi {}Q_h +2\psi {}\mathscr {N}\,, \end{aligned}$$
(37)

from which one can first solve \(J_h\) in terms of \(\mathscr {N}\) from the integral Smarr-like formula (37), and then solve \(\mathscr {N}= \mathscr {N}(r_h, q, n, a)\) from the differential first law. After abandoning an integration constant, one can finally get the expressions for the gravitational Misner charge and the angular momentum as follows:

$$\begin{aligned} \mathscr {N}= & {} \frac{4\pi n^3}{r_h}\bigg \{-1 +q^2\Big [3r_h^6 +\big (7n^2 -3a^2\big )r_h^4 \nonumber \\{} & {} +\big (5n^4 +2a^2n^2 -7a^4\big )r_h^2 -\big (a^2 -n^2\big )^3\Big ] \nonumber \\{} & {} \times \big [\big (r_h^2 +a^2 +n^2\big )^2 -2a^2n^2\big ]^{-2} \bigg \} \,, \end{aligned}$$
(38)
$$\begin{aligned} J_h= & {} a\bigg \{m +\frac{n^2}{r_h} +\frac{q^2n^2}{r_h}\Big [3r_h^6 +\big (7a^2 -3n^2\big )r_h^4 \nonumber \\{} & {} +\big (5a^4 +2a^2n^2 -7n^4\big )r_h^2 +\big (a^2 -n^2\big )^3\Big ] \nonumber \\{} & {} \times \big [\big (r_h^2 +a^2 +n^2\big )^2 -4a^2n^2\big ]^{-2} \bigg \} \,. \end{aligned}$$
(39)

We would like to point out that the above two expressions are identical to those of \({\tilde{N}}\) and \({\tilde{J}}\) given by Eqs. (3.15) and (3.16) in Ref. [41] in the case when the magnetic charge parameter is turned off, namely, the asymptotic magnetic charge vanishes. The first law and the Bekenstein–Smarr mass formula precisely correspond to the magnetic version of the full cohomogeneity first law [41] when the magnetic charge parameter is set to zero.

On the other hand, one can utilize the generalized Komar superpotential (8) rather than the usual Komar one with respect to the Killing vector \(\chi = \partial _t +\Omega \partial _\varphi \) and follow the same paradigm of the (\(\psi -\mathscr {N}\))-pair formalism as did in Ref. [64] to derive the integral Bekenstein–Smarr-like mass formula (37) and then check that the above thermodynamic quantities simultaneously satisfy the differential first law as well. In this way, it is facilitated to use the GRTensor II package to perform the algebraic manipulation to get the above involved expressions of \(J_h\) and \(\mathscr {N}\). Here, we will not repeat the “derivation” but just provide a simple and equivalent way to evaluate the horizon angular momentum \(J_h\) by using our generalized Koamr superpotential (8):

$$\begin{aligned} J_h = \frac{1}{16\pi }\int _{S_h^2} {^\star }\Xi [\partial _{\varphi }] = \frac{1}{8}\int _0^{\pi }d\theta \sqrt{-g}\Xi ^{tr}[\partial _{\varphi }]\big |_{r=r_h} \,, \end{aligned}$$
(40)

which reproduces the above expression after using \(m = (r_h^2 -n^2 +a^2 +q^2\big )/(2r_h)\).

Adopting the same procedure as did in Sect. 3.1, the calculation of the Euclidean action integral (21) of the KN-NUT spacetime yields the Gibbs free energy

$$\begin{aligned} G = \frac{m}{2} -\frac{q^2r_h\big (r^2 +a^2 -n^2\big )}{2\big (r_h^2 +a^2 +n^2\big )^2 -8a^2n^2} {= \frac{M -\Phi {}Q_h}{2}} \,, \end{aligned}$$
(41)

which coincides with the result of Eq. (3.1) given in Ref. [41] in the case when the magnetic charge parameter \(g = 0\) is turned off. Furthermore, it can be also identified as

$$\begin{aligned} G = M -TS -\psi \mathscr {N}-\Omega {}J_h -\Phi {}Q_h \,. \end{aligned}$$
(42)

4.2 Topological number

In order to obtain the thermodynamic topological number of the KN-NUT spacetime, we need to get the expression of the generalized off-shell Helmholtz free energy in advance. The Helmholtz free energy is given by

$$\begin{aligned} F = G +\Omega {}J_h +\Phi {}Q_h = M -TS -\psi \mathscr {N}\,. \end{aligned}$$
(43)

It is a simple matter to obtain the generalized off-shell Helmholtz free energy as

$$\begin{aligned} \mathscr {F}= & {} M -\frac{S}{\tau } -\psi \mathscr {N}= \frac{r_h^2 +a^2}{2r_h} -\frac{\pi \big (r_h^2 +a^2 +n^2\big )}{\tau } \nonumber \\{} & {} +\frac{q^2\big (r_h^2 +a^2 -n^2\big )}{2r_h\big [\big (r_h^2 +a^2 +n^2\big )^2 -4a^2n^2\big ]^2}\Big [\big (r_h^2 +a^2\big )^3 \nonumber \\{} & {} +2\big (r_h^4 +4a^2r_h^2 -a^4\big )n^2 +\big (r_h^2 +a^2\big )n^4\Big ] \,. \end{aligned}$$
(44)

Then, the components of the vector \(\phi \) are given by

$$\begin{aligned} \phi ^{r_h}= & {} \frac{r_h^2 -a^2}{2r_h^2} -\frac{q^2X}{2r_h^2\big [\big (r_h^2 +a^2 +n^2\big )^2 -4a^2n^2\big ]^3} \,, \nonumber \\{} & {} -\frac{2\pi {}r_h}{\tau } \nonumber \\ \phi ^{\Theta }= & {} -\cot \Theta \csc \Theta \,, \end{aligned}$$
(45)

where

$$\begin{aligned} X= & {} r_h^{12} +3\big (2a^2-n^2\big )r_h^{10} +\big (15a^4 +39a^2n^2 -14n^4\big )r_h^8 \\{} & {} +2\big (10a^6 +41a^4n^2 -20a^2n^4 -7n^6\big )r_h^6 \\{} & {} +3\big (a^2 -n^2\big )\big (5a^6 +15a^4n^2 +27a^2n^4 +n^6\big )r_h^4 \\{} & {} +\big (a^2 -n^2\big )^3\big (6a^4 +3a^2n^2 -n^4\big )r_h^2 +a^2\big (a^2 -n^2\big )^5 \,. \end{aligned}$$

Therefore, by solving the equation: \(\phi ^{r_h} = 0\), one can obtain

$$\begin{aligned} \tau = \frac{4\pi {}r_h^3\big [\big (r_h^2 +a^2+n^2\big )^2 -4a^2n^2\big ]^3}{ \big (r_h^2 -a^2\big )\big [\big (r_h^2 +a^2+n^2\big )^2 -4a^2n^2\big ]^3 -q^2X} \end{aligned}$$
(46)

as the zero point of the vector field \(\phi ^{r_h}\). We also point out that Eq. (46) consistently reduces to the one obtained in the case of the four-dimensional Kerr–Newman black hole [27] when the NUT charge parameter n vanishes.

Taking \(n/r_0 = 1\) and \(q/r_0 = 1\) as well as \(n/r_0 = 1\) for the KN-NUT spacetime, we plot the zero points of the component \(\phi ^{r_h}\) in Fig. 3, and the unit vector field n on a portion of the \(\Theta -r_h\) plane in Fig. 4 with \(\tau /r_0 = 50\), respectively. In Fig. 3, one generation point can be found at \(\tau /r_0 = \tau _{c}/r_0 = 41.49\). At \(\tau = \tau _1\), there are one thermodynamically unstable KN-NUT spacetime and one thermodynamically stable KN-NUT spacetime, just like the Kerr–Newman black hole [27]. In Fig. 4, one can observe that the zero points are located at \((r_h/r_0, \Theta ) = (1.70, \pi /2)\), and \((3.41, \pi /2)\), respectively. Based upon the local property of the zero points, we can obtain the topological number: \(W = 1 -1 = 0\) for the KN-NUT spacetime, which is the same one as that of the Kerr–Newman black hole [27]. Therefore, the four-dimensional KN-NUT spacetime should be present in the large family of black holes. Additionally, it can be concluded that even though the KN-NUT spacetime and Kerr–Newman black hole have undoubtedly distinct geometric topologies, they are the same type from the viewpoint of the thermodynamic topology, just like the RN-NUT spacetime and RN black hole, which have been addressed in Sect. 3 and Ref. [24], respectively.

Fig. 3
figure 3

Zero points of the vector \(\phi ^{r_h}\) shown in the \(r_h-\tau \) plane with \(n/r_0 = 1\), \(q/r_0 = 1\) and \(a/r_0 = 1\). The generation point for the KN-NUT spacetime is represented by the black dot with \(\tau _c\). At \(\tau = \tau _1\), there are two KN-NUT spacetimes. Obviously, the topological number is: \(W = 1 -1 =0\)

Fig. 4
figure 4

The red arrows represent the unit vector field n on a portion of the \(r_h-\Theta \) plane for the KN-NUT spacetime with \(n/r_0 = 1\), \(q/r_0 = 1\), \(a/r_0 = 1\) and \(\tau /r_0 = 50\). The zero points (ZPs) marked with black dots are at \((r_h/r_0, \Theta ) = (1.70, \pi /2)\), and \((3.41, \pi /2)\), respectively. The blue contour \(C_i\) are closed loops enclosing the zero points

5 RN-NUT-AdS\(_4\) spacetime

In this section, we turn to explore the Lorentzian charged Taub-NUT spacetime with an negative cosmological constant, namely, the Lorentzian RN-NUT-AdS\(_4\) spacetime, whose metric and Abelian gauge potential are still given by Eqs. (6)–(7), but now \(f(r) = r^2 -2mr -n^2 +q^2 +\big (r^4 +6n^2r^2 -3n^4\big )/l^2\), in which the AdS radius l is related to the thermodynamic pressure \(P = 3/\big (8\pi {}l^2\big )\) of the four-dimensional AdS black hole [65,66,67]. One can show that the generalized Komar superpotential now obey an identity: \(\nabla _b\Xi ^{ab} = -6\xi ^a/l^2\) in the present case.

5.1 Consistent thermodynamics

We now investigate the thermodynamical properties within the (\(\psi -\mathscr {N}\))-pair formalism of the four-dimensional Lorentzian RN-NUT-AdS spacetime. Since we are extending the results already appeared in the Sect. 3.1, so we will mainly collect the needed expressions and just outline the different aspects. For the event horizon \(r_h\), which is the location of the largest root of the radial function: \(f(r_h) = 0\), the Bekenstein–Hawking entropy is

$$\begin{aligned} S = \pi \big (r_h^2 +n^2\big ) \,, \end{aligned}$$
(47)

while the Hawking temperature has a different expression

$$\begin{aligned} T = \frac{f^\prime (r_h)}{4\pi \big (r_h^2 +n^2\big )} = \frac{1}{4\pi {r_h}}\Big (1 -\frac{q^2}{r_h^2 +n^2} +3\frac{r_h^2 +n^2}{l^2}\Big ) \,.\nonumber \\ \end{aligned}$$
(48)

On the event horizon, the electric charge and and its corresponding electrostatic potential

$$\begin{aligned} Q_h = q\frac{r_h^2 -n^2}{r_h^2 +n^2} \,, \qquad \Phi = \frac{qr_h}{r_h^2 +n^2} \,. \end{aligned}$$
(49)

The conformal mass can be evaluated as

$$\begin{aligned} M = m \,, \end{aligned}$$
(50)

which is associated with the timelike Killing vector: \(\chi = \partial _t\). The Misner potential is

$$\begin{aligned} \psi = \frac{1}{8\pi {}n} \,. \end{aligned}$$
(51)

Using the metric determinant: \(\sqrt{-g} = \big (r^2+n^2\big )\sin \theta \), one can define the thermodynamic volume

$$\begin{aligned} V = {2\pi \int _0^{\theta }d\theta \int _0^{r_h}\sqrt{-g}{}dr} = \frac{4}{3}\pi r_h\big (r_h^2 +3n^2\big ) \,, \end{aligned}$$
(52)

which is conjugate to the pressure: \(P = 3/\big (8\pi {}l^2\big )\).

Within the framework of the extended phase space, one can substitute the above thermodynamical quantities into the Bekenstein–Smarr mass formula

$$\begin{aligned} M = 2TS +\Phi {}Q_h +2\psi {}\mathscr {N}+2VP \,, \end{aligned}$$
(53)

and use the identity: \(m = (r_h^2 -n^2 +q^2)/(2r_h) +\big (r_h^4 +6n^2r_h^2 -3n^4\big )/(2\,l^2r_h)\) to acquire the expression of the gravitational Misner charge:

$$\begin{aligned} \mathscr {N}= \frac{4\pi {}n^3}{r_h}\Bigg [-1 +3\frac{r_h^2 -n^2}{l^2} +q^2\frac{3r_h^2 +n^2}{\big (r_h^2 +n^2\big )^2} \Bigg ] \,. \end{aligned}$$
(54)

Then one can verify that they also completely satisfy the first law:

$$\begin{aligned} dM = TdS +\Phi {}dQ_h +\psi {}d\mathscr {N}+VdP \,. \end{aligned}$$
(55)

We would like to point out that the mass formulae presented here exactly correspond to the magnetic-type first law and Smarr-like mass formula of the unconstrained \(\psi -\mathscr {N}\) pair formalism of the consistent thermodynamics of the dyonic RN-NUT-AdS\(_4\) spacetimes [49, 50] when the asymptotic magnetic charge is turned off. In particular, the above expression for the Misner charge (54) coincides with that of \(N^{(2)}\) explicitly given by Eq. (57) in Ref. [49] after setting the magnetic charge parameter to zero.

One can also follow the same steps as did in Refs. [40, 49] to derive the above Smarr-like formula. To do so, in addition to use the generalized Komar superpotential two-form (14), one must also introduce a dual Killing co-potential \(^\star \omega \) to cancel the divergence at infinity. We shall not repeat this algebraic excise here. Instead, there is another simple way to regulate the divergence by making a subtraction from the massless pure NUT-charged background.

One can obtain the Gibbs free energy [50]

$$\begin{aligned} G= & {} \frac{m}{2} -\frac{q^2r_h\big (r_h^2 -n^2\big )}{2\big (r_h^2 +n^2\big )^2} -\frac{r_h\big (r_h^2 +3n^2\big )}{2l^2} \nonumber \\= & {} {\frac{M -\Phi {}Q_h}{2} -VP} \,, \end{aligned}$$
(56)

which coincides with those computed via the Euclidean action integral, namely \(G = I/\beta \). In order to obtain this result, one can calculate the Euclidean action [50, 68] for the Euclidean spacetime

$$\begin{aligned} I_E= & {} \frac{1}{16\pi }\int _M d^4x \sqrt{g}\Big (R +\frac{6}{l^2} -F^2\Big ) \nonumber \\{} & {} +\frac{1}{8\pi }\int _{\partial M} d^3x \sqrt{h}\Big [K -\frac{2}{l} -\frac{l}{2}\mathscr {R}(h)\Big ] \,, \end{aligned}$$
(57)

where K and \(\mathscr {R}(h)\) are the extrinsic curvature and Ricci scalar of the boundary metric \(h_{\mu \nu }\), respectively. In order to remove the divergence, the action includes, in addition to the ordinary Einstein–Hilbert term, the Gibbons-Hawking boundary term and the corresponding AdS boundary counterterms [69,70,71,72,73]. Note that the Gibbs free energy (56) should also be identified with

$$\begin{aligned} G = M -TS -\psi \mathscr {N}-\Phi {}Q_h \,. \end{aligned}$$
(58)

5.2 Topological number

In the following, we will investigate the topological number of the four-dimensional Lorentzian RN-NUT-AdS spacetime. The Helmholtz free energy simply reads

$$\begin{aligned} F = G +\Phi {}Q_h = M -TS -\psi \mathscr {N}\,. \end{aligned}$$
(59)

Replacing T with \(1/\tau \) and substituting \(l^2 = 3/(8\pi {}P)\), then the generalized off-shell Helmholtz free energy is given by

$$\begin{aligned} \mathscr {F}= & {} \frac{r_h}{2} -\frac{\pi \big (r_h^2 +n^2\big )}{\tau } +\frac{q^2r_h\big (r_h^2 -n^2\big )}{2\big (r_h^2 +n^2\big )^2}\nonumber \\{} & {} +\frac{4\pi {}P}{3}r_h\big (r_h^2 +3n^2\big ) \,. \end{aligned}$$
(60)

Thus, the components of the vector \(\phi \) are obtained as follows:

$$\begin{aligned} \phi ^{r_h}= & {} \frac{1}{2} -\frac{2\pi {}r_h}{\tau } -q^2\frac{r_h^4 -6n^2r_h^2 +n^4}{2\big (r_h^2 +n^2\big )^3} \nonumber \\{} & {} +4\pi {}P\big (r_h^2 +n^2\big ) \,, \nonumber \\ \phi ^{\Theta }= & {} -\cot \Theta \csc \Theta \,, \end{aligned}$$
(61)

from which one can obtain the zero point of the vector field \(\phi ^{r_h}\) as

$$\begin{aligned} \tau = \frac{4\pi {}r_h\big (r_h^2 +n^2\big )^3}{8\pi {}P\big (r_h^2 +n^2\big )^4 +\big (r_h^2 +n^2\big )^3 -q^2\big (r_h^4 -6n^2r_h^2 +n^4\big )} \,,\nonumber \\ \end{aligned}$$
(62)

which consistently reduces to the one obtained in the four-dimensional RN-AdS\(_4\) black hole case [24] when the NUT charge parameter n is turned off. We also point out that the annihilation point satisfies the constraint conditions:

$$\begin{aligned} \frac{\partial \tau }{\partial {}r_h} = 0 \,, \qquad \frac{\partial ^2\tau }{\partial {}r_h^2} < 0 \,. \end{aligned}$$
(63)
Fig. 5
figure 5

Zero points of the vector \(\phi ^{r_h}\) shown on the \(r_h-\tau \) plane with \(q/r_0 = 1\), \(n/r_0 = 1\), and \(Pr_0^2 = 0.2\) for the RN-NUT-AdS\(_4\) spacetime. The annihilation point for this spacetime is represented by the red dot with \(\tau _c\). There are two RN-NUT-AdS\(_4\) spacetimes when \(\tau = \tau _1\). Clearly, the topological number is: \(W = -1 +1 = 0\)

Fig. 6
figure 6

The red arrows represent the unit vector field n on a portion of the \(r_h-\Theta \) plane with \(q/r_0 = 1\), \(n/r_0 = 1\), \(Pr_0^2 = 0.2\) and \(\tau /r_0 = 1\) for the RN-NUT-AdS\(_4\) spacetime. The zero points (ZPs) marked with black dots are at \((r_h/r_0, \Theta ) = (0.74, \pi /2)\), \((1.84, \pi /2)\) for ZP\(_1\) and ZP\(_2\), respectively. The blue contours \(C_i\) are closed loops surrounding the zero points

Taking the pressure \(Pr_0^2 = 0.2\) and the NUT charge parameter \(n/r_0 = 1\) as well as the electric charge parameter \(q/r_0 = 1\) for the RN-NUT-AdS\(_4\) spacetime, we plot the zero points of \(\phi ^{r_h}\) in the \(r_h-\tau \) plane in Fig. 5 and the unit vector field n on a portion of the \(\Theta -r_h\) plane with \(\tau = r_0\) in Fig. 6, respectively. In Fig. 5, one annihilation point can be found at \(\tau /r_0 = \tau _c/r_0 = 1.10\). From Fig. 6, one can find that the zero points are located at \((r_h/r_0, \Theta ) = (0.74, \pi /2)\), and \((1.84, \pi /2)\), respectively. According to the conclusions in Ref. [15], it can be inferred that the second-order phase transition occurs in the RN-NUT-AdS\(_4\) spacetime system. Thus, it is very interesting to explore the phase transitions of the RN-NUT-AdS\(_4\) spacetime, such as the Hawking-Page phase transitions [74] and the P–V criticality [75] to check the correctness of the above conjecture. In addition, for the RN-NUT-AdS\(_4\) spacetime, we observe that the topological number is: \(W = 0\), and is different from that of the RN-AdS\(_4\) black hole, which has: \(W = 1\) [24], because the third zero point of the RN-AdS\(_4\) black hole solution vanishes once the NUT charge parameter is introduced. Therefore, it indicates that the NUT charge parameter has a remarkable effect on the topological number for the static charged asymptotically local AdS spacetime. As a result, at least according to the viewpoint of the thermodynamic topological approach, the Lorentzian RN-NUT-AdS\(_4\) spacetime should be included into a member of the black hole family.

6 Conclusions

Our results found in the present paper are now summarized in the following Table 1.

Table 1 The topological number W, numbers of generation and annihilation points for the four-dimensional Lorentzian charged Taub-NUT spacetimes

In this paper, we first derive the consistent thermodynamics of the four-dimensional Lorentzian charged RN-NUT, KN-NUT, and RN-NUT-AdS spacetimes within the framework of the (\(\psi -\mathscr {N}\))-pair formalism, which exactly correspond to the magnetic version of the full cohomogeneity (unconstrained) first law [41, 49, 50] of the dyonic NUT-charged spactimes when the magnetic charge parameter vanishes. Then we investigate their topological numbers by using the uniformly modified form of the generalized off-shell Helmholtz free energy. We found that the RN-NUT spacetime has: \(W = 0\), which is the same one as that of the RN black hole [24]. We showed that the KN-NUT spacetime has: \(W = 0\), which is identical to that of the Kerr–Newman black hole [27]. In addition, we also indicated that the RN-NUT-AdS\(_4\) spacetime has: \(W = 0\), which is different from that of the RN-AdS\(_4\) black hole (\(W = 1\)) [24]. Therefore, one can conclude that although the existence of the NUT charge parameter seems to have no impact on the topological number of the charged asymptotically locally flat spacetimes, it has an important effect on the topological number of the charged asymptotically locally AdS spacetime. Furthermore, it can be demonstrated that the four-dimensional RN-NUT, KN-NUT and RN-NUT-AdS spacetimes should be treated as generic black holes from the standpoint of the thermodynamic topological approach.

There are two promising further topics that can be pursued in the future. As mentioned above, one intriguing topic is to explore the phase transitions of the RN-NUT-AdS\(_4\) spacetime. Another one is to extend the present work to the more general dyonic cases [76] and higher-even dimensional cases [77, 78].