Here, we describe some tests of the model. This growing suite of tests are packaged with the repository so that developers can examine the impact of any code updates.
The tests done here have been done for Gizmo simulations, and Gasoline/Changa simulations with a tipsy output format.
The hydrodynamic simulations for the test runs that ship with powderday aren’t included in the repository due to their size. The gizmo simulation is the same mufasa zoom simulation as in the Gadget/Gizmo quickstart section, and is available here. The Changa/Gasoline/Tipsy output is galaxy_00300 from the public yt datasets page
Actually Running the Tests: Powderday:¶
In what follows, we lead the user through the tests for a Gizmo type simulation, though the process for testing the tipsy outputs is similar.
To run the powderday test code, run:
python pd_front_end.py tests/SKIRT/gizmo_mw_zoom parameters_master_401 parameters_model_401
After having edited the
file for your specific paths.
Actually Running the Tests: SKIRT:¶
SKIRT needs to know
the stellar and gas particle information from the hydrodynamic
`analytics.py, there’s a function
SKIRT_data_dump() that dumps these files to your powderday output directory. Here, it should have dumped files with a path like:
cd SKIRT/run mkdir pd_test cp <path_to_powderday>/tests/SKIRT/pd_test.dust.ski pd_test ../release/SKIRT/main/skirt pd_test/pd_test.dust.ski
run directory, this should create a file like:
/home/desika.narayanan/SKIRT/run/test_i90_sed.dat. This has
chosen one particular viewing angle (which, in fact may not be the
same viewing angle as the powderday simulation - in fact it was
arbitrarily chosen). Then you can run:
cd <path_to_powderday> python tests/SKIRT/skirt_sed_plot.py
and it should produce an image like
Persistent Differences in the Models¶
While we have attempted to ensure as much of an apples-to-apples comparison between codes, some differences are persistent that manifest themselves in the emergent SEDs.
The input SEDs are different, as is evident in the UV portion of the comparisons. The former employ interpolated BC03 stellar models at a lower resolution than the input MILES spectral libraries for the fsps models that powderday employs.