forked from tardis-sn/tardis
-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Added Model Doc Page * Added files for new CSVY doc page
- Loading branch information
1 parent
0149d89
commit e0f5a04
Showing
7 changed files
with
236 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
--- | ||
name: csvy_full | ||
model_density_time_0: 1 day | ||
description: Example csvy config file for TARDIS. | ||
tardis_model_config_version: v1.0 | ||
datatype: | ||
fields: | ||
- name: velocity | ||
unit: km/s | ||
desc: velocities of shell outer bounderies. | ||
- name: density | ||
unit: g/cm^3 | ||
desc: density of shell. | ||
- name: t_rad | ||
unit: K | ||
desc: radiative temperature. | ||
- name: H | ||
desc: fractional H abundance | ||
- name: He | ||
desc: fractional He abundance | ||
- name: Ni56 | ||
desc: fractional Ni56 abundance | ||
|
||
v_inner_boundary: 9000 km/s | ||
v_outer_boundary: 12000 km/s | ||
--- | ||
velocity,density,t_rad,H,He,Ni56 | ||
9000, 5e-10, 7000, 1.0, 1.0, 1.0 | ||
10500, 2.0e-10, 7000, 0.0, 0.99, 0.01 | ||
12000, 9e-11, 7000, 0.4, 0.58, 0.02 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,5 @@ | ||
.. _densitycust: | ||
|
||
****************************** | ||
Using a custom density profile | ||
****************************** | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,5 @@ | ||
.. _modelconfig: | ||
|
||
************************** | ||
Ejecta Model Configuration | ||
************************** | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,152 @@ | ||
$schema: http://json-schema.org/draft-04/schema# | ||
type: object | ||
additionalProperties: false | ||
properties: | ||
name: | ||
type: string | ||
description: name of the model being run | ||
|
||
model_density_time_0: | ||
type: quantity | ||
description: Initial time for the density in the model | ||
|
||
model_isotope_time_0: | ||
type: quantity | ||
default: -1 day | ||
description: initial time for isotope decay | ||
|
||
description: | ||
type: string | ||
description: description of the model being run | ||
|
||
tardis_model_config_version: | ||
type: string | ||
description: Version of the configuration file | ||
|
||
# datatype name used for consistency with astropy ecsv files. | ||
datatype: | ||
type: object | ||
description: fields found in csv part of csvy file | ||
additionalProperties: False | ||
properties: | ||
fields: | ||
type: array | ||
|
||
v_inner_boundary: | ||
type: quantity | ||
description: velocity of the inner boundary | ||
|
||
v_outer_boundary: | ||
type: quantity | ||
description: velocity of the outer boundary of the last shell | ||
|
||
velocity: | ||
type: object | ||
properties: | ||
start: | ||
type: quantity | ||
stop: | ||
type: quantity | ||
num: | ||
type: number | ||
multipleOf: 1.0 | ||
|
||
density: | ||
oneOf: | ||
- $ref: '#/definitions/density/branch85_w7' | ||
- $ref: '#/definitions/density/exponential' | ||
- $ref: '#/definitions/density/power_law' | ||
- $ref: '#/definitions/density/uniform' | ||
|
||
abundance: | ||
$ref: '#/definitions/abundance/uniform' | ||
|
||
required: | ||
- tardis_model_config_version | ||
|
||
definitions: | ||
density: | ||
branch85_w7: | ||
type: object | ||
additionalProperties: false | ||
properties: | ||
type: | ||
enum: | ||
- branch85_w7 | ||
w7_time_0: | ||
type: quantity | ||
default: 0.000231481 day | ||
description: This needs no change - DO NOT TOUCH | ||
w7_rho_0: | ||
type: quantity | ||
default: 3e29 g/cm^3 | ||
description: This needs no change - DO NOT TOUCH | ||
w7_v_0: | ||
type: quantity | ||
default: 1 km/s | ||
description: This needs no change - DO NOT TOUCH | ||
exponential: | ||
type: object | ||
additionalProperties: false | ||
properties: | ||
type: | ||
enum: | ||
- exponential | ||
time_0: | ||
type: quantity | ||
description: Time at which the pure model densities are right | ||
rho_0: | ||
type: quantity | ||
description: density at time_0 | ||
v_0: | ||
type: quantity | ||
description: at what velocity the density rho_0 applies | ||
required: | ||
- rho_0 | ||
- v_0 | ||
power_law: | ||
type: object | ||
additionalProperties: false | ||
properties: | ||
type: | ||
enum: | ||
- power_law | ||
time_0: | ||
type: quantity | ||
description: Time at which the pure model densities are right | ||
rho_0: | ||
type: quantity | ||
description: density at time_0 | ||
v_0: | ||
type: quantity | ||
description: at what velocity the density rho_0 applies | ||
exponent: | ||
type: number | ||
description: exponent for exponential density profile | ||
required: | ||
- rho_0 | ||
- v_0 | ||
- exponent | ||
uniform: | ||
type: object | ||
additionalProperties: false | ||
properties: | ||
type: | ||
enum: | ||
- uniform | ||
time_0: | ||
type: quantity | ||
description: Time at which the pure model densities are right | ||
value: | ||
type: quantity | ||
description: value for uniform density | ||
required: | ||
- value | ||
abundance: | ||
uniform: | ||
type: object | ||
additionalProperties: true | ||
properties: | ||
type: | ||
enum: | ||
- uniform |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters