chianti-atomic / ChiantiPy

ChiantiPy is a python package to calculate the radiative properties of astrophysical plasmas based on the CHIANTI atomic database
63 stars 32 forks source link

Ni II Energy Level Order #256

Closed trmillertr closed 4 years ago

trmillertr commented 4 years ago

Hello ChiantiPy Developers, The .elvlc file for Ni II lists the first four energy levels as 0, 8393.9, 1506.94, and 9330.04 where the first excited level (1506.94) is listed after the second excited level (8393.9). Is this order correct? For example, if I want to calculate the population levels for the 1506.94 level, is it

nion = ch.ion('ni_2',temperature=10000,eDensity=3000) nion.populate() nion.Population['population'][2]

or

nion.Population['population'][1]

Calculating over a grid of densities and comparing ratios w.r.t. ground leads me to believe that the order is not correct and should be 0, 1506.94, 8393.9, 9330.04. Please see the attached figure. In general, should the energy levels in every .elvlc file be from smallest to largest energies? It is the case for the majority that I have looked at with exceptions including Ni II.

Thank you for your help.

Ni_IIPopulationRatios

kdere commented 4 years ago

The Ni II energies come from Version 3 of the NIST database and were inserted into CHIANTI in 2009. The current version of NIST has the levels in order of their energy. However, the model in CHIANTI still has them sorted as you list: 0, 1506.94, 8393.9, 9330.04. So, the population of the level with E=1506 is listed in the energy level files as level 2 which corresponds to an index of 1: nion.Population['population'][1]. Hope this helps. Ken

trmillertr commented 4 years ago

Ok. Just to be clear, the listing in the .elvlc which has 8393.9 first and then 1506.94 is wrong and the model CHIANTI uses has them sorted from lowest to highest energies. Is that true for all models for every other species? What would be the way to see what energy level is associated with the nion.Population['population'][i] for index i? Thanks again, Tim


From: Ken Dere notifications@github.com Sent: Wednesday, October 9, 2019 1:10 PM To: chianti-atomic/ChiantiPy ChiantiPy@noreply.github.com Cc: Timothy Miller tim@huskers.unl.edu; Author author@noreply.github.com Subject: Re: [chianti-atomic/ChiantiPy] Ni II Energy Level Order (#256)

The Ni II energies come from Version 3 of the NIST database and were inserted into CHIANTI in 2009. The current version of NIST has the levels in order of their energy. However, the model in CHIANTI still has them sorted as you list: 0, 1506.94, 8393.9, 9330.04. So, the population of the level with E=1506 is listed in the energy level files as level 2 which corresponds to an index of 1: nion.Population['population'][1]. Hope this helps. Ken

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHubhttps://urldefense.proofpoint.com/v2/url?u=https-3A__github.com_chianti-2Datomic_ChiantiPy_issues_256-3Femail-5Fsource-3Dnotifications-26email-5Ftoken-3DAL5OAR5WPWCQUY36JVWU4K3QNYF6ZA5CNFSM4I7BK4OKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEAYTQZI-23issuecomment-2D540096613&d=DwMCaQ&c=Cu5g146wZdoqVuKpTNsYHeFX_rg6kWhlkLF8Eft-wwo&r=w2mAAJHXk4XPtk0z3mMbNM7zUCBlXpyRMzPXuA-y1K8&m=zV03weXU_4GrGQmewptaZ6Q6pYgbUnxC8N7PDzAIVrw&s=pn-8dK8Avmbz7nv55PmTWDkDpMvuitdVR7a32cirkTI&e=, or unsubscribehttps://urldefense.proofpoint.com/v2/url?u=https-3A__github.com_notifications_unsubscribe-2Dauth_AL5OAR6I4QX52LHV4W3WVTTQNYF6ZANCNFSM4I7BK4OA&d=DwMCaQ&c=Cu5g146wZdoqVuKpTNsYHeFX_rg6kWhlkLF8Eft-wwo&r=w2mAAJHXk4XPtk0z3mMbNM7zUCBlXpyRMzPXuA-y1K8&m=zV03weXU_4GrGQmewptaZ6Q6pYgbUnxC8N7PDzAIVrw&s=x3LoxIamyefUKwgYSECOyGxFkmP8xQvko5tNMKSWsRk&e=.

kdere commented 4 years ago

In general, but not always, the levels are sorted by energy, from lowest to highest. In the case of Ni II, they are not sorted by energy. The energy levels are shown in the /ni/ni_2/ni_2.elvlc file in the CHIANTI database or in the on-line version

kdere commented 4 years ago

the online version: https://www.chiantidatabase.org/sswidl/dbase/ni/ni_2/ni_2.elvlc can be reach from chiantidatabase.org by following the link to direct access

trmillertr commented 4 years ago

This is the file I was referring to in the original post. If I read that file, nion.Elvlc['ecm'][0:5] = 0, 8393.9, 1506.94, 9330.04, 10115.66 and from what you stated before nion.Population['population'][x=1] corresponds to the 1506.94 energy level, it doesn't match the indexing of that file (1506.94 is index 2). The 8393.9 and 1506.94 levels are switched. How can I check to see what energy level is associated with index x of nion.Population['population'][x]?


From: Ken Dere notifications@github.com Sent: Wednesday, October 9, 2019 4:43 PM To: chianti-atomic/ChiantiPy ChiantiPy@noreply.github.com Cc: Timothy Miller tim@huskers.unl.edu; Author author@noreply.github.com Subject: Re: [chianti-atomic/ChiantiPy] Ni II Energy Level Order (#256)

In general, but not always, the levels are sorted by energy, from lowest to highest. In the case of Ni II, they are not sorted by energy. The energy levels are shown in the /ni/ni_2/ni_2.elvlc file in the CHIANTI database or in the on-line version https://urldefense.proofpoint.com/v2/url?u=https-3A__www.chiantidatabase.org_sswidl_dbase_ni_ni-5F2_ni-5F2.elvlc&d=DwMCaQ&c=Cu5g146wZdoqVuKpTNsYHeFX_rg6kWhlkLF8Eft-wwo&r=w2mAAJHXk4XPtk0z3mMbNM7zUCBlXpyRMzPXuA-y1K8&m=INBfgomEj6qNO0nBjQIoN9xLkDTCyaRK9TFXJAFMlVE&s=BSfkieVKNhQtEaXAOSTV89hrjBZBipjWuYSu3_-fxmg&e=

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHubhttps://urldefense.proofpoint.com/v2/url?u=https-3A__github.com_chianti-2Datomic_ChiantiPy_issues_256-3Femail-5Fsource-3Dnotifications-26email-5Ftoken-3DAL5OAR7GV6MSKFZX5SWH4KDQNY7ADA5CNFSM4I7BK4OKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEAZJMGA-23issuecomment-2D540186136&d=DwMCaQ&c=Cu5g146wZdoqVuKpTNsYHeFX_rg6kWhlkLF8Eft-wwo&r=w2mAAJHXk4XPtk0z3mMbNM7zUCBlXpyRMzPXuA-y1K8&m=INBfgomEj6qNO0nBjQIoN9xLkDTCyaRK9TFXJAFMlVE&s=VMXD8RFmGcVfjSx5wvsGj8E_UY8dHDTx7Tca6LPjvPI&e=, or unsubscribehttps://urldefense.proofpoint.com/v2/url?u=https-3A__github.com_notifications_unsubscribe-2Dauth_AL5OARZD4HXFDGYC2FJKF7LQNY7ADANCNFSM4I7BK4OA&d=DwMCaQ&c=Cu5g146wZdoqVuKpTNsYHeFX_rg6kWhlkLF8Eft-wwo&r=w2mAAJHXk4XPtk0z3mMbNM7zUCBlXpyRMzPXuA-y1K8&m=INBfgomEj6qNO0nBjQIoN9xLkDTCyaRK9TFXJAFMlVE&s=Yr_bFXfMPlEkGNqCrzdbkGIWQEQA3n8JTeOVdt_NeO8&e=.

kdere commented 4 years ago

nion.Elvlc['pretty'][x] will give you the level description

trmillertr commented 4 years ago

Ok, but it is getting that information from the ni_2.elvlc file of which for the 8393.9 and 1506.94 energy levels are out of order. Is there an alternate way to check what energy level is associated with the nion.Population['population'][x], or is it assumed that the indexing is x=0=lowest energy level, i.e. 0 cm^-1, x=1=next highest energy level, i.e. 1506.94 cm^-1, etc. even though the order in the ni_2.elvlc file is not from smallest to largest?


From: Ken Dere notifications@github.com Sent: Thursday, October 10, 2019 9:56 AM To: chianti-atomic/ChiantiPy ChiantiPy@noreply.github.com Cc: Timothy Miller tim@huskers.unl.edu; Author author@noreply.github.com Subject: Re: [chianti-atomic/ChiantiPy] Ni II Energy Level Order (#256)

nion.Elvlc['pretty'][x] will give you the level description

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHubhttps://urldefense.proofpoint.com/v2/url?u=https-3A__github.com_chianti-2Datomic_ChiantiPy_issues_256-3Femail-5Fsource-3Dnotifications-26email-5Ftoken-3DAL5OARZOUXEA4UN6NJM3QH3QN4YAFA5CNFSM4I7BK4OKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEA4NXFA-23issuecomment-2D540597140&d=DwMCaQ&c=Cu5g146wZdoqVuKpTNsYHeFX_rg6kWhlkLF8Eft-wwo&r=w2mAAJHXk4XPtk0z3mMbNM7zUCBlXpyRMzPXuA-y1K8&m=MtOnt-1hCazNGTiyfH9k5MutQgkuu2d1SuOX_EL_01c&s=6Ho0mO0mY9Hw4mT_NHLx-fK_pEE-XBQp44o9R0w2ljA&e=, or unsubscribehttps://urldefense.proofpoint.com/v2/url?u=https-3A__github.com_notifications_unsubscribe-2Dauth_AL5OAR2YOM7O2K54HQB7TNLQN4YAFANCNFSM4I7BK4OA&d=DwMCaQ&c=Cu5g146wZdoqVuKpTNsYHeFX_rg6kWhlkLF8Eft-wwo&r=w2mAAJHXk4XPtk0z3mMbNM7zUCBlXpyRMzPXuA-y1K8&m=MtOnt-1hCazNGTiyfH9k5MutQgkuu2d1SuOX_EL_01c&s=25squ9Mu_-R-hZBElW3gS9GyzhFIe_vVs5gCyhRyaoE&e=.

kdere commented 4 years ago

yes, it just goes by the indexing, 0 for the ground level and on up, 1 for the next level and so on

pryoung commented 4 years ago

Hi Tim,

I put the Ni II model into CHIANTI so I'll comment about the indexing. Typically when I do a CHIANTI model I'll take the level ordering from the theoretical model that gives the electron excitation data. In this case it's the Bautista (2004) paper. He assigned the 3d^9 levels to indices 1 and 3, and 4s 4F9/2 as index 2. As you've noted, the NIST energy ordering is different. The index ordering does not make any difference to the calculation of level populations. So even if the 3d^9 levels were given indices 1 and 10, and the 4F9/2 level was given index 7, then the results will still be the same.

Now, Ni II is somewhat unusual in that the 4F9/2 gains population more quickly than 3d9 2D3/2 as density increases. Typically levels gain population in the order determined by their energies, so you would expect 2D3/2 to gain population first. The reason is that the 4F9/2 level has a much smaller radiative decay rate to the ground than 2D3/2, and there is no decay rate from 4F9/2 to 2D3/2. The unusual hump in the 4F9/2 population I believe is due to level 4 (4F7/2). At low densities there are excitations from level 1 to level 4, which then decays to level 2. As 4F7/2 gains population then the direct electron de-excitation from level 4 to level 2 becomes dominant but is actually less efficient (in terms of transitions per second) and so the level 2 population drops relative to the other levels.

Hope this makes sense, Peter.

trmillertr commented 4 years ago

Hi Peter,

If that's the case then the order listed in the ni_2.elvlc for the energy levels is the same order that nion.Population['population'] has, with 8393.9 indexed 1 and 1506.94 indexed 2. Correct? This is the opposite of what Ken originally said so I want to make sure I am understanding which energy level is associated with each population.

Thank you, Tim


From: pryoung notifications@github.com Sent: Thursday, October 10, 2019 12:44 PM To: chianti-atomic/ChiantiPy ChiantiPy@noreply.github.com Cc: Timothy Miller tim@huskers.unl.edu; Author author@noreply.github.com Subject: Re: [chianti-atomic/ChiantiPy] Ni II Energy Level Order (#256)

Hi Tim,

I put the Ni II model into CHIANTI so I'll comment about the indexing. Typically when I do a CHIANTI model I'll take the level ordering from the theoretical model that gives the electron excitation data. In this case it's the Bautista (2004) paper. He assigned the 3d^9 levels to indices 1 and 3, and 4s 4F9/2 as index 2. As you've noted, the NIST energy ordering is different. The index ordering does not make any difference to the calculation of level populations. So even if the 3d^9 levels were given indices 1 and 10, and the 4F9/2 level was given index 7, then the results will still be the same.

Now, Ni II is somewhat unusual in that the 4F9/2 gains population more quickly than 3d9 2D3/2 as density increases. Typically levels gain population in the order determined by their energies, so you would expect 2D3/2 to gain population first. The reason is that the 4F9/2 level has a much smaller radiative decay rate to the ground than 2D3/2, and there is no decay rate from 4F9/2 to 2D3/2. The unusual hump in the 4F9/2 population I believe is due to level 4 (4F7/2). At low densities there are excitations from level 1 to level 4, which then decays to level 2. As 4F7/2 gains population then the direct electron de-excitation from level 4 to level 2 becomes dominant but is actually less efficient (in terms of transitions per second) and so the level 2 population drops relative to the other levels.

Hope this makes sense, Peter.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHubhttps://urldefense.proofpoint.com/v2/url?u=https-3A__github.com_chianti-2Datomic_ChiantiPy_issues_256-3Femail-5Fsource-3Dnotifications-26email-5Ftoken-3DAL5OAR22VI4KYPVQBJL7JWLQN5LVXA5CNFSM4I7BK4OKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEA5AHFY-23issuecomment-2D540672919&d=DwMCaQ&c=Cu5g146wZdoqVuKpTNsYHeFX_rg6kWhlkLF8Eft-wwo&r=w2mAAJHXk4XPtk0z3mMbNM7zUCBlXpyRMzPXuA-y1K8&m=zIjnEAeK9uYTcQFLhTQ_zZWZ7kNGsCPoPxm8SxWwSYI&s=3tCbHgtQh70oUsBJdgg5K7YKuq6LtBQNOTwGgAy9atw&e=, or unsubscribehttps://urldefense.proofpoint.com/v2/url?u=https-3A__github.com_notifications_unsubscribe-2Dauth_AL5OAR5OYMC2S6DH7J3D5G3QN5LVXANCNFSM4I7BK4OA&d=DwMCaQ&c=Cu5g146wZdoqVuKpTNsYHeFX_rg6kWhlkLF8Eft-wwo&r=w2mAAJHXk4XPtk0z3mMbNM7zUCBlXpyRMzPXuA-y1K8&m=zIjnEAeK9uYTcQFLhTQ_zZWZ7kNGsCPoPxm8SxWwSYI&s=Xms_km7tQNNuf7BduVRkdhaxoe7wTF6O94WFl2idfwA&e=.

pryoung commented 4 years ago

Yes, I believe so. I work with the IDL version of CHIANTI and that's how the indexing works there. I don't think ChiantiPy would be different.

kdere commented 4 years ago

In that respect, ChiantiPy works the same as the IDL package.