-
Notifications
You must be signed in to change notification settings - Fork 11
/
fivel.f
1739 lines (1724 loc) · 53.3 KB
/
fivel.f
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
program fivel
c
c /////////////////////////////////////////////////////////////////
c //// The LICK 5-level atom program - FIVEL ////
c //// ////
c //// Language: FORTRAN 77 ////
c //// ////
c //// Certain astrophysically common ions have emission- ////
c //// line intensity ratios which are sensitive to either ////
c //// temperature (T) or number density (N). From an ////
c //// observed line ratio (ROBS), then, given a tem- ////
c //// perature, the density can be calculated; or, given ////
c //// the density, the temperature can be calculated. ////
c //// Similarly, given the temperature and density, ////
c //// the emission-line emissivities can be calculated. ////
c //// ////
c //// Program Structure: ////
c //// 1. "Physical conditions" ////
c //// (a) Specify 'T' option to use observed line ////
c //// ratio and density to find temperature ////
c //// (b) Specify 'N' option to use observed line ////
c //// ratio and temperature to find density ////
c //// ////
c //// 2. "Line emissivities" ////
c //// Supply temperature and density to determine ////
c //// the level populations, critical densities, ////
c //// and line emissivities ////
c //// ////
c //// MAIN Program: ////
c //// Select option 1 or 2 and ion to investigate. ////
c //// ////
c //// Subroutines: ////
c //// INPUT: Supplies data for calculation ////
c //// OUTPUT: Displays final results ////
c //// PARI: Contains atomic data independent of T ////
c //// PARII: Contains atomic data dependent on T ////
c //// SOLVE: Performs matrix algebra. Finds level ////
c //// populations (POP) and line emissivities ////
c //// (JL) as a function of N and T, and ////
c //// critical densities (NCRIT). ////
c //// TEMDEN: Employs an iterative technique (geo- ////
c //// metric bisection) to find 'T' or 'N'. ////
c //// Used only when T or N is unknown. ////
c //// ////
c //// Written May 1987/ M. M. De Robertis, R. J. Dufour, ////
c //// and R. W. Hunt. ////
c ////---------------------------------------------------------////
c //// ** The default logical units may have to be changed de- ////
c //// pending on the computer/operating system. Currently, ////
c //// unit '*' is used for input and "interactive output", ////
c //// while '6' is used for writing out the calculations. ////
c //// ////
c /////////////////////////////////////////////////////////////////
c
c _________________________________________________________________
c | |
c | MAIN PROGRAM |
c | |
c | IONUM: integer code for ion of interest |
c | ICTG: category (population or physical conditions) |
c | PHYG: logical for available "physical condition" ions |
c | POPG: logical for the available population ions |
c | A: transition probability matrix |
c | C: collision strength matrix |
c | Q: collision transition probability matrix |
c | JL: volume emissivity matrix |
c | JHB: H-beta volume emissivity |
c | NCRIT: critical density of upper level |
c | POP: relative level populations |
c | WEIGHT: statistical weights of levels |
c | T: energy above ground state matrix (1/Angstroms) |
c -----------------------------------------------------------------
c
real a(5,5),c(5,5),q(5,5),jl(5,5),t(5),pop(5)
integer kbin,ttyout,filout
logical phyg,popg
common /tty/ kbin,ttyout,filout
data kbin/5/,ttyout/6/,filout/1/
open(filout,file='fiveout.dat')
rewind filout
write(ttyout,10)
100 write(ttyout,15)
read(kbin,*,end=100,err=100) ictg
write(ttyout,*) ' '
c
c Physical conditions
c
if(ictg .eq. 1) then
c
c Ion code: Atomic number//ionization stage//N(=1),T(=2)
c
write(ttyout,*)'LICK 5-LEVEL ATOM PHYSICAL CONDITIONS CATEGORY'
write(ttyout,*)' *** AVAILABLE IONS ***'
write(ttyout,*)' 6021: C III] N; '
write(ttyout,*)' 7001: [N I] N; 7012: [N II] T;'
write(ttyout,*)' 8002: [O I] T; 8011: [O II] N;'
write(ttyout,*)' 8012: [O II] T; 8022: [O III] T;'
write(ttyout,*)' 10022: [Ne III] T; 10031: [Ne IV] N;'
write(ttyout,*)' 10042: [Ne V] T; 16011: [S II] N;'
write(ttyout,*)' 16012: [S II] T; 16022: [S III] T;'
write(ttyout,*)' 17021: [Cl III] N; 17032: [Cl IV] T;'
write(ttyout,*)' 18022: [Ar III] T; 18031: [Ar IV] N;'
write(ttyout,*)' 18032: [Ar IV] T; 18042: [Ar V] T;'
110 write(ttyout,20)
read(kbin,*,end=110,err=110) ionum
c
c For new ions add appropriate parameters in IONUM and PHYG block
c
phyg=(ionum .eq. 6021).or.(ionum .eq. 7001).or.
1 (ionum .eq. 7012).or.(ionum .eq. 8011).or.
2 (ionum .eq. 8012).or.(ionum .eq. 8022).or.
3 (ionum .eq.10022).or.(ionum .eq.10031).or.
4 (ionum .eq.10042).or.(ionum .eq.16011).or.
5 (ionum .eq.16012).or.(ionum .eq.16022).or.
6 (ionum .eq.17021).or.(ionum .eq.17032).or.
7 (ionum .eq.18022).or.(ionum .eq.18031).or.
8 (ionum .eq.18032).or.(ionum .eq.18042)
if(phyg) then
write(filout,*)' '
write(filout,*)'Physical conditions calculations
1 for ion number: ',ionum
write(filout,*)' '
call input(ionum,den,tem,robs)
call pari(ionum)
call temden(ionum,den,tem,robs,pop,jl)
if(robs .ne. 0.) call output(ionum,den,tem,pop,jl)
else
write(filout,*)'No parameters for that ion; enter another'
endif
c
c Level populations, line ratios
c
else if(ictg .eq. 2) then
popg=.true.
c
c Ion code: Atomic number//ionization stage//0(=emissivities)
c
write(ttyout,*)'LICK 5-LEVEL ATOM-POPULATIONS CATEGORY'
write(ttyout,*)' *** AVAILABLE IONS ***'
write(ttyout,*)' 6010: [C II]; '
write(ttyout,*)' 6020: C III]; 7000: [N I];'
write(ttyout,*)' 7010: [N II]; 7020: [N III];'
write(ttyout,*)' 8000: [O I]; 8010: [O II];'
write(ttyout,*)' 8020: [O III]; 10020: [Ne III];'
write(ttyout,*)' 10030: [Ne IV]; 10040: [Ne V]; '
write(ttyout,*)' 14020; Si III]; 16010: [S II]; '
write(ttyout,*)' 16020: [S III]; 16030: [S IV]; '
write(ttyout,*)' 17010: [Cl II]; 17020: [Cl III];'
write(ttyout,*)' 17030: [Cl IV]; 18020: [Ar III];'
write(ttyout,*)' 18030: [Ar IV]; 18040: [Ar V]; '
120 write(ttyout,20)
read(kbin,*,err=120,end=120) ionum
c
c For new ions, add appropriate parameters in IONUM and POPG block.
c
phyg=(ionum .eq. 6010).or.
. (ionum .eq. 6020).or.(ionum .eq. 7000).or.
. (ionum .eq. 7010).or.(ionum .eq. 7020).or.
1 (ionum .eq. 8000).or.(ionum .eq. 8010).or.
2 (ionum .eq. 8020).or.(ionum .eq.10020).or.
3 (ionum .eq.10030).or.(ionum .eq.10040).or.
3 (ionum .eq.14020).or.
4 (ionum .eq.16010).or.(ionum .eq.16020).or.
5 (ionum .eq.16030).or.
6 (ionum .eq.17010).or.(ionum .eq.17020).or.
7 (ionum .eq.17030).or.(ionum .eq.18020).or.
8 (ionum .eq.18030).or.(ionum .eq.18040)
if(popg) then
write(filout,*) 'Line emissivity calculations',
1 'for ion number ',ionum
write(filout,*) ' '
call input(ionum,den,tem,robs)
call pari(ionum)
call parii(ionum,tem)
call solve(den,tem,pop,jl)
call output(ionum,den,tem,pop,jl)
else
write(filout,*) 'No parameters for that ion; try another'
endif
c
c Stop
c
else if(ictg .eq. 3) then
stop
else
c
c Try again
c
write(ttyout,*) 'Enter 1, 2, or 3 only'
endif
go to 100
200 continue
10 format(//,20x,'<<< LICK 5-LEVEL ATOM PROGRAM >>>',//)
15 format(/,' Calculate PHYSICAL CONDITIONS(1), LINE RATIOS(2),',
1' or STOP(3): ')
20 format(' Select one of the above by typing number: ')
end
subroutine input(ionum,den,tem,robs)
c
c _________________________________________________________________
c | |
c | INPUT ROUTINE |
c | |
c | ROBS: the observed line ratio |
c | DEN: the electron number density of the gas |
c | TEM: the electron temperature of the gas |
c | PHYS: logical to decide to read ROBS |
c | |
c -----------------------------------------------------------------
c
integer kbin,ttyout,filout
logical phys
common /tty/ kbin,ttyout,filout
phys = .true.
c
c Enter relevant physical parameters as required
c
if(mod(ionum,10) .eq. 0) then
100 write(ttyout,10)
read(kbin,*,err=100,end=100) den,tem
write(filout,50) int(den),int(tem)
if(tem .lt. 1.e3 .or. tem .gt. 4.0e4) then
write(ttyout,*)'Indicated temperature outside permitted range'
stop
endif
else if(mod(ionum,10) .eq. 2) then
110 write(ttyout,20)
read(kbin,*,err=110,end=110) den
else
120 write(ttyout,30)
read(kbin,*,err=120,end=120) tem
if(tem .lt. 1.e3 .or. tem .gt. 3.6e4) then
write(ttyout,*)'Indicated temperature outside permitted range'
stop
endif
endif
c
c For new ion, line ratio must be included in IF block below
c
130 if(ionum .eq. 6021) then
write(ttyout,*) 'C III] N calculation'
write(ttyout,*) 'I(1909)/I(1907) = '
else if(ionum .eq. 7001) then
write(ttyout,*) '[N I] N calculation'
write(ttyout,*) 'I(5200)/I(5198) = '
else if(ionum .eq. 7012) then
write(ttyout,*) '[N II] T calculation'
write(ttyout,*) 'I(6548+6583)/I(5755) = '
else if(ionum .eq. 8011) then
write(ttyout,*) '[O II] N calculation'
write(ttyout,*) 'I(3726)/I(3729) = '
else if(ionum .eq. 8012) then
write(ttyout,*) '[O II] T calculation'
write(ttyout,*) 'I(3727)/I(7324) = '
else if(ionum .eq. 8022) then
write(ttyout,*) '[O III] T calculation'
write(ttyout,*) 'I(4959+5007)/I(4363) = '
else if(ionum .eq. 10022) then
write(ttyout,*) '[Ne III] T calculation'
write(ttyout,*) 'I(3869+3968)/I(3343) = '
else if(ionum .eq. 10031) then
write(ttyout,*) '[Ne IV] N calculation'
write(ttyout,*) 'I(2423)/I(2425) = '
else if(ionum .eq. 10042) then
write(ttyout,*) '[Ne V] T calculation'
write(ttyout,*) 'I(3426+3346)/I(2975) = '
else if(ionum .eq. 14011) then
write(ttyout,*) '[Si III] N calculation'
write(ttyout,*) 'I(1883)/I(1893) = '
else if(ionum .eq. 16011) then
write(ttyout,*) '[S II] N calculation'
write(ttyout,*) 'I(6717)/I(6731) = '
else if(ionum .eq. 16012) then
write(ttyout,*) '[S II] T calculation'
write(ttyout,*) 'I(6717+6731)/I(4069+4076) = '
else if(ionum .eq. 16022) then
write(ttyout,*) '[S III] T calculation'
write(ttyout,*) 'I(9069+9532)/I(6312) = '
else if(ionum .eq. 17021) then
write(ttyout,*) '[Cl III] N calculation'
write(ttyout,*) 'I(5518)/I(5538) = '
else if(ionum .eq. 17032) then
write(ttyout,*) '[Cl IV] T calculation'
write(ttyout,*) 'I(7530+8045)/I(5323) = '
else if(ionum .eq. 18022) then
write(ttyout,*) '[Ar III] T calculation'
write(ttyout,*) 'I(7136+7751)/I(5192) = '
else if(ionum .eq. 18031) then
write(ttyout,*) '[Ar IV] N calculation'
write(ttyout,*) 'I(4711)/I(4740) = '
else if(ionum .eq. 18032) then
write(ttyout,*) '[Ar IV] T calculation'
write(ttyout,*) 'I(4711+4740)/I(2854+2868) = '
else if(ionum .eq. 18042) then
write(ttyout,*) '[Ar V] T calculation'
write(ttyout,*) 'I(6435+7006)/I(4626) = '
else
phys = .false.
endif
if(phys) then
read(kbin,*,err=130,end=130) robs
write(filout,40) robs
endif
10 format(' Enter density and temperature to find ratio: ')
20 format(' Enter fixed density to find temperature: ')
30 format(' Enter fixed temperature to find density: ')
40 format(' Observed line ratio = ',f8.2)
50 format(' Electron density = ', i7,' Electron temperature = ',
. i6)
return
end
subroutine output(ionum,den,tem,pop,jl)
c
c ________________________________________________________________
c | |
c | OUTPUT |
c | |
c | POP: fraction of electrons in each level |
c | JL: volume emission coefficient |
c | JHB: volume emissivity of H-beta (case B) |
c | (using Brocklehurst's interpolation formula |
c | NCRIT: critical density |
c | XL,XI: wavelength (Angstroms), intensity |
c | (N.B.- wavelengths > 1e5 Angstroms in microns) |
c | |
c ----------------------------------------------------------------
c
real jl(5,5), pop(5), ncrit, xl(5), xi(5), jhb, jhb2
integer weight(5)
integer kbin,ttyout,filout
common/atom/c(5,5),a(5,5),ncrit(5),t(5),weight
common/tty/kbin,ttyout,filout
c
c Write level populations and critical densities
c
write(filout,*) ' '
write(filout,10) pop(1),(pop(j),ncrit(j), j=2,5)
write(filout,*) ' '
c
c Pause statement for screen convenience
c
50 if(mod(ionum,10) .eq. 0) then
write(ttyout,*) 'Hit 0 to continue'
read(kbin,*,err=50,end=50) dummy
c
c Transform wavelength into microns if > 100000 Angstroms
c If emissivity is < 1e-38 erg/s, set it to zero.
c
do 100 i=2,5
do 200 j=1,4
if(j .lt. i) then
xl(j)=1./(t(i)-t(j))
if(xl(j) .ge. 1.e5) xl(j)=xl(j)*1.e-4
xi(j)=jl(i,j)/den
if(xi(j) .lt. 1.e-38) xi(j)=0.
endif
200 continue
c
if(i .eq. 2) then
write(filout,11) (xl(k),k=1,i-1),(i,k,k=1,i-1),
1 (xi(k),k=1,i-1)
elseif(i .eq. 3) then
write(filout,12) (xl(k),k=1,i-1),(i,k,k=1,i-1),
1 (xi(k),k=1,i-1)
elseif(i .eq. 4) then
write(filout,13) (xl(k),k=1,i-1),(i,k,k=1,i-1),
1 (xi(k),k=1,i-1)
elseif(i .eq. 5) then
write(filout,14) (xl(k),k=1,i-1),(i,k,k=1,i-1),
1 (xi(k),k=1,i-1)
endif
100 continue
c
c Brocklehurst's interpolation formula for H-beta emissivity
c Accurate for DEN <= 1.e4/cm**3
c
t4=tem/1.e4
e42=1.387/t4**0.983/10.**(0.0424/t4)
jhb=e42*10.**-25
jhb2=1.24e-25*(t4**-0.87)
write(filout,15) jhb
write(filout,16) jhb2
c
c Output final results for TEM/DEN ions.
c
elseif(ionum .eq. 6021) then
write(filout,*) 'DENS(C++) = ',den
elseif(ionum .eq. 7001) then
write(filout,*) 'DENS(N0) = ',den
elseif(ionum .eq. 7012) then
write(filout,*) 'TEMP(N+) = ',tem
elseif(ionum .eq. 8011) then
write(filout,*) 'DENS(O+) = ',den
elseif(ionum .eq. 8012) then
write(filout,*) 'TEMP(O+) = ',tem
elseif(ionum .eq. 8022) then
write(filout,*) 'TEMP(O++) = ',tem
elseif(ionum .eq. 10022) then
write(filout,*) 'TEMP(Ne++) = ',tem
elseif(ionum .eq. 10031) then
write(filout,*) 'DENS(Ne+3) = ',den
elseif(ionum .eq. 10042) then
write(filout,*) 'TEMP(Ne+4) = ',tem
elseif(ionum .eq. 16011) then
write(filout,*) 'DENS(S+) = ',den
elseif(ionum .eq. 16012) then
write(filout,*) 'TEMP(S+) = ',tem
elseif(ionum .eq. 16022) then
write(filout,*) 'TEMP(S++) = ',tem
elseif(ionum .eq. 17021) then
write(filout,*) 'DENS(Cl++) = ',den
elseif(ionum .eq. 17032) then
write(filout,*) 'TEMP(Cl+3) = ',tem
elseif(ionum .eq. 18022) then
write(filout,*) 'TEMP(Ar++) = ',tem
elseif(ionum .eq. 18031) then
write(filout,*) 'DENS(Ar+3) = ',den
elseif(ionum .eq. 18042) then
write(filout,*) 'TEMP(Ar+4) = ',tem
endif
c
write(filout,*) 'Log10 x = ',alog10(den/sqrt(tem))
c
10 format(10x,'Level Populations - Critical Densities (cm**-3):',/,
110x,'Level 1: ',1pe8.2,/,
210x,'Level 2: ',1pe8.2,13x,1pe8.2,/,
310x,'Level 3: ',1pe8.2,13x,1pe8.2,/,
410x,'Level 4: ',1pe8.2,13x,1pe8.2,/,
510x,'Level 5: ',1pe8.2,13x,1pe8.2)
11 format(5x,'Wavelength',5x,f11.2,/,
1 1x,'Upper--Lower Levels',5x,'(',i1,'--',i1,') ',/,
2 2x,'Volume Emissivity ',1pe11.3,/)
12 format(20x,2f11.2,/,20x,2(5x,'(',i1,'--',i1,')'),/,
1 20x,2(1pe11.3),/)
13 format(20x,3f11.2,/,20x,3(5x,'(',i1,'--',i1,')'),/,
1 20x,3(1pe11.3),/)
14 format(20x,4f11.2,/,20x,4(5x,'(',i1,'--',i1,')'),/,
1 20x,4(1pe11.3),/)
15 format(1x,'H-beta volume emissivity (B72 interp.): ',1pe9.2,'
1 N(H+)Ne', ' erg/s',/)
16 format(1x,'H-beta volume emissivity (power law): ',1pe9.2,'
1 N(H+)Ne', ' erg/s',/)
return
end
subroutine pari(ionum)
c
c _________________________________________________________________
c | |
c | PAR I |
c | |
c | T: energy-level separation from ground in 1/Angstroms |
c | WEIGHT: statistical weights for each level |
c | A: radiative transition probabilities |
c | |
c -----------------------------------------------------------------
real ncrit
integer weight(5)
integer kbin,ttyout,filout
common /atom/ c(5,5),a(5,5),ncrit(5),t(5),weight
common /tty/ kbin,ttyout,filout
c
c Zero arrays
c
do 100 i=1,5
do 200 j=1,5
a(i,j)=0.0
c(i,j)=0.0
200 continue
100 continue
c
t(1)=0.0
if((ionum .eq. 6010) .or. (ionum .eq. 6011)
1 .or. (ionum .eq. 6012)) then
c
c C II ion parameters
c
a(2,1)=2.29e-6
a(3,1)=55.3
a(4,1)=1.71
a(5,1)=0.0
a(3,2)=65.5
a(4,2)=5.24
a(5,2)=43.2
a(4,3)=2.39e-7
a(5,3)=3.49e-14
t(2)=6.342e-7
t(3)=4.30033e-4
t(4)=4.30253e-4
t(5)=4.30536e-4
weight(1)=2
weight(2)=4
weight(3)=2
weight(4)=4
weight(5)=6
elseif((ionum .eq. 6020).or. (ionum .eq. 6021)
1 .or. (ionum .eq. 6022)) then
c
c C III ion parameters
c
a(2,1)=0.0
a(3,1)=95.9
a(4,1)=5.19e-3
a(5,1)=1.79e9
a(3,2)=2.39e-7
a(4,2)=0.0
a(5,2)=0.0
a(4,3)=2.41e-6
a(5,3)=0.0
a(5,4)=0.0
t(2)=5.23671e-4
t(3)=5.23908e-4
t(4)=5.24471e-4
t(5)=1.02352e-3
weight(1)=1
weight(2)=1
weight(3)=3
weight(4)=5
weight(5)=3
c
elseif((ionum .eq. 7000) .or. (ionum .eq. 7001)
1 .or. (ionum .eq. 7002)) then
c
c N I ion parameters
c
a(2,1)=7.27e-6
a(3,1)=2.02e-5
a(4,1)=2.71e-3
a(5,1)=6.58e-3
a(3,2)=1.27e-8
a(4,2)=3.45e-2
a(5,2)=6.14e-2
a(4,3)=5.29e-2
a(5,3)=2.76e-2
t(2)=1.92245e-4
t(3)=1.92332e-4
t(4)=2.88389e-4
t(5)=2.88393e-4
weight(1)=4
weight(2)=6
weight(3)=4
weight(4)=2
weight(5)=4
else if((ionum .eq. 7010) .or. (ionum .eq. 7011)
1 .or. (ionum .eq. 7012)) then
c
c N II ion parameters
c
a(2,1)=2.08e-6
a(3,1)=1.16e-12
a(4,1)=5.35e-7
a(3,2)=7.46e-6
a(4,2)=1.01e-3
a(5,2)=3.38e-2
a(4,3)=2.99e-3
a(5,3)=1.51e-4
a(5,4)=1.12
t(2)=4.87e-7
t(3)=1.308e-6
t(4)=1.53162e-4
t(5)=3.26888e-4
weight(1)=1
weight(2)=3
weight(3)=5
weight(4)=5
weight(5)=1
else if((ionum .eq. 7020) .or. (ionum .eq. 7021)
1 .or. (ionum .eq. 7022)) then
c
c N III ion parameters
c
a(2,1)=4.77e-5
a(3,1)=339.
a(4,1)=8.95
a(3,2)=364.
a(4,2)=59.0
a(5,2)=251.
a(4,3)=0.0
a(5,3)=0.0
a(5,4)=0.0
t(2)=1.744e-6
t(3)=5.71871e-4
t(4)=5.72468e-4
t(5)=5.73279e-4
weight(1)=2
weight(2)=4
weight(3)=2
weight(4)=4
weight(5)=6
else if((ionum .eq. 8000) .or. (ionum .eq. 8001)
1 .or. (ionum .eq. 8002)) then
c
c O I ion parameters
c
a(2,1)=8.92e-5
a(4,1)=6.34e-3
a(5,1)=2.88e-4
a(3,2)=1.74e-5
a(4,2)=2.11e-3
a(5,2)=7.32e-2
a(4,3)=7.23e-7
a(5,4)=1.22
t(2)=1.583e-6
t(3)=2.27e-6
t(4)=1.58679e-4
t(5)=3.37926e-4
weight(1)=5
weight(2)=3
weight(3)=1
weight(4)=5
weight(5)=1
else if((ionum .eq. 8010) .or. (ionum .eq. 8011)
1 .or. (ionum .eq. 8012)) then
c
c O II ion parameters
c
a(2,1)=3.82e-5
a(3,1)=1.65e-4
a(4,1)=5.64e-2
a(5,1)=2.32e-2
a(3,2)=1.2e-7
a(4,2)=1.17e-1
a(5,2)=6.15e-2
a(4,3)=6.14e-2
a(5,3)=1.02e-1
a(5,4)=2.08e-11
t(2)=2.68107e-4
t(3)=2.68302e-4
t(4)=4.04675e-4
t(5)=4.04686e-4
weight(1)=4
weight(2)=6
weight(3)=4
weight(4)=4
weight(5)=2
c
else if((ionum .eq. 8020) .or. (ionum .eq. 8021)
1 .or. (ionum .eq. 8022)) then
c
c O III ion parameters
c
a(2,1)=2.62e-5
a(3,1)=3.02e-11
a(4,1)=2.74e-6
a(3,2)=9.76e-5
a(4,2)=6.74e-3
a(5,2)=2.23e-1
a(4,3)=1.96e-2
a(5,3)=7.85e-4
a(5,4)=1.78
t(2)=1.132e-6
t(3)=3.062e-6
t(4)=2.02733e-4
t(5)=4.318577e-4
weight(1)=1
weight(2)=3
weight(3)=5
weight(4)=5
weight(5)=1
c
else if((ionum .eq. 10020) .or. (ionum .eq. 10021)
1 .or. (ionum .eq. 10022)) then
c
c Ne III ion parameters
c
a(2,1)=5.97e-3
a(3,1)=2.18e-8
a(4,1)=1.71e-1
a(5,1)=3.94e-3
a(3,2)=1.15e-3
a(4,2)=5.42e-2
a(5,2)=2.0
a(4,3)=8.51e-6
a(5,4)=2.71
t(2)=6.429e-6
t(3)=9.205e-6
t(4)=2.58408e-4
t(5)=5.57506e-4
weight(1)=5
weight(2)=3
weight(3)=1
weight(4)=5
weight(5)=1
c
else if((ionum .eq. 10030) .or. (ionum .eq. 10031)
1 .or. (ionum .eq. 10032)) then
c
c Ne IV ion parameters
c
a(2,1)=4.84e-4
a(3,1)=5.54e-3
a(4,1)=5.21e-1
a(5,1)=1.27
a(3,2)=1.48e-6
a(4,2)=1.15e-1
a(5,2)=4.0e-1
a(4,3)=3.93e-1
a(5,3)=4.37e-1
a(5,4)=2.68e-9
t(2)=4.12346e-4
t(3)=4.12795e-4
t(4)=6.24346e-4
t(5)=6.24413e-4
weight(1)=4
weight(2)=6
weight(3)=4
weight(4)=2
weight(5)=4
c
else if((ionum .eq. 10040) .or. (ionum .eq. 10041)
1 .or. (ionum .eq. 10042)) then
c
c Ne V ion parameters
c
a(2,1)=1.28e-3
a(3,1)=5.08e-9
a(4,1)=2.37e-5
a(3,2)=4.59e-3
a(4,2)=1.31e-1
a(5,2)=4.21
a(4,3)=3.65e-1
a(5,3)=6.69e-3
a(5,4)=2.85
t(2)=4.124e-6
t(3)=1.1101e-5
t(4)=3.02915e-4
t(5)=6.39136e-4
weight(1)=1
weight(2)=3
weight(3)=5
weight(4)=5
weight(5)=1
c
else if((ionum .eq. 14020) .or. (ionum .eq. 14021)
1 .or. (ionum .eq. 14022)) then
c
c Si III ion parameters
c
a(2,1)=0.0
a(3,1)=1.67e4
a(4,1)=1.2e-2
a(5,1)=2.60e9
a(3,2)=3.82e-5
a(4,2)=3.20e-9
a(5,2)=1.82e-2
a(4,3)=2.42e-4
a(5,3)=2.22
a(5,4)=2.19e-2
t(2)=5.27247e-4
t(3)=5.28533e-4
t(4)=5.31150e-4
t(5)=8.28844e-4
weight(1)=1
weight(2)=1
weight(3)=3
weight(4)=5
weight(5)=3
c
else if((ionum .eq. 16010) .or. (ionum .eq. 16011)
1 .or. (ionum .eq. 16012)) then
c
c S II ion parameters
c
a(2,1)=8.82e-4
a(3,1)=2.60e-4
a(4,1)=9.06e-2
a(5,1)=2.25e-1
a(3,2)=3.35e-7
a(4,2)=1.63e-1
a(5,2)=1.33e-1
a(4,3)=7.79e-2
a(5,3)=1.79e-1
a(5,4)=1.03e-6
t(2)=1.48530e-4
t(3)=1.48848e-4
t(4)=2.45249e-4
t(5)=2.45718e-4
weight(1)=4
weight(2)=4
weight(3)=6
weight(4)=2
weight(5)=4
c
else if((ionum .eq. 16020) .or. (ionum .eq. 16021)
1 .or. (ionum .eq. 16022)) then
c
c S III ion parameters
c
a(2,1)=4.72e-4
a(3,1)=4.61e-8
a(4,1)=5.82e-6
a(3,2)=2.07e-3
a(4,2)=2.21e-2
a(5,2)=7.96e-1
a(4,3)=5.76e-2
a(5,3)=1.05e-2
a(5,4)=2.22
t(2)=2.972e-6
t(3)=8.325e-6
t(4)=1.1320e-4
t(5)=2.7163e-4
weight(1)=1
weight(2)=3
weight(3)=5
weight(4)=5
weight(5)=1
c
else if((ionum .eq. 16030) .or. (ionum .eq. 16031)
1 .or. (ionum .eq. 16032)) then
c
c S IV ion parameters
c
a(2,1)=7.75e-3
a(3,1)=5.50e+4
a(4,1)=1.40e+2
a(3,2)=3.39e+4
a(4,2)=1.95e+4
a(5,2)=3.95e+4
a(4,3)=0.00e-2
a(5,3)=0.00e-2
a(5,4)=0.00
t(2)=9.515e-6
t(3)=7.118e-4
t(4)=7.153e-4
t(5)=7.207e-4
weight(1)=2
weight(2)=4
weight(3)=2
weight(4)=4
weight(5)=6
c
else if((ionum .eq. 17010) .or. (ionum .eq. 17011)
1 .or. (ionum .eq. 17012)) then
c
c Cl II ion parameters
c
a(2,1)=7.57e-3
a(3,1)=4.57e-7
a(4,1)=1.04e-1
a(5,1)=1.97e-2
a(3,2)=1.46e-3
a(4,2)=2.92e-2
a(5,2)=1.31
a(4,3)=9.82e-6
a(5,4)=2.06
t(2)=6.96e-6
t(3)=9.965e-6
t(4)=1.16536e-4
t(5)=2.78780e-4
weight(1)=5
weight(2)=3
weight(3)=1
weight(4)=5
weight(5)=1
c
else if((ionum .eq. 17020) .or. (ionum .eq. 17021)
1 .or. (ionum .eq. 17022)) then
c
c Cl III ion parameters
c
a(2,1)=4.83e-3
a(3,1)=7.04e-4
a(4,1)=3.05e-1
a(5,1)=7.54e-1
a(3,2)=3.22e-6
a(4,2)=3.03e-1
a(5,2)=3.23e-1
a(4,3)=1.0e-1
a(5,3)=3.16e-1
a(5,4)=7.65e-6
t(2)=1.8053e-4
t(3)=1.81186e-4
t(4)=2.9812e-4
t(5)=2.9907e-4
weight(1)=5
weight(2)=3
weight(3)=1
weight(4)=5
weight(5)=1
c
else if((ionum .eq. 17030) .or. (ionum .eq. 17031)
1 .or. (ionum .eq. 17032)) then
c
c Cl IV ion parameters
c
a(2,1)=2.14e-3
a(3,1)=2.70e-7
a(4,1)=1.54e-5
a(3,2)=8.25e-3
a(4,2)=7.23e-2
a(5,2)=2.47
a(4,3)=1.79e-1
a(5,3)=2.62e-2
a(5,4)=2.80
t(2)=4.92e-6
t(3)=1.3419e-5
t(4)=1.37676e-4
t(5)=3.2547e-4
weight(1)=1
weight(2)=3
weight(3)=5
weight(4)=5
weight(5)=1
c
else if((ionum .eq. 18020) .or. (ionum .eq. 18021)
1 .or. (ionum .eq. 18022)) then
c
c Ar III ion parameters
c
a(2,1)=3.08e-2
a(3,1)=2.37e-6
a(4,1)=3.14e-1
a(5,1)=4.17e-2
a(3,2)=5.17e-3
a(4,2)=8.32e-2
a(5,2)=3.91
a(4,3)=2.21e-5
a(5,3)=0.0
a(5,4)=2.59
t(2)=1.1121e-5
t(3)=1.5702e-5
t(4)=1.40100e-4
t(5)=3.32657e-4
weight(1)=5
weight(2)=3
weight(3)=1
weight(4)=5
weight(5)=1
c
else if((ionum .eq. 18030) .or. (ionum .eq. 18031)
1 .or. (ionum .eq. 18032)) then
c
c Ar IV ion parameters
c Transition probabilities from Kaufman & Sugar 1986, JPCRD 15, 321
c
c a(2,1)=2.23e-2
c a(3,1)=1.77e-3
c a(4,1)=8.62e-1
c a(5,1)=2.11
c a(3,2)=2.3e-5
c a(4,2)=6.03e-1
c a(5,2)=7.89e-1
c a(4,3)=0.119
c a(5,3)=0.598
c a(5,4)=4.94e-5
a(2,1)=1.72e-2
a(3,1)=2.07e-3
a(4,1)=7.62e-1
a(5,1)=1.88
a(3,2)=2.3e-5
a(4,2)=6.96e-1
a(5,2)=7.08e-1
a(4,3)=0.119
a(5,3)=0.840
a(5,4)=4.94e-5
t(2)=2.10904e-4
t(3)=2.12193e-4
t(4)=3.48555e-4
t(5)=3.50326e-4
weight(1)=4
weight(2)=4
weight(3)=6
weight(4)=2
weight(5)=4
c
else if((ionum .eq. 18040) .or. (ionum .eq. 18041)
1 .or. (ionum .eq. 18042)) then
c
c Ar V ion parameters
c
a(2,1)=7.99e-3
a(3,1)=1.24e-6
a(4,1)=3.50e-5
a(3,2)=2.72e-2
a(4,2)=0.204
a(5,2)=6.55
a(4,3)=0.476
a(5,3)=5.69e-2
a(5,4)=3.29
t(2)=7.639e-6
t(3)=2.0292e-5
t(4)=1.62994e-4
t(5)=3.79125e-4
weight(1)=1
weight(2)=3
weight(3)=5
weight(4)=5
weight(5)=1