Skip to content

Commit

Permalink
Added csvy_model property to base schema.
Browse files Browse the repository at this point in the history
  • Loading branch information
marxwillia committed May 31, 2019
1 parent 153736a commit 8d90018
Show file tree
Hide file tree
Showing 2 changed files with 80 additions and 0 deletions.
3 changes: 3 additions & 0 deletions tardis/io/schemas/base.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,9 @@ properties:
tardis_config_version:
type: string
description: Version of the configuration file. The current version is 1.0 and no other versions are allowed
csvy_model:
type: string
description: Path to the csvy model file.
supernova:
$ref: supernova.yml
description: a section pertaining to observations of the supernova
Expand Down
77 changes: 77 additions & 0 deletions tardis/io/tests/data/csvy_test_config.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,77 @@
# Example YAML configuration for TARDIS
tardis_config_version: v1.0

supernova:
luminosity_requested: 8.770 log_lsun
time_explosion: 16 day
distance: 8.32 Mpc

# standard atomic data base; get it from the tardis-refdata repository
atom_data: /home/mew488/Research/TARDIS/tardis-refdata/atom_data/kurucz_cd23_chianti_H_He.h5

csvy_model: csvy_full.csvy

model:
structure:
#v_inner_boundary: 9500 km/s
type: file
filename: test_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: test_abund.dat
filetype: custom_composition

plasma:
#initial_t_inner: 10000 K
#initial_t_rad: 10000 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: macroatom

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

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

0 comments on commit 8d90018

Please sign in to comment.