Skip to content

Instantly share code, notes, and snippets.

@epassaro
Last active February 8, 2020 19:44
Show Gist options
  • Save epassaro/4994a53cf7ca14aeb76fed5f933a8192 to your computer and use it in GitHub Desktop.
Save epassaro/4994a53cf7ca14aeb76fed5f933a8192 to your computer and use it in GitHub Desktop.

Base simulation file

Atomic data: kurucz.h5 / Iterations: 20 / No. of packets: 1.0e+06

# Example YAML configuration for TARDIS
tardis_config_version: v1.0

supernova:
  luminosity_requested: 9.44 log_lsun
  time_explosion: 13 day

atom_data: /home/epassaro/Desktop/tardis-sn/paper_carsus/data/atom_data/kurucz.h5

model:
  structure:
    type: specific
    velocity:
      start: 1.1e4 km/s
      stop: 20000 km/s
      num: 20
    density:
      type: branch85_w7

  abundances:
    type: uniform
    O: 0.19
    Mg: 0.03
    Si: 0.52
    S: 0.19
    Ar: 0.04
    Ca: 0.03

plasma:
  disable_electron_scattering: no
  ionization: lte
  excitation: lte
  radiative_rates_type: dilute-blackbody
  line_interaction_type: macroatom

montecarlo:
  seed: 23111963
  no_of_packets: 1.0e+6
  iterations: 20
  nthreads: 1

  last_no_of_packets: 1.e+5
  no_of_virtual_packets: 10

  convergence_strategy:
    type: damped
    damping_constant: 1.0
    threshold: 0.05
    fraction: 0.8
    hold_iterations: 3
    t_inner:
      damping_constant: 0.0

spectrum:
  method: integrated
  start: 500 angstrom
  stop: 20000 angstrom
  num: 10000

Chianti SI II simulation file

Atomic data: kurucz_chianti_si2.h5 / Iterations: 1 / No. of packets: 1.0e+06 / CSVY model: kurucz_t_rad_w.csvy

# Example YAML configuration for TARDIS
tardis_config_version: v1.0

supernova:
  luminosity_requested: 9.44 log_lsun
  time_explosion: 13 day

atom_data: /home/epassaro/Desktop/tardis-sn/paper_carsus/data/atom_data/kurucz_chianti_si2.h5

csvy_model: kurucz_t_rad_w.csvy

plasma:
  disable_electron_scattering: no
  ionization: lte
  excitation: lte
  radiative_rates_type: dilute-blackbody
  line_interaction_type: macroatom

montecarlo:
  seed: 23111963
  no_of_packets: 1.0e+6
  iterations: 1
  nthreads: 1

  last_no_of_packets: 1.e+5
  no_of_virtual_packets: 10

  convergence_strategy:
    type: damped
    damping_constant: 1.0
    threshold: 0.05
    fraction: 0.8
    hold_iterations: 3
    t_inner:
      damping_constant: 0.0

spectrum:
  method: integrated
  start: 500 angstrom
  stop: 20000 angstrom
  num: 10000

CSVY model file

---
name: kurucz_t_rad_w
tardis_model_config_version: v1.0
description: No description
datatype:
  fields:
    -  name: velocity
       unit: cm/s
       desc: velocities of shell outer boundaries
    -  desc: mean density of shell
       name: density
       unit: g/cm^3
    -  name: t_rad
       unit: K
       desc: radiative temperature
    -  name: dilution
       desc: dilution factor
    -  desc: Fraction O abundance
       name: O
    -  desc: Fraction Mg abundance
       name: Mg
    -  desc: Fraction Si abundance
       name: Si
    -  desc: Fraction S abundance
       name: S
    -  desc: Fraction Ar abundance
       name: Ar
    -  desc: Fraction Ca abundance
       name: Ca

