Skip to content
Snippets Groups Projects
Commit 4a702ba5 authored by Alejandra Gonzalez's avatar Alejandra Gonzalez
Browse files

Merge branch 'fix-metadata' into 'master'

Updated metadata: added binary_type, neutrino_scheme and subgrid_model;...

See merge request !4
parents 38732713 7eb88164
No related branches found
No related tags found
1 merge request!4Updated metadata: added binary_type, neutrino_scheme and subgrid_model;...
source diff could not be displayed: it is too large. Options to address this: view the blob.
source diff could not be displayed: it is too large. Options to address this: view the blob.
......@@ -118,7 +118,7 @@ class CoRe_sim():
# Need to update also the metadata_main.tex
if len(r)==1: sep = ''
else: sep = ', '
self.md.data['available_resolutions'] += sep + r[-1]
self.md.data['available_runs'] += sep + r[-1]
self.write_metadata()
def del_run(self,r):
......
......@@ -11,10 +11,12 @@ from string import Template
MDKEYS = {
'database_key': 'A string like BAM:0001:R01 or THC:0013:R02 that identifies the simulation by the code employed for the evolution and a unique progressive number in the CoRe DB. The first part of the string corresponds to the repository name, like `BAM:0001` or `THC:0013`, and appears in the summary `metadata_main.txt`. The full string includes the different runs (different resolutions, grid setups, hydro scheme, etc.) and appears in the `metadata.txt` inside each run folder',
#
'available_resolutions': 'This is the list of runs (different resolutions, grid setups, hydro scheme, etc.) available for a given simulation, e.g. R01, R02, R03, etc. Note that with "simulation" here we indicate the set of runs of a given physical setup, i.e. of the same initial data and with the same physical assumptions (e.g. description of matter fields).\n[This field should really be called `available_runs`, to be fixed in the future].',
'available_runs': 'This is the list of runs (different resolutions, grid setups, hydro scheme, etc.) available for a given simulation, e.g. R01, R02, R03, etc. Note that with "simulation" here we indicate the set of runs of a given physical setup, i.e. of the same initial data and with the same physical assumptions (e.g. description of matter fields)',
#
'simulation_name': 'A string that identifies the simulated binary. The convention used so far is `<EOS>_<mass1>_<mass2>_<spin1z>_<spin2z>_<initial_frequency>_<setup_details>` formatted as e.g. `2B_1.350_1.350_0.00_0.00_0.038_0.186`. Similarly to the database_key, the first part of this string common to all runs of a simulation appears in the summary `metadata_main.txt`, While the full string appears in the `metadata.txt` inside each run folder',
#
'binary_type': 'Type of binary: BBH, BNS, or BHNS',
#
'reference_bibkeys': 'BibTeX code(s) from HEP-SPIRES referrring to the publication of the simulation.',
#
'id_code': 'Initial data: Code employed for generating initial data',
......@@ -85,6 +87,8 @@ MDKEYS = {
#
'grid_conservative_amr': 'Tells if a refluxing scheme was employed in the simulations',
#
'subgrid_model': 'Subgrid model: None, visL5, visL10, or visK',
#
'metric_scheme': 'Formulation employed for the metric field, e.g. Z4c, BSSN, etc',
#
'metric_boundary_conditions': 'Boundary conditions for the metric fields',
......@@ -103,6 +107,8 @@ MDKEYS = {
#
'eos_evolution_Gamma_thermal': 'EOS employed in the evolution or value of the adiabatic exponent for the thermal pressure component',
#
'neutrino_scheme': 'Neutrino scheme: None, Leakage, or M0',
#
'id_gw_NR_frequency_Hz': 'Initial frequency of the waveform in Herz',
#
'Hybrid_window_freq_Hz': 'Frequency window for the hrybrid part of the waveform in Herz',
......@@ -129,11 +135,12 @@ database_key = ${database_key}
"""
TXT_SUBHEAD1="""\
available_resolutions = ${available_resolutions}
available_runs = ${available_runs}
"""
TXT_SUBHEAD2="""\
simulation_name = ${simulation_name}
binary_type = ${binary_type}
reference_bibkeys = ${reference_bibkeys}
"""
......@@ -182,6 +189,7 @@ grid_shells = ${grid_shells}
grid_shells_radial_npoints = ${grid_shells_radial_npoints}
grid_shells_angular_npoints = ${grid_shells_angular_npoints}
grid_conservative_amr = ${grid_conservative_amr}
subgrid_model = ${subgrid_model}
metric_scheme = ${metric_scheme}
metric_boundary_conditions = ${metric_boundary_conditions}
hydro_flux = ${hydro_flux}
......@@ -191,6 +199,7 @@ hydro_atmosphere_factor = ${hydro_atmosphere_factor}
number_of_orbits = ${number_of_orbits}
evolution_mol_scheme = ${evolution_mol_scheme}
eos_evolution_Gamma_thermal = ${eos_evolution_Gamma_thermal}
neutrino_scheme = ${neutrino_scheme}
"""
TXT_H="""\
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment