1 Introduction

Hydrogen cyanide (HCN) is an important component of the atmospheres of exoplanets and is observable in emission from Comets [1,2,3,4]. Highly accurate spectroscopic data is required for the interpretation of astronomical spectra and to support astrophysics with upcoming instruments (telescopes) [5,6,7,8,9]. In star formation, electron excitation contributes to the emission from dense gas tracers in molecular clouds of high-dipole moment molecules [10] like HCN and HNC. The physical conditions in different parts of the interstellar medium can be interpreted in terms of the ratio of the isomers HCN and hydrogen isocyanide (HNC) [11].

The presence of a strong \(^2\Pi \) shape resonance dominates the low-energy electron scattering from the HCN molecule and also leads to dissociative electron attachment via anion HCN\(^-\). Such processes are important in the study of molecular plasma due their effect on the chemistry. Jain and Norcross [12] reported eigenphase sum and resonance potential energy curves as a function of the stretching C-H and C-N bonds. Chourou and Orel [13,14,15] published a series of complex Kohn variational calculations of resonance parameters as function of both the stretching and bending of the molecule obtaining a complex resonance potential energy surface. They reported dissociative electron attachment (DEA) cross section for these surfaces leading to CN\(^-\) and H computed using the multi-configuration time-dependent Hartree (MCTDH) approach. They found that it was necessary to accurately consider correlation and polarization effects [14] to reproduce the observed isotope effects in the system [16].

Sanz et al. [17] reported elastic, rotational and electronically inelastic (electronic excitation and ionization) cross section computed using the symmetry adapted-single centre expansion method for the energy range (0.1–100 eV) and optical potential method for intermediate and high energies (10–10000 eV). They compared elastic differential cross sections with the experimental results of [18] at 3, 5, 11.6, 21.6, 50 eV and with theoretical results of [19] at 3, 5, 11.6 eV.

Accurate data is required for plasma modelling and astrophysics; these data can be calculated by optimum use of available computational resources based on reliable theoretical methods. These theoretical methods not only provide a good description of the solution of the problem but also provide understanding of the processes involved.

Electron-impact excitation hyperfine-resolved rotational excitation cross sections and rates of HCN and HNC were calculated using the molecular R-matrix method combined with the adiabatic-nuclei-rotation approximation by Faure et al. [20]. Faure et al. also reported differential cross section at 5 eV.

In previous R-matrix study [21], the standard UK Molecular R-matrix code (UKRmol) [22] and Quantemol-N expert system [23] were used to compute the electron scattering cross sections for both HCN and HNC; this study included up to 4 target states in a close-coupling expansion (see Eq. (1)). The present calculations are performed using the Quantemol Electron Collisions (QEC) expert system [24]. QEC runs the UKRmol+ suites of codes [25] which are optimized to generate reliable scattering calculations, in part by using integration with the MOLPRO electronic structure package [26]. MOLPRO provides an accurate description of the molecular target including its symmetry. This combination, in the which R-matrix method is empowered by MOLPRO, gives a good description of scattering calculations for electron collisions with HCN and HNC molecules, using more complex target representations than the previous R-matrix study for the same number of excited states in the close-coupling expansion. Lower resonance positions and narrower resonance widths are found due to the better description of polarization and correlation effects which arises from use of an increased target basis set, inclusion of target states and virtual orbitals. No previous calculation mentioned the effect of inclusion of virtual orbitals on the scattering results of electron collision with HCN and HNC molecules. In comparison with the previous R-matrix calculations, a significant decrease in resonance position is found: about 0.5 eV for HCN and 0.4 eV for HNC. In this paper we focused on the low-energy elastic and excitation cross sections using the static exchange (SE), static exchange plus polarization (SEP) and close-coupling (CC) models along with potential energy curves, resonance parameters, ionization cross sections, differential cross section (DCS) and momentum transfer cross sections (MTCS).

2 Calculations

2.1 R-matrix theory

The R-matrix method [27] is the most widely used ab initio method for studying electron-atom and electron-molecule collisions at low energies. Its implementation with the UK molecular R-matrix codes has been extensively discussed elsewhere [25, 28], and we refer the reader to these works for details of the underlying theory.

