root/trunk/tsuite/auto/blr_kk81.in

Revision 2578, 24.9 kB (checked in by gary, 3 weeks ago)

series of bug fixes after email from Michel Fioc - wavelengths of lines entered into lindst did not agree with energy pointed to by ipCont. added assert that the specified line wavelength and the continuum energy of ipCont are in rough agreement. this exposed a number of bugs which are fixed in this rev.

the wavelength in the argument to lindst is the one printed in the output. this can't change due to the code's history or spectroscopic convention. The continuum bands are even worse since the "ID" for the band was set by observers longs ago and often is nowhere near the center of the band. in this case a negative wavelength says not to do the check at all.

Really the printed wavelength and the continuum index should be derived from the same data. this goes back to the problem of how lines are identified in the output that we discussed at Imperial early this year.

data files -
Fe Ka wavelength changed from 2A to 1.78A - more accurate

cont_createpointers.cpp - ipCont for satellite lines was not allowed to go above ionization potential of species.
do not allow wavelength label for continuum bands to lie outside the band

lines_service.cpp - assert that wavelength of line is in rough agreement with line energies dervied from continuum index

prt_lines_continuum.cpp negative wavelength says not to check that label wavelength for continuum bands is in agreement with continuum index - wavelegth label is set by observational papers and not in agreement with center of band

Fe 22, update level energies and line wavelengths

  • Property svn:eol-style set to native
