Getting this plot using the BE_Field in AstroBEAR
As a measure of magnetic field strength in the pdf, I am going to use the magnetic pressure.
Magnetic pressure is an energy density, and in free space in cgs, is given by:
In the code, there is a field called 'BE_field' which is the magnetic energy (or pressure) field, given by:
The B's in the above are in computational units (cu), implying -
where
Putting this into BE_field gives,
aka - scaled magnetic pressure.
Therefore - using BE_field as is for my pdf - means I will be plotting scaled magnetic pressure vs. scaled number density.
What is pscale?
For my problem set-up,
which means -
which implies
The units of P(cgs) are Kb(K)/cm3 (from ideal gas law). This means, the output from the code is equivalent to P(cgs)/Kb and this ratio has units of K/cm3.
That is, I am free to either call the quantity,
The right hand quantity seems more intuitive, so will go with that. If someone were to instead plot the left hand quantity — hopefully a reader would recognize the lack of the boltzmann constant and realize that it was in fact a scaled quantity being plotted.
This is plotted against number density, which again given nscale = 1, is already in units of cm-3.
Code
The difference between binning by mass and by volume
Attachments (3)
- shape_bvn.png (27.1 KB ) - added by 10 years ago.
- use_bvn.png (17.9 KB ) - added by 10 years ago.
- pdfs_bvn.png (63.1 KB ) - added by 10 years ago.
Download all attachments as: .zip