The underlying assumption in the R-matrix method involves the division of configuration space into two regions: inner and outer which are separate by a sphere of radius a known as the R-matrix boundary. It assumed that the wave function of the N-electron target, \(\phi _i^N (x_1 \ldots x_N )\) below where i represents a state label, is entirely contained within the inner region. In this region the (\(N+1\))-electron wave function can be written

$$\begin{aligned} \Psi _k^{N+1} (x_1 \ldots x_{N+1} )= & {} \mathcal{A} \sum _{ij} a_{ijk} \phi _i^N (x_1 \ldots x_N ) u_{ij} (x_{N+1} ) \nonumber \\{} & {} + \sum _i b_{ik} \chi _i^{N+1} (x_1 \ldots x_{N+1}) \end{aligned}$$
(1)

where \(u_{ij}\) continuum orbital here represented by Gaussian type orbital (GTOs) [x]; \(\mathcal A\) is the antisymmetrization operator which enforces the Pauli principle within the inner region. The second sum contains so-called \(L^2\) configurations obtained by placing all electrons in target orbitals, including unoccupied (virtual) ones. The coefficients in Eq. (1) are obtained by diagonalizing a Hamiltonian matrix, constructed using an efficient purpose-built algorithm [x]. This step is energy independent and therefore only needs to be performed once per symmetry. The solutions of the inner region problem are used to construct the energy-dependent R-matrix at a which is then propagated to large distances to obtain the scattering observables, see Ref.[28] for further details.

Fig. 1
figure 1

Eigenphase sum in SEP model with different number of virtual orbitals for HCN

Table 1 Vertical electronic excitation energy in eV, ground state energy in Hartree, the ground state dipole moment (\(\mu \)) and polarizability (\(\alpha )\) for HCN at its equilibrium geometry (C-H bond length 1.06 Å and C-N bond length 1.125 Å)
Table 2 Vertical electronic excitation energy in eV, ground state energy in Hartree, the ground state dipole moment (\(\mu \)) and polarizability (\(\alpha )\) for HNC at the equilibrium geometry (N-H bond length 0.982 Å and N-C bond length 1.146 Å)
Fig. 2
figure 2

Eigenphase sum in SE, SEP and CC models for HCN

2.2 Target calculations

The Quantemol Electron Collision (QEC) expert system [24], which runs both MOLPRO [26] and the new version of the UK molecular R-matrix code UKRMol+ [25], was used here to study the electron scattering from HCN and HNC molecules. QEC has been successfully used for low-energy collision cross-section calculations for a variety of molecular targets [29, 30]. Here Gaussian type orbitals (GTOs) are used to represent both the target electrons and the scattering electron. Both HCN and HNC are linear closed shell molecules with C\(_{{\infty }v}\) point group. Since MOLPRO, UKRMOL+ and QEC only allow Abelian point-groups, we use the C\(_{2v}\) point group to solve the scattering problem.

Table 3 HCN \(^2\Pi \) shape resonance parameters (in eV) for SE, SEP and CC models
Table 4 HNC \(^2\Pi \) shape resonance parameters (in eV) for SE, SEP and CC models
Fig. 3
figure 3

Potential energy curves for HCN and HCN\(^-\). Comparison of present results (using MOLPRO for HCN and QEC for the doublet HCN\(^-\) states) with the work of Chourou and Orel [13]

Fig. 4
figure 4

Elastic cross sections from different models for electron collisions with HCN (upper panel) and HNC (lower panel). Red colour curves: without Born correction; black colour curves: with Born correction; dotted curves: SE; dashed curves: SEP; solid curves: CC

For these iso-electronic (HCN and HNC) molecules, the ground state electronic configuration is 1a\(_1^2\), 2a\(_1^2\), 3a\(_1^2\), 4a\(_1^2\), 5a\(_1^2\), 1b\(_1^2\) and 1b\(_2^2\). Of these 14 electrons, our complete active space configuration interaction (CASCI) target model froze four electrons in the 1a\(_1\), 2a\(_1\) orbitals and allowed ten electrons to move freely in nine active orbitals (3a\(_1\), 4a\(_1\), 5a\(_1\), 6a\(_1\), 7a\(_1\), 1b\(_1\), 1b\(_2\), 2b\(_1\) and 2b\(_2\)).

