Analytical YSO Models#
The Arbitrary Models class should allow users to set up arbitrary problems.
However, the Python module also provides classes that build on top of
Model
that make it easy to specify certain kinds of problems. These
classes support all the methods available for the Model
class, and define
new ones. The AnalyticalYSOModel
makes it easy to set up sources with
flared disks, and rotationally flattened envelopes, optionally with bipolar
cavities. To use this class, you will first need to import it:
from hyperion.model import AnalyticalYSOModel
it is then easy to set up such a model using:
m = AnalyticalYSOModel()
The model can then be set up using methods of the AnalyticalYSOModel
instance. This is described in more detail in the following section:
To set up the dust, images, and configuration, see the Preparing dust properties, Setting up images and SEDs, and Radiative transfer settings sections of the Arbitrary Models description.
Once the model is set up, you can write it out to the disk for use with the Fortran radiation transfer code:
m.write('example.rtin')
See write()
for information about the
available options.
Note
One of the available options is merge_if_possible=
, which if set
to True
will merge the various density components into a single
one if the dust types match. This allows the code to run faster, but
on the other hand means that if tracking e.g. photon origin, the
separate origin of components that have been merged will be lost.
This option is enabled by default, but you may want to disable it.