wiki:u/johannjc/scratchpad22

Version 5 (modified by Jonathan, 8 years ago) ( diff )

Scaling

Cross section

The equations for calculating the optical depth in physical units look like

And in computational units

Dividing the first equation by the second gives

where and are the number density and length scales in the code.

This gives

Ionizing Flux

The equation for calculating the ionization rate in physical units is

and in computational units

Dividing the first equation by the second, gives

which gives

Recombination Rate

The equation for recombination in physical units is

and in computational units

Dividing the two and solving for gives

Ionization Heating

The equation in physical units is

and in computational units

Dividing the two and solving for gives

Recombination Cooling

In physical units we have

and in computational units we have

and dividing the two gives us

Lyman Alpha Cooling

In physical units we have

and in computational units we have

and dividing the two gives us

Test problem

2D version of Tripathi without atmosphere

embedded in a lower density pressure balanced ambient with a density ratio

With a cross section for photo-ionization of 6.3e-18 and our clump's column density of 9e18, we would expect the tau=1 surface to be 5% of the way in towards the clump center.

And with a flux of 2e13, we would expect photo-ionization of the column to take 5 days or so…

Attachments (4)

Note: See TracWiki for help on using the wiki.