The MOLPRO program suite [26] was used to optimize the geometry of HCN and HNC. At equilibrium geometry of HCN, the CH bond length is 1.0565 Å and CN bond length is 1.1247 Å with ground state energy \(-\)93.024 Hartree using our CASCI model with a cc-pVTZ GTO basis. At the same level of the theory for HNC, the NH bond length is 0.9817 Å and NC bond length is 1.1456 Å with ground state energy \(-\)93.009 Hartree. These energies are lower than the previous R-matrix calculation [21] which used a smaller basis set and Hartree-Fock orbitals. .

Tables 1 and 2 present the vertical excitation energies of target states of HCN and HNC respectively for our best CASCI models. The position of excited states of HCN are close to previous theoretical studies [21] and [31], whereas the dipole moment is less than previous values reported in the same table. Results of HNC target states are compared with previous theoretical studies [21] and x in Table 2. The computed value of dipole moment for HNC is 3.453 D, which is higher than the previous studies using R-matrix method [21] and experimental value 3.05 D [34]. The polarizability values obtained using MOLPRO are in excellent agreement with [34]. Use of larger basis set, optimized geometry and inclusion of virtual orbitals in CC calculations made our results of vertical excitation energies different from previous calculations [21, 31], x.

Fig. 5
figure 5

Electronic excitation cross section for electron collisions with HCN. Comparison of R-matrix calculations (using QEC) with previous study by Varambhia and Tennyson [21]

Fig. 6
figure 6

Electronic excitation cross section for electron collisions with HNC. Comparison of R-matrix calculations (using QEC) with previous study by Varambhia and Tennyson [21]

Fig. 7
figure 7

Resonance widths for HCN. Comparison of present results those of with Chourou and Orel [13]

2.3 Scattering calculations

We started the calculations with the SE model in which all target electrons are frozen. In this model, the incoming scattering electron is not allowed to polarize the Hartree-Fock target wave function. Shape resonance are detected in the SE model, albeit at higher energies, but Feshbach or core-excited resonances cannot be detected. For a better description of the scattering, extra \(L^2\) configurations are added in the SEP model which allow for polarization effects. In SEP model, one electron from the Hartree-Fock target wave function is promoted to a virtual orbital and also the scattering electron placed in a target virtual orbital. We performed SEP calculations by including increasing numbers of virtual orbitals (shown in Fig. 1) to achieve more accurate resonance parameters and cross-sections; our best model is the CC model for which the shape resonance lies at lower energy than SE and any SEP run, see Fig. 2. In the CC expansion, target electronic states are included which are described using a complete active space (CAS) [35]. In this model some target electrons are frozen while some are free to move in active space which produces more correlation effects. This journey to arrive at our best model (for both HCN and HNC) was very challenging as theoretical calculations depend on various factors like geometry, basis set, active space and choice of target wave functions to get reliable results for outer region calculations by optimum use of present computing resources. Our final model used a 24-target states CC-model (including 17 virtual orbitals) for HCN and a 25-target states CC-model (including 18 virtual orbitals) for HNC, both used cc-pVTZ GTO basis set to represent the target.

2.3.1 Electron scattering from HCN

For the CC calculations, seventeen HCN virtual orbitals are included in our final scattering calculations, seven of A\(_1\) symmetry (8a\(_1\), 9a\(_1\), 10a\(_1\), 11a\(_1\), 12a\(_1\), 13a\(_1\), 14a\(_1\)), four of B\(_1\) symmetry (3b\(_1\), 4b\(_1\), 5b\(_1\), 6b\(_1\)), four of B\(_2\) symmetry (3b\(_2\), 4b\(_2\), 5b\(_2\), 6b\(_2\)) and two of A\(_2\) symmetry (1a\(_2\), 2a\(_2\)). The electron cloud of all target electrons of HCN is enclosed in a radius of 10 a\(_0\) of inner region. 24 target states were included in the HCN CC run, which is the same as the previous R-matrix calculation [21] which, however, used a smaller basis set. 24-state CC trial runs with different number of virtual orbitals (VOs) were performed. Trials with more than 17 VOs were unsuccessful as they exceeded the available computer memory. So we arrived at a maximum number of 17 VOs to be included in the CC run. However, all the VOs (= 65) can be included in the SEP run but our best 24-state CC-model uses 17 VOs; note that this is equivalent to a 24 VO SEP model as 7 VOs are in the target CAS. This CC model gives the position of \(^2\Pi \) shape resonance 0.5 eV lower than the SEP model even with all VOs (in Table 3). This is due to the inclusion of excited states in the CC model which, in particular, give a representation of polarization in the outer region (via the dipole coupling to excited states) which is absent in the SEP model.

Fig. 8
figure 8

Electron ionization cross section of HCN (upper panel) and HNC (lower panel) molecules; solid-present results from BEB, dot-CSP-ic results of [40], dash-CSP-ic results of [41]

2.3.2 Electron scattering from HNC

Similar CC calculations were performed for HNC. Fifty virtual orbitals (VOs = 50) were included in our SEP model but our best model is the 25 state CC-model with eighteen virtual orbitals (8 to 15 a\(_1\), 3 to 6 b\(_1\), 3 to 6 b\(_2\) and 1 to 2 a\(_2\)). By increasing the number of virtual orbitals in the CC calculations, the position of \(^2\Pi \) shape resonance 0.5 eV is lower than the SEP model with 50 VOs (in Table 4).

3 Results and discussions

3.1 Potential energy curves

Potential energy curves for ground state of HCN (\(^1\Sigma ^+\)) and HCN\(^-\) (\(^2\Pi \) and \(^2\Sigma ^+\)) were produced directly from MOLPRO program using our CAS with a cc-pVTZ basis set for various geometries of the molecule by stretching the C-H bond of HCN molecule in the range from 0.4565 to 3.4565 Å with a grid 0.01 Å. Figure 3 compares the potential energy curves with the results of Chourou and Orel [13] who used a multi-reference configuration interaction (MRCI) method. Our PECs are in good shape in comparison with the curves of [13]. The crossing of our curves for \(^1\Sigma ^+\) and \(^2\Sigma ^+\) state at 4 a\(_0\) C-H bond length is higher than crossing point 2.8 a.u. of Jain and Norcross [12] but lower than [13] which occur at 4.25 a\(_0\).

3.2 Elastic and inelastic cross sections

The elastic cross sections for HCN and HNC for SE, SEP and CC models are presented in Fig. 4. The results for HCN are in good agreement with [17]. The presence of \(^2\Pi \) shape resonance can be seen in all three types of cross sections for both molecules. The position of the resonance shifts to lower energy on inclusion of polarization and correlation effects. In Figs. 5 and 6, excitation cross section of first four transition to excited states (\(^3\Sigma ^+\), \(^3\Delta \), \(^3\Pi \) and \(^3\Sigma ^-\)) of HCN and (\(^3\Pi \), \(^3\Sigma ^+\), \(^3\Delta \) and \(^1\Pi \)) of HNC is shown, respectively. A comparison with the previous R-matrix calculation by Varambhia and Tennyson [21] is shown in these figures. They reported cross sections with and without natural orbitals (NOs). The cross sections of [21] are higher suggesting that increasing the basis set leads to a significant reduction in the electronic excitation cross sections.

Fig. 9
figure 9

Differential cross section at 2, 4, 6, 8 and 10 eV for HCN

3.3 Resonance properties

A Breit-Wigner profile fit to the eigenphase sums was used to characterize resonances, and hence, resonance positions and widths were obtained using the program RESON [37]. The resonance parameters of \(^2\Pi \) shape resonance in different models are presented and compared with the previous results [14, 19, 21, 36] in Table 3 for electron collision with HCN. In Table 4, a similar comparison is reported and compared with [21] for HNC. Our results for HCN (lower resonance position at 1.97 eV and narrow resonance width about 1.05 eV) are better than the previous reported resonance parameters due to use of better basis set, inclusion of more polarization and correlation effects. No previous work on HCN and HNC molecules mentioned the effect of inclusion of different number of virtual orbitals in the scattering calculations, although such studies have been performed on other systems [38]. In comparison with the previous R-matrix calculations [21], the decrease in resonance position for both is significant, 0.5 eV for HCN and 0.4 eV for HNC.