Line 
1title old blr
2// >>refer      tsuite  blr     Kwan, H., & Krolik, J. 1981, Ap.J. 250, 478
3c
4c commands controlling continuum =========
5interpolate (0 -5) (.05 -5) (.1 0) (1 -0.5) (7.353 -2.233)
6continue (735 -3.233) (800 -15) (8.e6 -15)
7f(nu) -7.32148
8constant gas pressure
9c
10c commands for density & abundances =========
11hden 9.60206
12init file="c84.ini"
13abundances he-1 c-3.699 n-4 o-3.1549 ne-4 na=-8 mg-4.5229
14continue al-10 si-4.4229 s-10 ar-10 ca-10 fe-4.5229 ni=-8
15c
16c commands controlling geometry  =========
17stop column density 23
18c
19c other commands for details     =========
20failures 2
21iterate to convergence
22c
23c commands controlling output    =========
24print line faint -1
25print ages
26normalise "H  1" 1216 100
27plot continuum range -3
28punch overview last "blr_kk81.ovr"
29punch dr last "blr_kk81.dr"
30punch asserts last "blr_kk81.asr"
31punch continuum last "blr_kk81.con"
32punch ionizing continuum "blr_kk81.ion"
33c
34c commands giving the asserts    =========
35assert pressure error < 0.002
36// >>chng 01 dec 21, inner shell yields, 7.777 to 7.801
37assert line luminosity "TOTL" 1216  7.801
38//
39// >>chng 00 oct 03, from 5.55 to 6.09, cont rebin, H- opac bug
40// >>chng 01 mar 09, from 6.09 to 4.43, H redis function
41// >>chng 01 apr 03, from 4.43 to 5.305, convergence criteria, feii bug
42// >>chng 02 may 09, from 5.356 to 5.641, e scat escap prob
43// >>chng 03 apr 11, from 5.64 to 6.72 PopOpc bug
44// >>chng 03 may 17, from 6.72 to 7.09, h line pump update
45// >>chng 03 sep 09, from 7.09 to 6.72, diff fields
46// >>chng 04 may 13, from 6.72 to 6.285, dest albedo chng
47// >>chng 04 jun 01, from 6.285 to 6.82, unified calc of Lya line width
48// >>chng 05 mar 12, from 6.82 to 5.84 RP merge He-like code
49// >>chng 06 jul 18, from 5.84 to 9.04, RP major upgrade VS coll strengths
50// >>chng 07 jul 27, from 9.04 to 7.34, repair common error in several collision routines
51// >>chng 07 oct 25, from 7.34 to 8.28, bugfix stark broadening incorrect
52// >>chng 07 dec 19, from 8.28 to 7.82, changes in r1698
53// >>chng 08 mar 17, from 7.82 to 4.84, r1844 - mostly iso PopOpc and rt_line_one_tauinc changes
54// >>chng 08 apr 10, from 4.84 to 3.88, change default h-like levels, other minor changes
55// >>chng 08 apr 20, incr error to more realistic 10%
56assert line "TOTL" 4861     3.88 0.1
57//
58// >>chng 00 oct 03, from 17.2 to 18.4 cont rebin, H- opac bug
59// >>chng 01 mar 09, from 18.4 to 14.0 H redis function
60// >>chng 01 apr 03, from 14.0 to 35.89 convergence criteria, feii bug
61// >>chng 01 sep 24, from 35.4 to 33.1, 2s2p br chng
62// >>chng 02 nov 20, from 33.1 to 35.1, new he ots dif
63// >>chng 03 apr 11, from 35.1 to 40.2 PopOpc bug
64// >>chng 03 aug 22, from 40.2 to 43.9, line overlap
65// >>chng 03 nov 08, from 43.9 to 41.6, diff reset bugincr error
66// >>chng 05 mar 12, from 41.6 to 37.8 RP merge He-like code
67// >>chng 06 jul 18, from 37.8 to 45.7, RP major upgrade VS coll strengths
68// >>chng 07 oct 07, from 45.7 to 45.7, drift down
69// >>chng 08 mar 17, from 41.6 to 36.8, r1844 - mostly iso PopOpc and rt_line_one_tauinc changes
70// >>chng 08 apr 10, from 36.8 to 31.0, change default h-like levels, other minor changes
71assert line "H  1" 6563    31.0 error 0.1
72//
73// >>chng 00 oct 03, from 58.6 to 65.7 cont rebin, H- opac bug
74// >>chng 01 mar 09, from 65.7 to 69.4 H redis function
75// >>chng 01 apr 03, from 69.4 to 61.7 convergence criteria, feii bug
76// >>chng 01 aug 26, from 60.2 to 56.55, con res 2x better
77// >>chng 03 apr 11, from 56.6 to 52.7 PopOpc bug
78// >>chng 03 may 23, from 52.7 to 55.7, H excit escp prob
79// >>chng 03 oct 16, from 55.7 to 51.0, feii cooling, ots cleanup
80// >>chng 04 apr 28, from 51.0 to 47.8, He+ - H ct rate update
81// >>chng 04 jun 01, from 47.8 to 54.6, unified calc of Lya line width
82// >>chng 05 mar 12, from 54.6 to 56.9 RP merge He-like code
83// >>chng 06 jul 18, from 56.9 to 51.9, RP major upgrade VS coll strengths
84// >>chng 07 jul 25, from 51.9 to 49.5 bugfix pvh FeII tau r1290
85// >>chng 07 jul 27, from 49.5 to 52.1, repair common error in several collision routines
86// >>chng 07 oct 26, from 52.1 to 55.1, due to changes in r1472
87// >>chng 08 apr 03, from 55.1 to 59.7 include 10830 in fine opacity array
88// >>chng 08 apr 10, from 59.7 to 63.3, change default h-like levels, other minor changes
89assert line "Ba C"    0    63.3
90//
91// >>chng 01 aug 17, from 37.6 to 35.7, slow drift in results
92// >>chng 02 may 07, from 35.7 to 37.5, slow drift up
93// >>chng 02 jul 23, from 37.5 to 35.6, slow drift, add error
94// >>chng 04 apr 28, from 35.6 to 31.7, He+ - H ct rate update
95// >>chng 04 jul 17, from 31.7 to 34.8, drift up
96// >>chng 06 dec 10, from 34.8 to 31.7, drift down
97// >>chng 07 oct 27, from 31.7 to 35.8, add up lev opac to WNW FeII model
98assert line "Pa C"    0    35.8 error 0.1
99//
100// >>chng 01 apr 03, from 2.82 to 3.12 convergence criteria, feii bug
101// >>chng 03 may 22, from 3.103 to 3.408, Lya dest prob DEST0
102// >>chng 04 jun 01, from 3.408 to 2.31 unified calc of Lya line width
103// >>chng 06 jul 18, from 2.31 to 2.66, RP major upgrade VS coll strengths
104// >>chng 07 oct 22, from 2.66 to 2.31, resolve l-levels of h-like sequence
105// >>chng 08 apr 03, from 2.31 to 2.10 include 10830 in fine opacity array
106assert line "H  1"    0     2.10 error 0.1
107//
108// >>chng 01 aug 26, from 2.93 to 2.781 con res 2x better
109// >>chng 03 jun 10, from 2.79 to 2.933, larger H atom, top topoff
110// >>chng 04 apr 28, from 2.933 to 2.743 He+ - H ct rate update
111// >>chng 04 jul 03, from 2.743 to 2.888, NA update H, CO chem net
112assert line "H-FB"    0     2.888
113//
114// >>chng 01 aug 26, from 1.456 to 1.383 con res 2x better
115// >>chng 03 jun 02, from 1.383 to 1.457, larger default H atom
116// >>chng 04 apr 28, from 1.457 to 1.363 He+ - H ct rate update
117// >>chng 05 oct 01, from 1.363 to 1.414, drift
118// >>chng 08 oct 18, from 1.414 to 1.48, include Badnell UTA data
119assert line "H2+ "    0     1.48
120//
121// >>chng 00 oct 03, from 39.2 to 43.9 cont rebin, H- opac bug
122// >>chng 01 apr 10, from 43.9 to 41.6, better convergence
123// >>chng 02 may 27, from 40.7 to 43.8, improved gaunt factors
124// >>chng 02 jun 21, from 43.8 to 39.7, improved gaunt factors
125// >>chng 03 apr 11, from 39.7 to 37.4 PopOpc bug
126// >>chng 03 may 22, from 37.4 to 39.4 Lya dest prob DEST0
127// >>chng 03 nov 08, from 39.4 to 36.7, diff reset bugincr error
128// >>chng 08 aug 04, from 36.7 to 40.0, speed hack bug fix
129assert line "H FF"    0    40.0 error 0.1
130//
131// >>chng 01 jul 04, from 4.015 to 3.754, change in diffuse fields
132// >>chng 02 may 09, from 3.754 to 5.014, e scat escap prob
133// >>chng 02 jun 13, from 5.014 to 3.65, increase error
134// >>chng 04 may 13, from 3.65 to 3.160, dest albedo chng
135// >>chng 04 jun 01, from 3.160 to 6.18 unified calc of Lya line width
136// >>chng 04 jul 17, from 6.18 to 5.61, drift down
137// >>chng 07 jul 27, from 5.61 to 6.23, repair common error in several collision routines
138// >>chng 07 oct 26, from 6.23 to 5.47, due to changes in r1472
139// >>chng 08 mar 22, from 5.47 to 4.97, changed deltan=0 yrare A's
140// >>chng 08 apr 10, from 4.97 to 5.69, change default h-like levels, other minor changes
141assert line "H- H" 0 5.69 error 0.1
142//
143// >>chng 01 dec 21, inner shell yields, 239 to 226 to 7.801
144// >>chng 03 may 06, Lya pesc bug, 226.3 to 237.8
145// >>chng 03 nov 08, from 237.8 to 224.6 diff reset bug
146// >>chng 06 nov 29, from 224.6 to 214.0 Badnell DR turned on
147// >>chng 08 apr 30, from 214 to 225 H, He topoff change
148assert line "totm" 0 225 error 0.1
149//
150// >>chng 00 oct 03, from 2.955 to 3.301 cont rebin, H- opac bug
151// >>chng 01 aug 17, from 3.301 to 3.627, scattering part of escap prob
152// >>chng 02 jan 19, from 3.627 to 3.441, slow drift down
153// >>chng 02 dec 11, from 3.441 to 5.354, new hei
154// >>chng 03 apr 11, from 5.35 to 5.02 PopOpc bug
155// >>chng 04 may 19, from 5.02 to 4.50, RP update helike sequence
156// >>chng 04 jul 03, from 4.50 to 5.28 NA update H, CO chem net
157// >>chng 05 mar 12, from 5.28 to 5.68 RP merge He-like code
158// >>chng 05 dec 20, from 5.68 to 5.97, RP change default helium levels
159// >>chng 08 mar 22, from 5.97 to 5.28 bugfix r1879
160// >>chng 08 apr 03, from 5.28 to 4.47 include 10830 in fine opacity array
161// >>chng 08 apr 10, from 4.47 to 4.72, change default h-like levels, other minor changes
162assert line "TOTL" 10830    4.72
163//
164// >>chng 00 dec 01, from .6368 to .690, change in sec ioniz effic
165// >>chng 01 mar 09, from 0.69 to 0.75 H redis function
166// >>chng 02 dec 11, from 0.75 to 1.273, new hei
167// >>chng 03 apr 11, from 1.27 to 1.17 PopOpc bug
168// >>chng 03 may 02, from 1.17 to 1.11 improved conv
169// >>chng 03 jun 02, from 1.11 to 1.171, larger default H atom
170// >>chng 03 aug 22, from 1.17 to 1.11, line overlap
171// >>chng 04 mar 04, from 1.11 to 1.05, slow drift
172// >>chng 04 jul 03, from 1.05 to 1.36 NA update H, CO chem net
173// >>chng 05 mar 12, from 1.36 to 1.21 RP merge He-like code
174// >>chng 05 oct 01, from 1.210 to 1.333, RP update levels
175// >>chng 08 mar 22, from 1.330 to 0.940, bugfix r1879
176// >>chng 08 apr 03, from 0.940 to 0.996, include 10830 in fine opacity array
177// >>chng 08 apr 10, from 0.996 to 1.063, change default h-like levels, other minor changes
178// >>chng 08 dec 13, from 1.063 to 1.001, merging newsolvers branch
179assert line "he 1" 5876     1.001
180//
181// >>chng 01 mar 09, from 0.272 to 0.293 H redis function
182// >>chng 01 jul 04, from 0.293 to 0.328 change in diffuse fields
183// >>chng 02 jan 09, from .328 to .348, interate to convergence
184// >>chng 04 sep 06, from 0.348 to 0.321, bug nej Auger
185// >>chng 07 oct 22, from 0.321 to 0.274, resolve l-levels of h-like sequence
186// >>chng 07 dec 02 from 0.274 to 0.287, changes in H-like seq
187// >>chng 08 mar 17, from 0.287 to 0.364, r1844 - mostly iso PopOpc and rt_line_one_tauinc changes
188assert line "He 2" 4686     0.364
189//
190// >>chng 01 jul 04, from 2.293 to 2.653 change in diffuse fields
191// >>chng 02 jan 09, from 2.653 to 2.799 interate to convergence
192// >>chng 05 feb 06, from 2.799 to 2.672, slow drift
193// >>chng 07 oct 22, from 2.672 to 2.506, resolve l-levels of h-like sequence
194// >>chng 08 mar 17, from 2.506 to 2.872, r1844 - mostly iso PopOpc and rt_line_one_tauinc changes
195assert line "He 2" 1640     2.872
196//
197// >>chng 00 aug 18, from 3.705 to 4.831 as result of breaking out bo seq
198// >>chng 01 jul 04, from 4.87 to 4.598 change in diffuse fields
199// >>chng 03 apr 30, from 4.598 to 4.94, csupra logic change
200// >>chng 04 jun 01, from 4.94 to 6.78 unified calc of Lya line width
201// >>chng 05 mar 12, from 6.78 to 6.42 RP merge He-like code
202// >>chng 06 jul 18, from 6.42 to 7.19, RP major upgrade VS coll strengths
203// >>chng 07 jul 27, from 7.19 to 6.59, repair common error in several collision routines
204// >>chng 07 nov 17, from 6.59 to 6.17, changes in r1512
205// >>chng 08 mar 17, from 6.17 to 5.84, r1844 - mostly iso PopOpc and rt_line_one_tauinc changes
206// >>chng 08 apr 10, from 5.84 to 5.32, change default h-like levels, other minor changes
207assert line "totl" 2326     5.32
208//
209// >>chng 00 aug 18, from 0.713 to 0.559 as result of breaking out bo seq
210// >>chng 00 dec 20, from 0.559 to 0.587, improved pumping algorithm
211// >>chng 01 mar 09, from 0.587 to 0.621 H redis function
212// >>chng 01 sep 12, from 0.621 to 0.587 ?
213// >>chng 02 jun 15, from 0.587 to 0.546, slow drift
214// >>chng 03 apr 11, from 0.55 to 0.51 PopOpc bug
215// >>chng 03 aug 15, from 0.51 to 0.54, add low-T fe DR, incr error
216// >>chng 04 jun 01, from 0.54 to 0.62 unified calc of Lya line width
217// >>chng 04 jun 12, from 0.62 to 0.71 chng cont shield fcn
218// >>chng 06 nov 29, from 0.71 to 0.79 Badnell DR turned on
219assert line "C  2" 1335     0.79 error 0.1
220//
221// >>chng 00 oct 19, increase error due to sensitivity to cont mesh
222// >>chng 02 jan 09, from 5.76 to 5.40 ?? */
223// >>chng 03 nov 23, from 5.40 to 5.068, Kraemer et al. guess of dr
224// >>chng 04 sep 12, from 5.068 to 5.36, drift up
225// >>chng 06 nov 29, from 5.36 to 8.74 Badnell DR turned on
226assert line "C  3"  977     8.74 error 0.06
227//
228// >>chng 01 mar 09, from 13.24 to 14.3 H redis function
229// >>chng 01 dec 21, inner shell yields, 14.3 to 13.1
230// >>chng 03 apr 11, from 13.1 to 11.9 PopOpc bug
231// >>chng 04 sep 06, from 11.9 to 12.7 bug nej Auger
232// >>chng 06 nov 29, from 12.7 to 17.2 Badnell DR turned on
233// >>chng 08 apr 10, from 17.2 to 18.1, change default h-like levels, other minor changes
234assert line "TOTL" 1909    18.1
235//
236// >>chng 02 aug 20, from 68.11 to 64.66, slow drift
237// >>chng 06 nov 29, from 64.66 to 50.77 Badnell DR turned on
238assert line "TOTL" 1549    50.77
239//
240// >>chng 00 aug 18, from 4.165 to 3.665 as result of breaking out bo seq
241// >>chng 01 mar 09, from 3.67 to 3.91 H redis function
242// >>chng 01 dec 21, inner shell yields, 3.91 to 3.62
243// >>chng 03 apr 11, from 3.62 to 3.35 PopOpc bug
244// >>chng 05 oct 01, from 3.35 to 3.48, drift
245// >>chng 07 jan 20, from 3.48 to 3.66 e2 bug
246// >>chng 08 apr 10, from 3.66 to 3.85, change default h-like levels, other minor changes
247assert line "totl" 1750     3.85
248//
249// >>chng 01 mar 09, from 1.35 to 1.44 H redis function
250// >>chng 01 dec 21, inner shell yields, 1.44 to 1.338
251// >>chng 03 apr 11, from 1.34 to 1.26 PopOpc bug
252// >>chng 06 nov 29, from 1.26 to 1.43 Badnell DR turned on
253// >>chng 08 apr 10, from 1.43 to 1.51, change default h-like levels, other minor changes
254assert line "N  3"  991.0A     1.51
255//
256// >>chng 03 nov 23, from 5.130 to 4.863, Kraemer et al. guess of dr
257// >>chng 06 nov 29, from 4.864 to 5.999 Badnell DR turned on
258assert line "N  4" 1486A     5.9995
259//
260// >>chng 01 mar 09, from 3.72 to 3.94 H redis function
261// >>chng 01 dec 21, inner shell yields, 3.94 to 4.35
262// >>chng 04 sep 06, from 4.35 to 3.76 bug nej Auger
263// >>chng 06 nov 29, from 3.766 to 3.06 Badnell DR turned on
264// >>chng 08 aug 04, from 3.06 to 3.20, speed hack bug fix
265assert line "TOTL" 1240     3.20
266//
267// >>chng 00 oct 03, from 8.21 to 3.301 cont rebin, H- opac bug
268// >>chng 01 mar 09, from 6.44 to 6.80 H redis function
269// >>chng 01 jun 15, from 6.306 to 6.06 CT rates update
270// >>chng 01 jul 04, from 6.06 to 5.586 change in diffuse fields
271// >>chgn 01 jul 12, from 5.585 to 5.76, the average of the
272// answers on the ncx and pc - don't know why they do not agree
273// >>chng 01 jul 21, from 5.76 to 6.06, very sensitive
274// >>chng 03 nov 06, from 6.06 to 5.43, drift down
275// >>chng 04 jun 02, from 5.43 to 4.86, drift down
276// >>chng 06 jul 18, from 4.86 to 5.74, RP major upgrade VS coll strengths
277// >>chng 07 oct 22, from 5.74 to 4.60, resolve l-levels of h-like sequence
278// >>chng 08 mar 17, from 4.60 to 5.35, r1844 - mostly iso PopOpc and rt_line_one_tauinc changes
279// >>chng 08 apr 03, from 5.35 to 4.79 include 10830 in fine opacity array
280// >>chng 08 apr 30, from 4.79 to 4.23 H, He topoff change
281assert line "6lev" 1304     4.23 error 0.15
282//
283// >>chng 01 mar 09, from 18.26 to 19.3 H redis function
284// >>chng 02 may 09, from 19.3 to 18.3 e scat escap prob
285// >>chng 03 nov 23, from 18.3 to 17.4 Kraemer et al. guess of dr
286// >>chng 06 jul 25, from 17.4 to 15.1, HN update OIII collision data
287// >>chng 07 jul 27, from 15.1 to 15.9, repair common error in several collision routines
288assert line "TOTL" 1665    15.9
289//
290// >>chng 00 aug 18, from 6.05 to 5.154 as result of breaking out bo seq
291// >>chng 06 jul 18, from 5.154 to 4.916, RP major upgrade VS coll strengths
292// >>chng 06 nov 29, from 4.916 to 6.87 Badnell DR turned on
293// >>chng 08 aug 04, from 6.87 to 7.18, speed hack bug fix
294assert line "totl" 1402     7.18
295//
296// >>chng 01 mar 09, from 3.15 to 3.33 H redis function
297// >>chng 01 dec 21, inner shell yields, 3.33 to 3.88
298// >>chng 04 sep 06, from 3.88 to 3.32 bug nej Auger
299// >>chng 06 nov 29, from 3.32 to 3.54 Badnell DR turned on
300assert line "TOTL" 1218     3.54
301//
302// >>chng 01 mar 09, from 2.85 to 3.06 H redis function
303// >>chng 01 dec 21, inner shell yields, 3.06 to 3.99
304// >>chng 03 feb 05, from 3.99 to 4.19, slow drift
305// >>chng 03 dec 07, from 4.19 to 3.94, incr dr resol metals edges
306// >>chng 04 sep 06, from 3.94 to 3.04 bug nej Auger
307// >>chng 06 nov 29, from 3.04 to 2.84 Badnell DR turned on
308assert line "TOTL" 1035     2.84
309//
310// >>chng 01 apr 03, from 33.85 to 35.85 convergence criteria, feii bug
311// >>chng 01 may 18, from 35.85 to 34.05 CT rates update
312// >>chng 02 may 09, from 34.05 to 32.303 e scat escap prob
313// >>chng 03 apr 30, from 32.30 to 34.03 csupra logic change
314// >>chng 04 jun 01, from 34.03 to 41.99 unified calc of Lya line width
315// >>chng 06 nov 29, from 41.99 to 39.94 Badnell DR turned on
316// >>chng 07 nov 17, from 39.94 to 37.70, changes in r1512
317// >>chng 08 apr 10, from 37.70 to 35.39, change default h-like levels, other minor changes
318assert line "TOTL" 2798    35.39
319//
320// >>chng 01 mar 09, from 12.2 to 13.6 H redis function
321// >>chng 01 jul 04, from 13.6 to 12.8 change in diffuse fields
322// >>chng 01 dec 21, inner shell yields, 12.8 to 12.11
323// >>chng 02 nov 20, from 12.11 to 11.39 new he ots dif
324// >>chng 03 apr 11, from 11.39 to 10.5 PopOpc bug
325// >>chng 03 nov 23, from 10.5 to 11.3 Kraemer et al. guess of dr
326// >>chng 05 mar 12, from 11.3 to 11.9 RP merge He-like code
327// >>chng 06 nov 24, from 11.9 to 11.3, turn on Badnell RR
328// >>chng 06 nov 29, from 11.3 to 13.1 Badnell DR turned on
329// >>chng 08 apr 10, from 13.1 to 14.2, change default h-like levels, other minor changes
330assert line "TOTL" 1888    14.2
331//
332// >>chng 01 jul 04, from 7.604 to 8.14 change in diffuse fields
333// >>chng 01 dec 21, inner shell yields, 8.14 to 7.68
334// >>chng 03 apr 11, from 7.68 to 7.24 PopOpc bug
335// >>chng 03 nov 23, from 7.24 to 8.28 Kraemer et al. guess of dr
336// >>chng 04 sep 06, from 8.28 to 8.72 bug nej Auger
337// >>chng 06 feb 09, from 8.72 to 9.13, add exp to low-T DR
338// >>chng 06 nov 29, from 9.13 to 7.89 Badnell DR turned on
339assert line "TOTL" 1397     7.89
340//
341// >>chng 00 oct 03, from 15.5 to 3.301 cont rebin, H- opac bug
342// >>chng 01 apr 03, from 12.91 to 13.6 convergence criteria, feii bug
343// >>chng 01 aug 04, from 12.9 to 12.1, very sensitive, error 0.1
344// >>chng 03 aug 15, from 12.1 to 10.3, add low-T fe dr
345// >>chng 03 oct 16, from 10.3 to 6.80 feii cooling, ots cleanup
346// >>chng 04 may 13, from 6.80 to 7.910, dest albedo chng
347// >>chng 04 jun 01, from 7.91 to 1.81 unified calc of Lya line width
348// >>chng 05 feb 06, from 1.81 to 1.95, slow drift
349// >>chng 06 aug 09, from 1.95 to 1.75 Meudon 06, Bowen change
350// >>chng 07 jul 25, from 1.75 to 1.95 bugfix pvh FeII tau r1290
351// >>chng 08 apr 10, from 1.95 to 2.33, change default h-like levels, other minor changes
352assert line "Fe2c"    0    2.33 error 0.1
353//
354// >>chng 04 jun 01, add this
355// >>chng 05 mar 12, from 34.3 to 30.4 RP merge He-like code
356// >>chng 06 jul 18, from 30.44 to 39.8, RP major upgrade VS coll strengths
357// >>chng 07 jul 27, from 39.8 to 32.8, repair common error in several collision routines
358// >>chng 07 oct 27, from 32.8 to 29.6, add up lev opac to WNW FeII model
359// >>chng 08 mar 17, from 29.6 to 25.3, r1844 - mostly iso PopOpc and rt_line_one_tauinc changes
360// >>chng 08 apr 10, from 25.3 to 20.0, change default h-like levels, other minor changes
361assert line "Fe2h"    0    20.0 error 0.1
362//
363// amount of Lya lost into FeII
364// >>chng 03 aug 15, from 10.351 to 16.14, add low-T fe dr
365// >>chng 04 jun 01, from 16.14 to 103.3 unified calc of Lya line width
366// >>chng 05 feb 06, from 103.3 to 99.3 slow drift
367// >>chng 05 mar 12, from 99.3 to 92.1 RP merge He-like code
368// >>chng 06 jul 18, from 92.1 to 117.7 RP major upgrade VS coll strengths
369// >>chng 07 jan 25, from 111.7 to 117.7 use only Gu UTA data file, inc err
370// >>chng 07 jul 27, from 117.7 to 98.6, repair common error in several collision routines
371// >>chng 07 dec 19, from 98.6 to 87.5, changes in r1698
372// >>chng 08 apr 03, from 87.5 to 75.6 include 10830 in fine opacity array
373// >>chng 08 apr 10, from 75.6 to 65.0, change default h-like levels, other minor changes
374assert line "Fe 2" 1216 65.0 error 0.1
375//
376// >>chng 03 oct 16, from 10.97 to 5.25 feii cooling, ots cleanup
377// >>chng 04 jun 01, from 5.25 to 6.78 unified calc of Lya line width
378// >>chng 07 oct 27, from 6.78 to 6.46, add up lev opac to WNW FeII model
379// >>chng 08 feb 15, from 6.46 to 6.15, turn off FeII pump on first iter
380// >>chng 08 apr 30, from 6.15 to 5.87 H, He topoff change
381assert line "Fe 2" 6200 5.87 error 0.1
382//
383// >>chng 03 aug 15, from 2.666 to 2.873 add low-T fe dr
384// >>chng 04 jun 01, from 2.873 to 3.96 unified calc of Lya line width
385// >>chng 05 mar 12, from 3.96 to 3.70 RP merge He-like code
386// >>chng 06 jul 18, from 3.70 to 4.25, RP major upgrade VS coll strengths
387// >>chng 06 nov 29, from 4.25 to 4.05 Badnell DR turned on
388// >>chng 07 jul 27, from 4.05 to 3.69, repair common error in several collision routines
389// >>chng 08 feb 13, from 3.69 to 3.39, r1844 - mostly iso PopOpc and rt_line_one_tauinc changes
390// >>chng 08 apr 10, from 3.39 to 2.96, change default h-like levels, other minor changes
391assert line "Fe 2" 2400 2.96
392//
393// >>chng 01 aug 26, from 1.8101 to 1.691 con res 2x better
394assert line "FeKa"    1.78     1.691
395//
396// ionization fractions
397// >>chng 01 jun 15, from -0.474 to -0.574, H ct network upgrade
398// >>chng 03 nov 08, from -0.574 to -0.5974 diff reset bug
399// >>chng 07 oct 27, from -0.597 to -0.571 add up lev opac to WNW FeII model
400// >>chng 08 mar 17, from 0.571 to -0.597, r1844 - mostly iso PopOpc and rt_line_one_tauinc changes
401assert ionization fraction hydrogen 2 -0.597
402//
403// >>chng 01 jul 04, from -1.381 to -1.347 change in diffuse fields
404// >>chng 02 nov 20, from -1.347 to -1.373 new he ots dif
405// >>chng 03 apr 11, from -1.37 to -1.40 PopOpc bug
406// >>chng 03 may 06, Lya pesc bug, -1.400 to -1.422
407// >>chng 04 apr 23, drift down, -1.422 to -1.400
408// >>chng 04 jun 01, from -1.400 to -1.370 unified calc of Lya line width
409// >>chng 04 jul 03, from -1.37 to -1.16 NA update H, CO chem net
410// >>chng 05 oct 01, from -1.16 to -1.20 RP update levels
411// >>chng 08 mar 22, from -1.20 to -1.39 bugfix r1879
412// >>chng 08 apr 30, from -1.39 to -1.37 H, He topoff change
413assert ionization fraction helium   2 -1.37 error 0.1
414//
415// >>chng 01 jul 04, from -2.206 to -2.149 change in diffuse fields
416// >>chng 01 dec 21, inner shell yields, -2.149 to -2.125
417// >>chng 04 sep 06, from -2.125 to -2.157 bug nej Auger
418// >>chng 06 nov 29, from -2.157 to -2.128 Badnell DR turned on
419assert ionization fraction helium   3 -2.128
420//
421// >>chng 00 may 11, from -3.239 to -3.212, ??
422// >>chng 00 oct 03, from -3.212 to -3.281 cont rebin, H- opac bug
423// >>chng 01 feb 06, from -3.281 to -3.328, change ct rate
424// >>chng 01 jun 15, from -3.328 to -3.313 CT rates update
425// >>chng 01 sep 12, from -3.313 to -3.163 ? ?
426// >>chng 02 may 09, from -3.163 to -3.119 e scat escap prob
427// >>chng 03 apr 11, from -3.12 to -3.17 PopOpc bug
428// >>chng 03 may 22, from -3.17 to -2.985 Lya dest prob DEST0
429// >>chng 03 aug 15, from -2.985 to -3.107 add low-T fe dr
430// >>chng 04 jun 01, from -3.107 to -4.08 unified calc of Lya line width
431// >>chng 04 jul 03, from -4.08 to -4.02 NA update H, CO chem net
432// >>chng 06 nov 24, from -4.02 to -4.14, turn on Badnell RR
433// >>chng 07 jul 27, from -4.14 to -4.08, repair common error in several collision routines
434// >>chng 07 oct 27, from -4.08 to -4.03 add up lev opac to WNW FeII model
435// >>chng 08 apr 10, from -4.03 to -3.98, change default h-like levels, other minor changes
436assert ionization fraction sodium 1 -3.98 error 0.1
437//
438// >>chng 00 may 11, from -3.319 to -3.291, ??
439// >>chng 00 oct 03, from -3.291 to -3.379 cont rebin, H- opac bug
440// >>chng 01 sep 12, from -3.410 to -3.223 ? ?
441// >>chng 02 may 09, from -3.223 to -3.154 e scat escap prob
442// >>chng 02 jun 13, from -3.154 to -3.203, zoning?
443// >>chng 03 may 22, from -3.203 to -2.953 Lya dest prob DEST0
444// >>chng 03 aug 15, from -2.953 to -3.151 add low-T fe dr
445// >>chng 04 jun 01, from -3.151 to -4.10 unified calc of Lya line width
446// >>chng 05 oct 01, from -4.10 to -4.04, drift
447// >>chng 07 jul 25, from -4.04 to -3.97 bugfix pvh FeII tau r1290
448// >>chng 07 oct 27, from -3.97 to -3.91 add up lev opac to WNW FeII model
449// >>chng 08 apr 10, from -3.91 to -3.83, change default h-like levels, other minor changes
450assert ionization fraction calcium 2 -3.83 error 0.15
451//
452// >>chng 08 dec 08, from 5 to 4, upper limit -> equals (r2515)
453assert niter 4 error 0.01
454//
455// >>chng 03 jun 10, from 13.5 to 11, finer zoning
456// >>chng 04 feb 15, from 11 to 10, conv ioniz loop auger
457// >>chng 04 feb 27, from 10 to 9, conv ioniz loop auger
458// >>chng 04 sep 30, from 10 to 12, conv_base conv heat cool
459// >>chng 05 feb 06, from 12 to 15 slow drift, actually 12.6
460// >>chng 08 dec 08, from 15 to 13.87, upper limit -> equals (r2515)
461// >>chng 08 dec 13, from 13.87 to 34.16, merging newsolvers branch
462assert itrzn 34.16 error 0.02
463//
464// >>chng 02 jun 13, from 250 to 320, finer griding
465// >>chng 03 jun 08, from 320 to 370, add n0 zoning
466// >>chng 03 dec 07, from 370 to 390, incr dr resol metals
467// >>chng 04 feb 27, from 390 to 410, dr on chng in eden
468// >>chng 04 mar 24, from 410 to 460
469// >>chng 08 dec 08, from 460 to 356, upper limit -> equals (r2515)
470assert nzone 356 error 0.01
471c
472c blr_kk81.in
473c class blr
474c ========================================
475c
476
477This is the "standard" BLR model presented by Kwan and Krolik (1981).
478
479>>refer blr     cloud   Kwan, J.,  & Krolik, J. 1981, ApJ, 250, 478
480
481Compare line intensities to previous versions of CLOUDY
482by entering into table on page Error! Bookmark not defined..
483
484The code caution that the resulting total pressure was not constant
485is to be expected.  The KK calculation assumed constant gas pressure,
486but internally generature line radiation pressure is significant. 
487Because of this the sum
488of gas plus radiation pressure was not constant although
489the gas pressure was.
490
Note: See TracBrowser for help on using the browser.