Skip to content

Commit

Permalink
Merge pull request #936 from marxwillia/csvy_model
Browse files Browse the repository at this point in the history
csvy_model
  • Loading branch information
wkerzendorf authored Jul 6, 2019
2 parents 0a7147f + 551d730 commit adde5b0
Show file tree
Hide file tree
Showing 41 changed files with 3,596 additions and 40 deletions.
12 changes: 12 additions & 0 deletions docs/notebooks/data/abund.dat
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
H He

0.000000 1.000000
0.100000 0.900000
0.200000 0.800000
0.300000 0.700000
0.400000 0.600000
0.500000 0.500000
0.600000 0.400000
0.700000 0.300000
0.800000 0.200000
0.900000 0.100000
79 changes: 79 additions & 0 deletions docs/notebooks/data/config_init_trad.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,79 @@
# Example YAML configuration for TARDIS
tardis_config_version: v1.0

supernova:
#luminosity_requested: 8.770 log_lsun
luminosity_requested: 1.2264025510060545e+42 erg/s
luminosity_wavelength_start: 3000 angstrom
luminosity_wavelength_end: 9000 angstrom
time_explosion: 16 day
distance: 8.32 Mpc

# standard atomic data base; get it from the tardis-refdata repository
atom_data: kurucz_cd23_chianti_H_He.h5

model:
structure:
v_inner_boundary: 2900 km/s
v_outer_boundary: 3850 km/s
type: file
filename: density.txt
filetype: simple_ascii
# showing different configuration options separated by comments
# simple uniform
#---------------
#type: uniform
#value: 1e-40 g/cm^3
#---------------
# branch85_w7 - fit of seven order polynomial to W7 (like Branch 85)
#---------------
#type: branch85_w7
# default, no need to change
#w7_time_0: 19.9999584 s
# default, no need to change
#w7_rho_0: 3e29 g/cm^3
#---------------

abundances:
type: file
filename: abund.dat
filetype: custom_composition

plasma:
#initial_t_inner: 9000 K
initial_t_rad: 11000 K
disable_electron_scattering: no
ionization: lte
excitation: lte
# radiative_rates_type - currently supported are dilute-blackbody, detailed and blackbody
radiative_rates_type: dilute-blackbody
# line_interaction_type - currently supported are scatter, downbranch and macroatom
line_interaction_type: downbranch

montecarlo:
seed: 23111963
no_of_packets: 4.0e+4
iterations: 20
# Number of threads used in OMP mode; uncomment if you want to control the
# OMP behaviour via the config; otherwise the maximum available number of
# threads is used or the number specified in the OMP_NUM_THREADS environment
# variable
# --------
nthreads: 16

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: 1.0

spectrum:
start: 500 angstrom
stop: 20000 angstrom
num: 10000
79 changes: 79 additions & 0 deletions docs/notebooks/data/config_no_init_trad.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,79 @@
# Example YAML configuration for TARDIS
tardis_config_version: v1.0

supernova:
#luminosity_requested: 8.770 log_lsun
luminosity_requested: 1.2264025510060545e+42 erg/s
luminosity_wavelength_start: 3000 angstrom
luminosity_wavelength_end: 9000 angstrom
time_explosion: 16 day
distance: 8.32 Mpc

# standard atomic data base; get it from the tardis-refdata repository
atom_data: kurucz_cd23_chianti_H_He.h5

model:
structure:
v_inner_boundary: 3350 km/s
v_outer_boundary: 3750 km/s
type: file
filename: density.txt
filetype: simple_ascii
# showing different configuration options separated by comments
# simple uniform
#---------------
#type: uniform
#value: 1e-40 g/cm^3
#---------------
# branch85_w7 - fit of seven order polynomial to W7 (like Branch 85)
#---------------
#type: branch85_w7
# default, no need to change
#w7_time_0: 19.9999584 s
# default, no need to change
#w7_rho_0: 3e29 g/cm^3
#---------------

abundances:
type: file
filename: abund.dat
filetype: custom_composition

plasma:
#initial_t_inner: 9000 K
#initial_t_rad: 9000 K
disable_electron_scattering: no
ionization: lte
excitation: lte
# radiative_rates_type - currently supported are dilute-blackbody, detailed and blackbody
radiative_rates_type: dilute-blackbody
# line_interaction_type - currently supported are scatter, downbranch and macroatom
line_interaction_type: downbranch

montecarlo:
seed: 23111963
no_of_packets: 4.0e+4
iterations: 20
# Number of threads used in OMP mode; uncomment if you want to control the
# OMP behaviour via the config; otherwise the maximum available number of
# threads is used or the number specified in the OMP_NUM_THREADS environment
# variable
# --------
nthreads: 16

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: 1.0

spectrum:
start: 500 angstrom
stop: 20000 angstrom
num: 10000
13 changes: 13 additions & 0 deletions docs/notebooks/data/density.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
80 day

0 2900.0 4.2825378145878566e-16
1 3000.0 4.1266888565148947e-16
2 3100.0 3.9494056177393524e-16
3 3200.0 3.80047742794982e-16
4 3300.0 3.6372082863336294e-16
5 3400.0 3.533729450270666e-16
6 3500.0 3.4614895543847123e-16
7 3600.0 3.376839755924977e-16
8 3700.0 3.3078071500550274e-16
9 3800.0 3.266890036690215e-16
10 3900.0 3.230895802227087e-16
Loading

0 comments on commit adde5b0

Please sign in to comment.