Ticket #89: grains_lte_h2.in

File grains_lte_h2.in, 2.3 kB (added by rporter, 3 years ago)

grains_lte.in but with oxygen disabled and big h2 activated.

Line 
1title check that grains equilibriate at correct temp in ste limit
2c this also tests that the code works when H He ionization is ZERO
3c
4c commands controlling continuum =========
5trace hmole 0 2
6atom h2 trace full
7c print dominant rates "h2"
8c black 3000K
9c ionization parameter -15
10black 3 lte
11c
12c commands for density & abundances =========
13hden 5
14eden 5
15init file "hheonly.ini"
16c need to normalize to some line, oxygen will provide some
17c element oxygen on
18c ism grains with high dust to gas ratio
19grain abund 1
20c
21c commands controlling geometry  =========
22stop zone 1
23set dr 0
24c
25c other commands for details     =========
26iterate
27atom h2
28c the equilibrium temp would not be correct since small H_2 molecule
29c does not go to ste, being an equivalent two-level system
30c constant temperature 3
31c
32c commands controlling output    =========
33normalize to "O  1" 63.17m
34punch asserts last "grains_lte.asr"
35c
36c commands giving the asserts    =========
37assert temperature H2 3 error 0.01
38assert grain temperature  1 3 error 0.005
39assert grain temperature  2 3 error 0.005
40assert grain temperature  3 3 error 0.005
41assert grain temperature  4 3 error 0.005
42assert grain temperature  5 3 error 0.005
43assert grain temperature  6 3 error 0.005
44assert grain temperature  7 3 error 0.005
45assert grain temperature  8 3 error 0.005
46assert grain temperature  9 3 error 0.005
47assert grain temperature 10 3 error 0.005
48assert grain temperature 11 3 error 0.005
49assert grain temperature 12 3 error 0.005
50assert grain temperature 13 3 error 0.005
51assert grain temperature 14 3 error 0.005
52assert grain temperature 15 3 error 0.005
53assert grain temperature 16 3 error 0.005
54assert grain temperature 17 3 error 0.005
55assert grain temperature 18 3 error 0.005
56assert grain temperature 19 3 error 0.005
57assert grain temperature 20 3 error 0.005
58c grains_lte.in
59c class limit
60c ========================================
61c
62
63This test irradiates a set of grains with a true blackbody in
64strict thermodynamic equilibrium.  We expect the grains
65(and everything else) to equilibriate at the blackbody temperature.
66The gas temperature is forced to the radiation temperature because
67the current molecule network (based on ISM approximations) does not
68go to LTE in the high-radiation density limit.  The calculation
69asserts that all grain temperatures are very close to the radiation
70temperature.
71
72
73