root/trunk/tsuite/auto/blr_nf84_45deg.in

Revision 2539, 8.2 kB (checked in by peter, 4 weeks ago)

Merge the newsolvers branch.

This is the first merge from this branch implementing the new electron temperature and
density solvers, as well as a new method for tracking the convergence of the line optical
depths through different iterations.

In iter_track.h and iter_track.cpp the new classes iter_track and iter_track_basic are
implemented. The iter_track class iterates for the zero-point of a function based on the
van Wijngaarden-Dekker-Brent method, and is used for heavy-duty tracking of convergence
towards the root, complete with a full history of function evaluations. The
iter_track_basic class is a light-weight version that is based on a bisection search for
the zero-point and it does not keep track of the function evaluations.

The new electron density and temperature solvers are based on the iter_track class and as
a result now always bracket the solution before converging onto the solution. This should
improve the quality of the solution. The temperature solver now checks the accuracy of the
electron temperature in addition to the quality of the heating-cooling match. The old
solvers have been removed.

This merge also implements a new method based on the iter_track_basic class to track
convergence of the line optical depths through different iterations. This should improve
convergence when oscillations in the optical depth occur.

In cddefines.h new versions of the safe_div function are added that do not crash on 0/0,
but return a user-supplied argument instead.

The command PUNCH TEGRID has been removed since it is largely redundant. Use the command
PUNCH TEMPERATURE HISTORY instead. The commands SET TEMP/EDEN SOLVER have been removed
since they no longer serve any purpose (only one solver remains).

  • Property svn:eol-style set to native
Line 
1title early model of BLR, with illumination at 45 degree angle
2//>>refer       tsuite  blr     Netzer, H., & Ferland, G.J. 1984, PASP 96, 593
3//>>refercon     Table 1
4c
5c commands controlling continuum =========
6ionization parameter -1.92
7power law -1 100 0.01
8c this continuum is a beam coming in at 45 degrees
9illuminate 45 degrees
10c
11c commands for density & abundances =========
12hden 9.5
13abundances cameron
14stop lyman optical 6
15c
16c commands controlling geometry  =========
17c
18c other commands for details     =========
19init file "ism.ini"
20constant gas pressure
21iterate to convergence
22c
23c commands controlling output    =========
24print diffuse continuum
25plot continuum
26punch overview "blr_nf84_45deg.ovr"
27punch dr "blr_nf84_45deg.dr"
28punch results last "blr_nf84_45deg.rlt"
29punch asserts last "blr_nf84_45deg.asr"
30c
31c commands giving the asserts    =========
32// these are optically thick brems continua
33assert pressure error < 0.002
34//
35// >>chng 04 dec 08, from 4.44 to 4.39, co-ion feedback, check converg
36// >>chng 07 oct 27, from 4.39 to 4.43 add up lev opac to WNW FeII model
37assert line "nFnu" 122.4m luminosity 4.43 error 0.1
38//
39// >>chng 04 dec 08, from 4.71 to 4.66, co-ion feedback, check converg
40// >>chng 07 oct 27, from 4.66 to 4.70 add up lev opac to WNW FeII model
41assert line "nFnu" 60.83m luminosity 4.70 error 0.1
42//
43// >>chng 04 dec 08, from 4.86 to 4.80, co-ion feedback, check converg
44// >>chng 06 aug 09, from 4.80 to 4.84 Meudon 06, Bowen change
45assert line "nFnu" 41.22m luminosity 4.84 error 0.1
46//
47// >>chng 04 dec 08, from 5.82 to 5.77, co-ion feedback, check converg
48// >>chng 07 oct 22, from 5.77 to 5.71, resolve l-levels of h-like sequence
49// >>chng 07 dec 14, from 5.71 to 5.75, RP update is seq
50// >>chng 08 mar 17, from 5.75 to 5.55, r1844 - mostly iso PopOpc and rt_line_one_tauinc changes
51assert line "TOTL" 4861 luminosity 5.55 error 0.10
52//
53assert line "TOTL" 1216  luminosity 7.217
54//
55// >>chng 06 nov 24, from 6.436 to 6.457, turn on Badnell RR
56// >>chng 06 nov 29, from 6.457 to 6.584, Badnell DR turned on
57assert line "TOTL" 1909  luminosity  6.584
58//
59// >>chng 06 aug 09, from 7.087 to 7.110 Meudon 06, Bowen change
60// >>chng 06 nov 29, from 7.110 to 7.060, Badnell DR turned on
61assert line "TOTL" 1549 luminosity  7.060
62//
63// >>chng 06 jul 25, from 6.059 to 5.999 HN update OIII collision data
64// >>chng 06 aug 09, from 5.999 to 6.024 Meudon 06, Bowen change
65assert line "TOTL" 1665  luminosity  6.024
66//
67// >>chng 04 dec 08, from 6.90 to 6.85, co-ion feedback, check converg
68assert line "TOTL" 2798  luminosity  6.85 err 0.1
69//
70// >>chng 04 dec 08, from 6.342 to 6.315, co-ion feedback, check converg
71assert line "Fe 2" 6200  luminosity  6.315
72// >>chng 08 apr 10, from 6.183 to 6.131, change default h-like levels, other minor changes
73assert line "Fe 2" 2400  luminosity  6.131 error 0.1
74assert element ionization Hydrogen 1 -0.011
75//
76// >>chng 04 dec 08, from -1.584 to -1.712, co-ion feedback, check converg
77// >>chng 05 mar 25, from -1.712 to -1.63, renorm H pops in level solver
78assert element ionization Hydrogen 2 -1.63 erro 0.1
79//
80assert element ionization Helium   1 -0.007
81//
82// >>chng 04 dec 08, from -1.74 to -1.83, co-ion feedback, check converg
83// >>chng 08 mar 22, from -1.83 to -2.21 bugfix r1879
84assert element ionizaiton Helium   2 -2.21 error 0.1
85//
86// >>chng 06 nov 29, from -2.505 to -2.482, Badnell DR turned on
87assert element ionizaiton Helium   3 -2.482
88//
89assert element ionizaiton Carbon   2 -0.005
90//
91// >>chng 06 nov 29, from -2.477 to -2.380, Badnell DR turned on
92assert element ionizaiton Carbon   3 -2.380 error 0.1
93//
94// >>chng 06 nov 29, from -2.665 to -2.725, Badnell DR turned on
95assert element ionizaiton Carbon   4 -2.725 error 0.1
96//
97assert element ionizaiton Nitrogen 1 -0.051
98//
99// >>chng 04 dec 08, from -1.116 to -1.144, co-ion feedback, check converg
100// >>chng 06 jul 07, from -1.144 to -1.174, Stancil N1 CT
101assert element ionizaiton Nitrogen 2 -1.174
102//
103assert element ionizaiton Nitrogen 3 -2.540 error 0.1
104//
105// >>chng 06 nov 29, from -2.619 to -2.553, Badnell DR turned on
106assert element ionizaiton Nitrogen 4 -2.553 error 0.1
107//
108// >>chng 06 nov 29, from -3.056 to -3.113, Badnell DR turned on
109assert element ionizaiton Nitrogen 5 -3.113 error 0.1
110//
111assert element ionizaiton Oxygen   1 -0.011
112//
113// >>chng 04 dec 08, from -1.80 to -1.97, co-ion feedback, check converg
114// >>chng 05 mar 25, from -1.97 to -1.86, renorm H pops in level solver
115assert element ionizaiton Oxygen   2 -1.86 error 0.15
116assert element ionizaiton Oxygen   3 -2.429 error 0.1
117//
118// >>chng 06 nov 29, from -2.793 to -2.706, Badnell DR turned on
119assert element ionizaiton Oxygen   4 -2.706 error 0.1
120//
121assert element ionizaiton Oxygen   5 -3.073 error 0.1
122//
123// >>chng 07 jan 20, from -3.591 to -3.636, e2 bug
124assert element ionizaiton Oxygen   6 -3.636 error 0.1
125//
126assert element ionizaiton Iron     2 -0.005
127//
128// >>chng 04 dec 08, from -2.66 to -2.79, co-ion feedback, check converg
129// >>chng 05 mar 25, from -2.79 to -2.71, renorm H pops in level solver
130// >>chng 08 apr 10, from -2.71 to -2.66, change default h-like levels, other minor changes
131// >>chng 08 apr 30, from -2.66 to -2.73 H, He topoff change
132// >>chng 08 nov 13, from -2.73 to -3.011, fix Boltzmann factor in CT rates (r2455)
133assert element ionizaiton Iron     3 -3.011 error 0.1
134//
135// >>chng 06 aug 09, from -2.638 to -2.586 Meudon 06, Bowen change
136assert element ionization Iron     4 -2.586 error 0.1
137//
138// >>chng 08 nov 13, from 3.797 to 3.775, fix Boltzmann factor in CT rates (r2455)
139assert element temperature Hydrogen 1  3.775
140//
141// >>chng 04 dec 08, from 3.997 to 4.044 co-ion feedback, check converg
142// >>chng 05 mar 25, from 4.044 to 4.010, renorm H pops in level solver
143// >>chng 08 nov 13, from 4.01 to 4.033, fix Boltzmann factor in CT rates (r2455)
144assert element temperature Hydrogen 2  4.033
145//
146// >>chng 04 dec 08, from 3.82 to 3.78 co-ion feedback, check converg
147assert element temperature Helium   1  3.78 err 0.1
148//
149// >>chng 08 mar 22, from 3.962 to 4.12  bugfix r1879
150assert element temperature Helium   2  4.12 error 0.1
151//
152assert element temperature Helium   3  4.272
153//
154// >>chng 04 dec 08, from 3.812 to 3.777 co-ion feedback, check converg
155assert element temperature Oxygen   1  3.777
156//
157// >>chng 04 dec 08, from 3.870 to 3.892 co-ion feedback, check converg
158// >>chng 06 feb 03, from 3.892 to 3.872, guess dr to Badnell mean
159assert element temperature Oxygen   2  3.872
160//
161assert element temperature Oxygen   3  4.228
162assert element temperature Oxygen   4  4.270
163assert element temperature Oxygen   5  4.277
164//
165assert element temperature Oxygen   6  4.279
166//
167assert element temperature Oxygen   7  4.280
168//
169// >>chng 05 mar 25, from 3.847 to 3.824, renorm H pops in level solver
170// >>chng 07 oct 26, from 3.824 to 3.843, very close to botch after recent changes
171assert element temperature Iron     1  3.843
172//
173// >>chng 04 dec 08, from 3.814 to 3.779 co-ion feedback, check converg
174assert element temperature Iron     2  3.779
175//
176// >>chng 04 dec 08, from 3.957 to 3.977 co-ion feedback, check converg
177// >>chng 05 mar 25, from 3.977 to 3.951, renorm H pops in level solver
178// >>chng 08 nov 13, from 3.951 to 4.024, fix Boltzmann factor in CT rates (r2455)
179assert element temperature Iron     3  4.024
180//
181// >>chng 07 oct 26, from 4.207 to 4.227, very close to botch after recent changes
182assert element temperature Iron     4  4.227
183//
184// >>chng 06 nov 29, from 4.237 to 4.258, Badnell DR turned on
185assert element temperature Iron     5  4.258
186//
187// >>chng 07 jan 20, from 4.256 to 4.277, e2 bug
188assert element temperature Iron     6  4.277
189//
190assert element temperature Iron     7  4.272
191assert element temperature Iron     8  4.276
192// >>chng 08 dec 08, from 400 to 352, upper limit -> equals (r2515)
193assert nzone 352 error 0.01
194//
195// >>chng 05 dec 22, from 18 to 20 (16.9) drift up
196// >>chng 08 dec 08, from 20 to 18.62, upper limit -> equals (r2515)
197// >>chng 08 dec 13, from 18.62 to 40.25, merging newsolvers branch
198assert itrzn 40.25 error 0.02
199//
200c blr_nf84_45deg.in
201c class blr
202c ========================================
203c
204
205This is an example of a "conventional" BLR calculation. The parameters are
206similar to those of Table 1 of Netzer and Ferland (1984).  Notice that the
207ratio of Lyalpha to Hbeta ratio is much larger than observed.
208
209>>refer blr     model   Netzer, H., & Ferland, G. J. 1984, PASP, 96, 593 
210
Note: See TracBrowser for help on using the browser.