model_density_time_0: 1. d
model_isotope_time_0: 0. d
---
velocity,density,t_rad,dilution,O,Mg,Si,S,Ar,Ca
1.145000000000000000e+09,7.542803599143601280e-14,1.011657846611006244e+04,5.109282481854002800e-01,1.900000000000000022e-01,2.999999999999999889e-02,5.200000000000000178e-01,1.900000000000000022e-01,4.000000000000000083e-02,2.999999999999999889e-02
1.190000000000000000e+09,5.728475007727659954e-14,1.018155428762300107e+04,3.928250563316327271e-01,1.900000000000000022e-01,2.999999999999999889e-02,5.200000000000000178e-01,1.900000000000000022e-01,4.000000000000000083e-02,2.999999999999999889e-02
1.235000000000000000e+09,4.396074223241607594e-14,1.022042454217543673e+04,3.190739695522211705e-01,1.900000000000000022e-01,2.999999999999999889e-02,5.200000000000000178e-01,1.900000000000000022e-01,4.000000000000000083e-02,2.999999999999999889e-02
1.280000000000000000e+09,3.406287425020112845e-14,1.023961709963738394e+04,2.670575200691768791e-01,1.900000000000000022e-01,2.999999999999999889e-02,5.200000000000000178e-01,1.900000000000000022e-01,4.000000000000000083e-02,2.999999999999999889e-02
1.325000000000000000e+09,2.663134639687049708e-14,1.024102580424804364e+04,2.284579379839153657e-01,1.900000000000000022e-01,2.999999999999999889e-02,5.200000000000000178e-01,1.900000000000000022e-01,4.000000000000000083e-02,2.999999999999999889e-02
1.370000000000000000e+09,2.099596452666046589e-14,1.023238170199575688e+04,1.995797115439043312e-01,1.900000000000000022e-01,2.999999999999999889e-02,5.200000000000000178e-01,1.900000000000000022e-01,4.000000000000000083e-02,2.999999999999999889e-02
1.415000000000000000e+09,1.668287210625362074e-14,1.020685708024753876e+04,1.773176697486387177e-01,1.900000000000000022e-01,2.999999999999999889e-02,5.200000000000000178e-01,1.900000000000000022e-01,4.000000000000000083e-02,2.999999999999999889e-02
1.460000000000000000e+09,1.335310530137024096e-14,1.017079861689912650e+04,1.599700559471246841e-01,1.900000000000000022e-01,2.999999999999999889e-02,5.200000000000000178e-01,1.900000000000000022e-01,4.000000000000000083e-02,2.999999999999999889e-02
1.505000000000000000e+09,1.076153774082932370e-14,1.011615214361157268e+04,1.466440107145501048e-01,1.900000000000000022e-01,2.999999999999999889e-02,5.200000000000000178e-01,1.900000000000000022e-01,4.000000000000000083e-02,2.999999999999999889e-02
1.550000000000000000e+09,8.729084848638442004e-15,1.005038374242212740e+04,1.358565741225791212e-01,1.900000000000000022e-01,2.999999999999999889e-02,5.200000000000000178e-01,1.900000000000000022e-01,4.000000000000000083e-02,2.999999999999999889e-02
1.595000000000000000e+09,7.123651558668793490e-15,9.997132886603141742e+03,1.258753581520485887e-01,1.900000000000000022e-01,2.999999999999999889e-02,5.200000000000000178e-01,1.900000000000000022e-01,4.000000000000000083e-02,2.999999999999999889e-02
1.640000000000000000e+09,5.846920946307213306e-15,9.933414145211178038e+03,1.179118018331911377e-01,1.900000000000000022e-01,2.999999999999999889e-02,5.200000000000000178e-01,1.900000000000000022e-01,4.000000000000000083e-02,2.999999999999999889e-02
1.685000000000000000e+09,4.825092789701088739e-15,9.881710365689450555e+03,1.107952939320818730e-01,1.900000000000000022e-01,2.999999999999999889e-02,5.200000000000000178e-01,1.900000000000000022e-01,4.000000000000000083e-02,2.999999999999999889e-02
1.730000000000000000e+09,4.002324163386396024e-15,9.831972132428742043e+03,1.042352842106815253e-01,1.900000000000000022e-01,2.999999999999999889e-02,5.200000000000000178e-01,1.900000000000000022e-01,4.000000000000000083e-02,2.999999999999999889e-02
1.775000000000000000e+09,3.336038552655111683e-15,9.761634558624236888e+03,9.911191819346253096e-02,1.900000000000000022e-01,2.999999999999999889e-02,5.200000000000000178e-01,1.900000000000000022e-01,4.000000000000000083e-02,2.999999999999999889e-02
1.820000000000000000e+09,2.793540383850727440e-15,9.698333924356036732e+03,9.434932310832828961e-02,1.900000000000000022e-01,2.999999999999999889e-02,5.200000000000000178e-01,1.900000000000000022e-01,4.000000000000000083e-02,2.999999999999999889e-02
1.865000000000000000e+09,2.349550433350698537e-15,9.635736481536903739e+03,9.010156742647712491e-02,1.900000000000000022e-01,2.999999999999999889e-02,5.200000000000000178e-01,1.900000000000000022e-01,4.000000000000000083e-02,2.999999999999999889e-02
1.910000000000000000e+09,1.984396832970012240e-15,9.564137176697375253e+03,8.653494519299570475e-02,1.900000000000000022e-01,2.999999999999999889e-02,5.200000000000000178e-01,1.900000000000000022e-01,4.000000000000000083e-02,2.999999999999999889e-02
1.955000000000000000e+09,1.682676886441666112e-15,9.468688143683155431e+03,8.397923885885419382e-02,1.900000000000000022e-01,2.999999999999999889e-02,5.200000000000000178e-01,1.900000000000000022e-01,4.000000000000000083e-02,2.999999999999999889e-02
2.000000000000000000e+09,1.432259798833509567e-15,9.355029588601048090e+03,8.215418436900569221e-02,1.900000000000000022e-01,2.999999999999999889e-02,5.200000000000000178e-01,1.900000000000000022e-01,4.000000000000000083e-02,2.999999999999999889e-02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment