root/trunk/tsuite/auto/blr_n13_p18.in

Revision 2539, 6.9 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 BLR model, density 1e13 cm-3, flux of H-ion phots 1e18 cm2 s-1
2c
3c this is a very low ionization cloud
4c the conditions, and some lines, are surprisingly sensitive
5c to the treatment of hydrogen molecules
6c
7c commands controlling continuum =========
8table agn
9phi(h) 18
10c
11c commands for density & abundances =========
12hden 13
13c
14c commands controlling geometry  =========
15stop column density 23
16c
17c other commands for details     =========
18iterate to convergence
19c
20c commands controlling output    =========
21normalize to "totl" 1216 100
22print line faint 1  // get rid of lots of faint lines
23//
24// these are to try to speed things up
25init "c84.ini"
26no level2 lines
27//
28punch asserts "blr_n13_p18.asr" last
29punch overview "blr_n13_p18.ovr" last
30punch dr "blr_n13_p18.dr" last
31punch convergence reason "blr_n13_p18.cvr"
32c
33c commands giving the asserts    =========
34// strong blr lines
35// >>chng 06 jul 18, from 6.429 to 6.457 RP major upgrade VS coll strengths
36// >>chng 07 oct 22, from 6.457 to 6.431, resolve l-levels of h-like sequence
37// >>chng 08 mar 17, from 6.431 to 6.400, r1844 - mostly iso PopOpc and rt_line_one_tauinc changes
38// >>chng 08 jun 25, from 6.400 to 6.380 (12.1) add source/sink to ioniz ladder
39assert line luminosity "totl"  1216 6.380 //total Hydrogen Lyman-alpha 1215.67
40//
41// >>chng 06 jul 18, from 6.377 to 6.450 RP major upgrade VS coll strengths
42// >>chng 07 jul 27, from 6.450 to 6.402, repair common error in several collision routines
43// >>chng 07 oct 25, from 6.402 to 6.371, bugfix stark broadening incorrect
44assert line luminosity "totl"  4861 6.371 //total of sum of both Si IV comp
45//
46//total HeII Balmer-a 1640
47// >>chng 04 apr 28, from 4.666 to 4.693, He+ - H ct rate update
48// >>chng 04 may 13, from 4.693 to 4.718, dest albedo chng
49// >>chng 04 may 19, from 4.72 to 4.58 RP update helike sequence, incr err
50// >>chng 05 mar 12, from 4.58 to 4.49 RP merge He-like code
51// >>chng 06 jul 18, from 4.49 to 4.58 RP major upgrade VS coll strengths
52// >>chng 07 jul 27, from 4.58 to 4.48, repair common error in several collision routines
53// >>chng 08 mar 22, from 4.48 to 4.42 bugfix r1879
54// >>chng 08 apr 30, from 4.42 to 4.47, H, He topoff change
55assert line luminosity "he 2"  1640 4.47 err 0.1
56//
57// >>chng 04 jun 01, from 2.327 to 2.349, unified calc of Lya line width
58// >>chng 06 jul 21, from 2.349 to 2.375, update Mg0 Si0 CT wth H+
59// >>chng 07 oct 22, from 2.375 to 2.317, resolve l-levels of h-like sequence
60// >>chng 08 mar 17, from 2.317 to 2.254, r1844 - mostly iso PopOpc and rt_line_one_tauinc changes
61assert line luminosity "totl"  1888 2.254  //total of sum of Si III] 1892+
62//
63// >>chng 03 sep 11, from 3.008 to 3.032, H2* population improved
64// >>chng 04 jan 28, from 3.032 to 3.006, bug in H- -> H2 boltz factor
65// >>chng 06 jul 18, from 3.006 to 3.042 RP major upgrade VS coll strengths
66// >>chng 06 nov 29, from 3.042 to 2.986, Badnell DR turned on
67// >>chng 07 oct 22, from 2.986 to 2.959, resolve l-levels of h-like sequence
68// >>chng 08 mar 17, from 2.959 to 2.929, r1844 - mostly iso PopOpc and rt_line_one_tauinc changes
69assert line luminosity "totl"  1860 2.929  //total sum of both Al III comp
70//
71//total C II] 2324.69 + 2328.12
72// >>chng 03 sep 11, from 3.769 to 4.800, H2* population improved
73// >>chng 03 sep 11, from 4.800 to 4.726, changed a few H2 reactions
74// >>chng 04 jan 28, from 4.726 to 3.789, bug in H- -> H2 boltz factor
75// >>chng 04 apr 16, from 3.789 to 3.871, ? ?, it does jump around
76// >>chng 04 apr 28, from 3.871 to 3.786, He+ - H ct rate update
77// >>chng 04 jun 01, from 3.786 to 3.808, unified calc of Lya line width
78// >>chng 04 jun 12, from 3.808 to 3.871 chng cont shield fcn
79// >>chng 04 jul 02, from 3.871 to 3.849, O H ct, incr err
80// >>chng 05 aug 03, from 3.849 to 3.935, NA update CO, H chem net
81// >>chng 05 dec 08, from 3.94 to 3.83, update to Elwert Solomon rate
82// >>chng 07 dec 06, from 3.83 to 3.87, secondaries prop to osc str, apply to iso species
83// >>chng 08 apr 30, from 3.87 to 3.82, H, He topoff change
84// >>chng 08 nov 04, from 3.82 to 3.778, line RT bug fixes (r2429-35)
85assert line luminosity "totl"  2326 3.778 err 0.1
86//
87// >>chng 03 sep 11, from 6.765 to 6.810, H2* population improved
88// >>chng 04 jan 28, from 6.810 to 6.767, bug in H- -> H2 boltz factor
89// >>chng 06 jul 18, from 6.767 to 6.790 RP major upgrade VS coll strengths
90// >>chng 07 oct 22, from 6.790 to 6.746, resolve l-levels of h-like sequence
91// >>chng 08 mar 17, from 6.746 to 6.714, r1844 - mostly iso PopOpc and rt_line_one_tauinc changes
92assert line luminosity "totl"  2798 6.714  //total of sum of both Mg II comp
93//
94// >>chng 03 sep 11, from 6.667 to 6.753, H2* population improved
95// >>chng 04 jan 28, from 6.753 to 6.670, bug in H- -> H2 boltz factor
96// >>chng 05 sep 27, from 6.670 to 6.700, TE, GS update H chem
97// >>chng 06 jul 21, from 6.700 to 6.670, update Mg0 Si0 CT wth H+
98// >>chng 07 jul 25, from 6.670 to 6.698, bugfix pvh FeII tau r1290
99// >>chng 08 mar 20, from 6.698 to 6.676, value drifted but did not throw assert
100assert line luminosity "Ca 2"  3933 6.676
101//
102// >>chng 04 may 19, from 6.340 to 6.376 RP update helike sequence, incr err
103// >>chng 04 jul 03, from 6.376 to 6.402, NA update H, CO chem net
104// >>chng 05 mar 12, from 6.40 to 6.44 RP merge He-like code
105// >>chng 05 sep 27, from 6.440 to 6.420, TE, GS update H chem
106// >>chng 06 jul 18, from 6.420 to 6.393 RP major upgrade VS coll strengths
107// >>chng 07 jul 27, from 6.393 to 6.426, repair common error in several collision routines
108// >>chng 08 mar 22, from 6.426 to 6.405 bugfix r1879
109// >>chng 08 apr 03, from 6.405 to 6.340, include 10830 in fine opacity array
110assert line luminosity "totl"  1.083m 6.340
111//
112// >>chng 05 mar 12, add 5876
113// >>chng 06 jul 18, from 5.630 to 5.502 RP major upgrade VS coll strengths
114// >>chng 07 apr 12, from 5.502 to 5.556 he-like proton collision bugfix
115// >>chng 07 jul 27, from 5.556 to 5.671, repair common error in several collision routines
116assert line luminosity "he 1"  5876 5.671
117//
118// >>chng 04 sep 25, from 7 to 8 incr temp toler 0.02 to 0.005
119// >>chng 04 sep 30, from 8 to 10, conv_base conv heat cool
120// >>chng 05 mar 13, from 10 to 12, RP update He-like
121// >>chng 08 dec 08, from 12 to 9.137, upper limit -> equals (r2515)
122// >>chng 08 dec 13, from 9.137 to 16.63, merging newsolvers branch
123assert itrzn 16.63 error 0.02
124//
125// >>chng 04 mar 05, from 5 to 6, last iter just barely converged on PC,
126// was converged on alpha & SDX
127// >>chng 04 jul 17, from 6 to 7, NA update chem net
128// >>chng 08 dec 08, from 7 to 5, upper limit -> equals (r2515)
129// >>chng 08 dec 13, from 5 to 4, merging newsolvers branch
130assert niter 4 error 0.01
131//
132// >>chng 03 sep 11, from 300 to 400 H2* population improved
133// >>chng 04 mar 04, from < 400 to < 350, chng conv criteria
134// >>chng 08 dec 08, from 350 to 313, upper limit -> equals (r2515)
135// >>chng 08 dec 13, from 313 to 291, merging newsolvers branch
136assert nzone 291 error 0.01
137//
138c blr_n13_p18.in
139c class blr
140c ========================================
141
142This is one of the 5 models that sample the LOC plane.
Note: See TracBrowser for help on using the browser.