From 05f6c77c290de1798f7302a8bd048aefe38de586 Mon Sep 17 00:00:00 2001 From: Marc Williamson Date: Fri, 31 May 2019 17:22:01 -0400 Subject: [PATCH] Added csvy_model property to base schema. --- tardis/io/schemas/base.yml | 3 + tardis/io/tests/data/csvy_test_config.yml | 77 +++++++++++++++++++++++ 2 files changed, 80 insertions(+) create mode 100644 tardis/io/tests/data/csvy_test_config.yml diff --git a/tardis/io/schemas/base.yml b/tardis/io/schemas/base.yml index db471d95479..b1b3b5489f9 100644 --- a/tardis/io/schemas/base.yml +++ b/tardis/io/schemas/base.yml @@ -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 diff --git a/tardis/io/tests/data/csvy_test_config.yml b/tardis/io/tests/data/csvy_test_config.yml new file mode 100644 index 00000000000..bbfab77d43e --- /dev/null +++ b/tardis/io/tests/data/csvy_test_config.yml @@ -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