Figure 7 compares the resonance widths for HCN; ours are found to be narrower than those of Chourou and Orel [13]. In the later studies, Chourou and Orel [14, 15] imply that improving the treatment of polarization in their scattering calculation (which presumably lowers the resonance energies and narrows the widths) gave better agreement with experiment. Note that the \(^2\Pi \) widths go to zero at large bond length (C-H bond length, r = 4 Bohr) as the resonance becomes bound en route to dissociation.

3.4 Ionization cross section

In QEC, the ionization cross section (ICS) is computed by using the binary-encounter Bethe (BEB) method [39]. According to BEB, the cross section \(\sigma _\textrm{BEB}\) is given by,

$$\begin{aligned} \sigma _\textrm{BEB}=\frac{S}{t+u+1}\biggl [\frac{1}{2}\bigl (1-\frac{1}{t^2}\bigr )\ln t+1-\frac{1}{t}-\frac{\ln t}{1+t}\biggr ], \nonumber \\ \end{aligned}$$
(2)

where \(t=T/B, u=U/B\), and \(S=4\pi a_0^2 N(R/B)^2\). a\(_0\) is the Bohr radius, and R is the Rydberg energy. BU, and N are the binding energy, the kinetic energy, and the occupation number, respectively, for the subshell. If the kinetic energy T of the incident electron is less than B, then \(\sigma _{BEB}=0\).

In Fig. 8, the maximum of ICS for HCN at 85.2 eV with a value of 3.4 Å\(^2\) using BEB. The present peak value is in fair agreement with the results 3.55 Å\(^2\) at 70 eV using complex potential ionization contribution (CSP-ic) method [40]. Another recent study [41] on electron interactions with astro chemical compounds used the same formalism (CSP-ic) and reported ionization cross section maximum value 3.13 Å\(^2\) of the curve at 100 eV, with accuracy of \(\pm 10-20\) %.

For HNC the maximum occur at 84.45 eV with a value of 3.45 Å\(^2\) using BEB. Pandya et al. [40] used CSP-ic method to compute ICS with a peak value 4.1 Å\(^2\) at 60 eV. As extensive comparisons of BEB with experiments suggest that BEB cross sections are generally reliable but have a slight tendency to underestimate the peak [42], we would suggest that Pandya et al.’s ionization cross section for HNC is too high.

Fig. 10
figure 10

Comparison of differential cross section with previous theoretical results [17] and experimental results [18] at 3 and 5 eV for HCN

Fig. 11
figure 11

Momentum transfer cross section for HCN

3.5 Differential cross section

In Fig. 9 the DCS for HCN is shown for different energies 2, 4, 6, 8 and 10 eV. At forward scattering angles, the DCS has maximum value and then gradually decreases as the angle of scattering is increased. The DCS shows a minima in between 120\(^\circ \) to 140\(^\circ \) for all energy values. Figure 10 shows a comparison with previous theoretical results [17] and experimental results [18] at electron energy 3 and 5 eV.

3.6 Momentum transfer cross section

In Fig. 11, momentum transfer cross sections for HCN are shown. A bump is observed around 4.15 eV which corresponds to the shape resonance.

4 Conclusion

With QEC, this challenging task of performing R-matrix calculations with larger basis sets using the SE, SEP and with 24 target state CC models for HCN and 25 target state CC models for HNC for electron scattering energies up to 10 eV completed. The effect of using different numbers of virtual orbitals in the calculation to represent short-range polarization effects is tested. Due to more polarization and correlation effects which increases with use of large basis set, inclusion of target states and more virtual orbitals, our results are better than previous R-matrix calculations, specifically lower resonance positions and narrow resonance widths. We believe this accurate results obtained are useful for various research fields including plasma modelling and astrophysics, as well as providing support for experimental studies.