Reader of MONASH seq files into convdata%data.
Format and colour fields in "MONASH seq", docs/formats.md. Two passes: records and field
ranges, then binned field layers. kcvtn codes as set in MONASH code (amanda/phys.f, closed
source, no public reference).
| Type | Visibility | Attributes | Name | Initial | |||
|---|---|---|---|---|---|---|---|
| integer(kind=int16), | private, | parameter | :: | MON_RADIATIVE | = | 0 |
|
| integer(kind=int16), | private, | parameter | :: | MON_CONVECTIVE | = | 1 |
|
| integer(kind=int16), | private, | parameter | :: | MON_SEMICONV | = | 2 |
Gap mixed when MONASH |
| integer(kind=int16), | private, | parameter | :: | MON_OVERSHOOT | = | 3 |
|
| integer(kind=int32), | private, | parameter | :: | MON_NFIELDS | = | 20 |
Number of colour fields. |
| real(kind=real64), | private, | parameter | :: | LSUN | = | 3.851d33 |
Solar luminosity (erg/s), from MONASH MONASH itself uses 3.8515d33, citing Guenther et al. 1992, ApJ 387, 372. |
| character(len=32), | private, | parameter | :: | MON_FIELD_NAMES(MON_NFIELDS) | = | [character(len=32)::'Temperature', 'Density', 'Pressure', 'Luminosity', 'H_reaction_rate', 'He3_reaction_rate', 'He4_reaction_rate', 'C_reaction_rate', 'N_reaction_rate', 'O_reaction_rate', 'Other_reaction_rate', 'Internal_energy', 'Convective_velocity', 'X_H', 'X_He3', 'X_He4', 'X_C', 'X_N', 'X_O', 'X_Other'] |
Colour-field names, in |
Colour-field values of one model.
| Type | Visibility | Attributes | Name | Initial | |||
|---|---|---|---|---|---|---|---|
| real(kind=real64), | public, | allocatable | :: | v(:,:) |
Value per cell (rows) and field (columns). |
Return ZONE_CHAR type of kcvtn code.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| integer(kind=int16), | intent(in) | :: | m |
|
Load models of MONASH seq file into data.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| character(len=*), | intent(in) | :: | path |
Path of the |
||
| integer(kind=int32), | intent(in) | :: | ifirst |
First model number to load. |
||
| integer(kind=int32), | intent(in) | :: | ilast |
Last model number to load. |
Extend recs by GROW_FAC, keeping first nkeep records.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| type(convtype), | intent(inout), | allocatable | :: | recs(:) |
Record array. |
|
| integer(kind=int32), | intent(inout) | :: | ncap |
Capacity of |
||
| integer(kind=int32), | intent(in) | :: | nkeep |
Number of records to keep. |
Build record of one MONASH model.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| type(convtype), | intent(out) | :: | cnv |
Record to build. |
||
| type(rawset), | intent(out) | :: | raw |
Colour-field values of model. |
||
| integer, | intent(in) | :: | model |
Model number. |
||
| integer, | intent(in) | :: | nz |
Number of cells. |
||
| real(kind=real64), | intent(in) | :: | time |
Age (s), stored as |
||
| real(kind=real64), | intent(in) | :: | dt |
Time step that reached this model (s), stored as |
||
| real(kind=real64), | intent(in) | :: | mass |
Total mass (g). |
||
| real(kind=real64), | intent(in) | :: | ltc |
Central temperature, |
||
| real(kind=real64), | intent(in) | :: | lpc |
Central pressure, |
||
| real(kind=real64), | intent(in) | :: | omx(:) |
Mass coordinate |
||
| real(kind=real64), | intent(in) | :: | rhop(:) |
Density of each cell. |
||
| real(kind=real64), | intent(in) | :: | up(:) |
Internal energy per gram of each cell. |
||
| real, | intent(in) | :: | vconvp(:) |
Convective velocity of each cell. |
||
| integer(kind=int16), | intent(in) | :: | kcvtn(:) |
Convection code of each cell. |
||
| real(kind=real64), | intent(in) | :: | f(:,:) |
Steps across each cell. |
||
| real, | intent(in) | :: | w(:,:) |
Seven mass fractions of each cell. |
||
| real, | intent(in) | :: | wd(:,:) |
Seven reaction rates of each cell. |
Fill colour-field values of one model, in MON_FIELD_NAMES order.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| type(rawset), | intent(out) | :: | raw |
Colour-field values. |
||
| integer, | intent(in) | :: | nz |
Number of cells. |
||
| real(kind=real64), | intent(in) | :: | ltc |
Central temperature, |
||
| real(kind=real64), | intent(in) | :: | lpc |
Central pressure, |
||
| real(kind=real64), | intent(in) | :: | rhop(:) |
Density of each cell. |
||
| real(kind=real64), | intent(in) | :: | up(:) |
Internal energy per gram of each cell. |
||
| real, | intent(in) | :: | vconvp(:) |
Convective velocity of each cell. |
||
| real(kind=real64), | intent(in) | :: | f(:,:) |
Steps across each cell. |
||
| real, | intent(in) | :: | w(:,:) |
Seven mass fractions of each cell. |
||
| real, | intent(in) | :: | wd(:,:) |
Seven reaction rates of each cell. |