tardis - astrophysics source code...

28
TARDIS

Upload: others

Post on 14-Oct-2020

0 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: TARDIS - Astrophysics Source Code Libraryascl.net/wordpress/wp-content/uploads/2017/07/Kerzendorf_EWASS… · a radiative transfer code, an open source community, and an interdisciplinary

TARDIS

Page 2: TARDIS - Astrophysics Source Code Libraryascl.net/wordpress/wp-content/uploads/2017/07/Kerzendorf_EWASS… · a radiative transfer code, an open source community, and an interdisciplinary

a radiative transfer code, an open source community, and an interdisciplinary collaboration

TARDIS!Exploring supernovae made easy

W. E. Kerzendorf ESO Fellow European Southern Observatory on behalf of the collaboration

Page 3: TARDIS - Astrophysics Source Code Libraryascl.net/wordpress/wp-content/uploads/2017/07/Kerzendorf_EWASS… · a radiative transfer code, an open source community, and an interdisciplinary

The TARDIStasUlrich Noebauer

Stefan Lietzau

Stuart Sim

Vytautas Jančauskas

Fotis Tsamis

Aoife Boyle

Frederik Beaujean

Hans Eggers

Talytha Barbosa

Christian Vogl Adam Suban-Loewen

Gaurav Gautam

Sourav Singh

Maryam Patel

Vaibhav

Ujjwal Wahi

Kevin Yap

Contributors

Page 4: TARDIS - Astrophysics Source Code Libraryascl.net/wordpress/wp-content/uploads/2017/07/Kerzendorf_EWASS… · a radiative transfer code, an open source community, and an interdisciplinary

OpenHub has analysed our code and says:

In a Nutshell, tardis-sn...

...has had 2,685 commits made by 38 contributors

representing 11,938 lines of code

...is mostly written in Python

with an average number of source code comments

...has a well established, mature codebase

maintained by a large development team with decreasing Y-O-Y commits

...took an estimated 3 years of effort(COCOMO model)

starting with its first commit in December, 2011 ending with its most recent commit 4 days ago

Page 5: TARDIS - Astrophysics Source Code Libraryascl.net/wordpress/wp-content/uploads/2017/07/Kerzendorf_EWASS… · a radiative transfer code, an open source community, and an interdisciplinary

How does it work?

Page 6: TARDIS - Astrophysics Source Code Libraryascl.net/wordpress/wp-content/uploads/2017/07/Kerzendorf_EWASS… · a radiative transfer code, an open source community, and an interdisciplinary

TARDIS 1D Supernova ModelEach Shell

(in velocity space) Density

Abundance Temperature

outer boundaryhomologous expansion

v = r / t inner boundary

no energy creation in envelope!

Page 7: TARDIS - Astrophysics Source Code Libraryascl.net/wordpress/wp-content/uploads/2017/07/Kerzendorf_EWASS… · a radiative transfer code, an open source community, and an interdisciplinary

TARDIS Simulation

Page 8: TARDIS - Astrophysics Source Code Libraryascl.net/wordpress/wp-content/uploads/2017/07/Kerzendorf_EWASS… · a radiative transfer code, an open source community, and an interdisciplinary

TARDIS 1D Modelpick a time

pick output luminosity

TARDIS solves plasma states

Montecarlo starts

Spectrum estimators:

e.g. rad. Temperature

Model is updated: too luminous - colder black body

too faint - hotter black body

update of temperature/dilution factor

Page 9: TARDIS - Astrophysics Source Code Libraryascl.net/wordpress/wp-content/uploads/2017/07/Kerzendorf_EWASS… · a radiative transfer code, an open source community, and an interdisciplinary
Page 10: TARDIS - Astrophysics Source Code Libraryascl.net/wordpress/wp-content/uploads/2017/07/Kerzendorf_EWASS… · a radiative transfer code, an open source community, and an interdisciplinary
Page 11: TARDIS - Astrophysics Source Code Libraryascl.net/wordpress/wp-content/uploads/2017/07/Kerzendorf_EWASS… · a radiative transfer code, an open source community, and an interdisciplinary

Best practicesfor a scientific code (IMHO)

which I unfortunately sometimes ignored

Page 12: TARDIS - Astrophysics Source Code Libraryascl.net/wordpress/wp-content/uploads/2017/07/Kerzendorf_EWASS… · a radiative transfer code, an open source community, and an interdisciplinary

Best Practices - quickest way from idea to product

hack things together

don’t use anything that will slow you down (can be version control, unit tests, etc.)

don't worry you will likely rewrite

specifically speed is not an issue (in most cases)

Page 13: TARDIS - Astrophysics Source Code Libraryascl.net/wordpress/wp-content/uploads/2017/07/Kerzendorf_EWASS… · a radiative transfer code, an open source community, and an interdisciplinary
Page 14: TARDIS - Astrophysics Source Code Libraryascl.net/wordpress/wp-content/uploads/2017/07/Kerzendorf_EWASS… · a radiative transfer code, an open source community, and an interdisciplinary

Don’t ReinventReuse!

Page 15: TARDIS - Astrophysics Source Code Libraryascl.net/wordpress/wp-content/uploads/2017/07/Kerzendorf_EWASS… · a radiative transfer code, an open source community, and an interdisciplinary
Page 16: TARDIS - Astrophysics Source Code Libraryascl.net/wordpress/wp-content/uploads/2017/07/Kerzendorf_EWASS… · a radiative transfer code, an open source community, and an interdisciplinary

Best practicesBuilding a community

Page 17: TARDIS - Astrophysics Source Code Libraryascl.net/wordpress/wp-content/uploads/2017/07/Kerzendorf_EWASS… · a radiative transfer code, an open source community, and an interdisciplinary
Page 18: TARDIS - Astrophysics Source Code Libraryascl.net/wordpress/wp-content/uploads/2017/07/Kerzendorf_EWASS… · a radiative transfer code, an open source community, and an interdisciplinary

Best practicesBuilding an interdisciplinary community

Page 19: TARDIS - Astrophysics Source Code Libraryascl.net/wordpress/wp-content/uploads/2017/07/Kerzendorf_EWASS… · a radiative transfer code, an open source community, and an interdisciplinary

Computer scientists

Page 20: TARDIS - Astrophysics Source Code Libraryascl.net/wordpress/wp-content/uploads/2017/07/Kerzendorf_EWASS… · a radiative transfer code, an open source community, and an interdisciplinary

Optimizer - Differential Evolution

Fit of 14 Parameters20000 function evaluations

2 days with 50 CPUs

Vytautas Jančauskas

Page 21: TARDIS - Astrophysics Source Code Libraryascl.net/wordpress/wp-content/uploads/2017/07/Kerzendorf_EWASS… · a radiative transfer code, an open source community, and an interdisciplinary
Page 22: TARDIS - Astrophysics Source Code Libraryascl.net/wordpress/wp-content/uploads/2017/07/Kerzendorf_EWASS… · a radiative transfer code, an open source community, and an interdisciplinary
Page 23: TARDIS - Astrophysics Source Code Libraryascl.net/wordpress/wp-content/uploads/2017/07/Kerzendorf_EWASS… · a radiative transfer code, an open source community, and an interdisciplinary

Statisticians

Page 24: TARDIS - Astrophysics Source Code Libraryascl.net/wordpress/wp-content/uploads/2017/07/Kerzendorf_EWASS… · a radiative transfer code, an open source community, and an interdisciplinary

Know your limits!

What carries the biggest uncertainty?

What precision do you need to distinguish between models?

A statistician will be disgusted at first!

Raw frame from the UVES high-resolution spectrograph

Processed data: it’s an accreting black hole in

the infant Universe!

Page 25: TARDIS - Astrophysics Source Code Libraryascl.net/wordpress/wp-content/uploads/2017/07/Kerzendorf_EWASS… · a radiative transfer code, an open source community, and an interdisciplinary

Best practicesCredit - an unsolved problem

Page 26: TARDIS - Astrophysics Source Code Libraryascl.net/wordpress/wp-content/uploads/2017/07/Kerzendorf_EWASS… · a radiative transfer code, an open source community, and an interdisciplinary

Value of you/your code

Peer reviewed Journal Article!

ASCL

Software is difficult - many contributors - constantly changing

Page 27: TARDIS - Astrophysics Source Code Libraryascl.net/wordpress/wp-content/uploads/2017/07/Kerzendorf_EWASS… · a radiative transfer code, an open source community, and an interdisciplinary

Developing simulation codes

Science discovery needs to be the key driver (everything else is secondary)

Only write code that doesn’t exist anywhere else

Many of the software engineering techniques are geared towards team development - not always applicable

Page 28: TARDIS - Astrophysics Source Code Libraryascl.net/wordpress/wp-content/uploads/2017/07/Kerzendorf_EWASS… · a radiative transfer code, an open source community, and an interdisciplinary

Thank you