Model record in .cnv layout.
Fields follow record table of docs/cnvfiles.md. kippy uses only ncyc, timesec,
convection zones, coordinates, nuc, nuk and neu layers and first six level floors;
profile readers also fill fld.
| Type | Visibility | Attributes | Name | Initial | |||
|---|---|---|---|---|---|---|---|
| integer(kind=int32), | public | :: | nvers |
Record version. |
|||
| integer(kind=int32), | public | :: | ncyc |
Model number. |
|||
| integer(kind=int32), | public | :: | nconv |
Number of convection zones. |
|||
| integer(kind=int32), | public | :: | nnuc |
Number of entries in each energy layer. |
|||
| integer(kind=int32), | public | :: | nnuk |
Number of entries in each energy layer. |
|||
| integer(kind=int32), | public | :: | nneu |
Number of entries in each energy layer. |
|||
| integer(kind=int32), | public | :: | nnucd |
Number of entries in each energy layer. |
|||
| integer(kind=int32), | public | :: | nnukd |
Number of entries in each energy layer. |
|||
| integer(kind=int32), | public | :: | nneud |
Number of entries in each energy layer. |
|||
| integer(kind=int32), | public | :: | ncoord |
Number of grid points. |
|||
| integer(kind=int32), | public | :: | idx_kind_len |
Decimal digits of grid indices, must be 4. |
|||
| integer(kind=int32), | public | :: | nuc_kind_len |
Decimal digits of energy levels, must be 2. |
|||
| integer(kind=int32), | public | :: | ladv |
Advection flags. |
|||
| integer(kind=int32), | public | :: | nadv |
Number of bits set in |
|||
| integer(kind=int32), | public | :: | levcnv |
Other term specific to KEPLER, not important. |
|||
| integer(kind=int32), | public | :: | minloss |
Level floors, as consecutive (gain, loss) pairs of Historical names do not match this meaning ("Energy layers", docs/cnvfiles.md). |
|||
| integer(kind=int32), | public | :: | mingain |
Level floors, as consecutive (gain, loss) pairs of Historical names do not match this meaning ("Energy layers", docs/cnvfiles.md). |
|||
| integer(kind=int32), | public | :: | minnucl |
Level floors, as consecutive (gain, loss) pairs of Historical names do not match this meaning ("Energy layers", docs/cnvfiles.md). |
|||
| integer(kind=int32), | public | :: | minnucg |
Level floors, as consecutive (gain, loss) pairs of Historical names do not match this meaning ("Energy layers", docs/cnvfiles.md). |
|||
| integer(kind=int32), | public | :: | minneul |
Level floors, as consecutive (gain, loss) pairs of Historical names do not match this meaning ("Energy layers", docs/cnvfiles.md). |
|||
| integer(kind=int32), | public | :: | minneug |
Level floors, as consecutive (gain, loss) pairs of Historical names do not match this meaning ("Energy layers", docs/cnvfiles.md). |
|||
| integer(kind=int32), | public | :: | minlossd |
Level floors of derivative layers. |
|||
| integer(kind=int32), | public | :: | mingaind |
Level floors of derivative layers. |
|||
| integer(kind=int32), | public | :: | minnucld |
Level floors of derivative layers. |
|||
| integer(kind=int32), | public | :: | minnucgd |
Level floors of derivative layers. |
|||
| integer(kind=int32), | public | :: | minneuld |
Level floors of derivative layers. |
|||
| integer(kind=int32), | public | :: | minneugd |
Level floors of derivative layers. |
|||
| integer(kind=int32), | public | :: | nfld | = | 0 |
Number of colour-field layers, 0 for the KEPLER |
|
| type(fieldlayer), | public, | dimension(:, :), allocatable | :: | fld |
Colour-field layers.
|
||
| real(kind=real64), | public, | dimension(nangjd) | :: | aw |
Central angular velocity vector (rad/s). |
||
| real(kind=real64), | public, | dimension(nangjd) | :: | angltv |
Total angular momentum vector. |
||
| real(kind=real64), | public | :: | timesec |
Age (s). |
|||
| real(kind=real64), | public | :: | dt |
Time step (s). |
|||
| real(kind=real64), | public | :: | toffset |
Record field |
|||
| real(kind=real64), | public | :: | eni |
Global energy totals and rates, luminosities, moment of inertia |
|||
| real(kind=real64), | public | :: | enk |
Global energy totals and rates, luminosities, moment of inertia |
|||
| real(kind=real64), | public | :: | enp |
Global energy totals and rates, luminosities, moment of inertia |
|||
| real(kind=real64), | public | :: | ent |
Global energy totals and rates, luminosities, moment of inertia |
|||
| real(kind=real64), | public | :: | epro |
Global energy totals and rates, luminosities, moment of inertia |
|||
| real(kind=real64), | public | :: | enn |
Global energy totals and rates, luminosities, moment of inertia |
|||
| real(kind=real64), | public | :: | enr |
Global energy totals and rates, luminosities, moment of inertia |
|||
| real(kind=real64), | public | :: | ensc |
Global energy totals and rates, luminosities, moment of inertia |
|||
| real(kind=real64), | public | :: | enes |
Global energy totals and rates, luminosities, moment of inertia |
|||
| real(kind=real64), | public | :: | enc |
Global energy totals and rates, luminosities, moment of inertia |
|||
| real(kind=real64), | public | :: | enpist |
Global energy totals and rates, luminosities, moment of inertia |
|||
| real(kind=real64), | public | :: | enid |
Global energy totals and rates, luminosities, moment of inertia |
|||
| real(kind=real64), | public | :: | enkd |
Global energy totals and rates, luminosities, moment of inertia |
|||
| real(kind=real64), | public | :: | enpd |
Global energy totals and rates, luminosities, moment of inertia |
|||
| real(kind=real64), | public | :: | entd |
Global energy totals and rates, luminosities, moment of inertia |
|||
| real(kind=real64), | public | :: | eprod |
Global energy totals and rates, luminosities, moment of inertia |
|||
| real(kind=real64), | public | :: | xlumn |
Global energy totals and rates, luminosities, moment of inertia |
|||
| real(kind=real64), | public | :: | enrd |
Global energy totals and rates, luminosities, moment of inertia |
|||
| real(kind=real64), | public | :: | enscd |
Global energy totals and rates, luminosities, moment of inertia |
|||
| real(kind=real64), | public | :: | enesd |
Global energy totals and rates, luminosities, moment of inertia |
|||
| real(kind=real64), | public | :: | encd |
Global energy totals and rates, luminosities, moment of inertia |
|||
| real(kind=real64), | public | :: | enpistd |
Global energy totals and rates, luminosities, moment of inertia |
|||
| real(kind=real64), | public | :: | xlum |
Global energy totals and rates, luminosities, moment of inertia |
|||
| real(kind=real64), | public | :: | xlum0 |
Global energy totals and rates, luminosities, moment of inertia |
|||
| real(kind=real64), | public | :: | entloss |
Global energy totals and rates, luminosities, moment of inertia |
|||
| real(kind=real64), | public | :: | eniloss |
Global energy totals and rates, luminosities, moment of inertia |
|||
| real(kind=real64), | public | :: | enkloss |
Global energy totals and rates, luminosities, moment of inertia |
|||
| real(kind=real64), | public | :: | enploss |
Global energy totals and rates, luminosities, moment of inertia |
|||
| real(kind=real64), | public | :: | enrloss |
Global energy totals and rates, luminosities, moment of inertia |
|||
| real(kind=real64), | public | :: | angit |
Global energy totals and rates, luminosities, moment of inertia |
|||
| real(kind=real64), | public | :: | xmacc |
Other term specific to KEPLER, not important. |
|||
| real(kind=real64), | public | :: | tc |
Central quantities.
|
|||
| real(kind=real64), | public | :: | dc |
Central quantities.
|
|||
| real(kind=real64), | public | :: | pc |
Central quantities.
|
|||
| real(kind=real64), | public | :: | ec |
Central quantities.
|
|||
| real(kind=real64), | public | :: | sc |
Central quantities.
|
|||
| real(kind=real64), | public | :: | ye |
Central quantities.
|
|||
| real(kind=real64), | public | :: | ab |
Central quantities.
|
|||
| real(kind=real64), | public | :: | et |
Central quantities.
|
|||
| real(kind=real64), | public | :: | sn |
Central quantities.
|
|||
| real(kind=real64), | public | :: | su |
Central quantities.
|
|||
| real(kind=real64), | public | :: | g1 |
Central quantities.
|
|||
| real(kind=real64), | public | :: | g2 |
Central quantities.
|
|||
| real(kind=real64), | public | :: | s1 |
Central quantities.
|
|||
| real(kind=real64), | public | :: | s2 |
Central quantities.
|
|||
| real(kind=real64), | public | :: | summ0 |
Other terms specific to KEPLER, not important.
|
|||
| real(kind=real64), | public | :: | radius0 |
Other terms specific to KEPLER, not important.
|
|||
| real(kind=real64), | public | :: | an |
Other terms specific to KEPLER, not important.
|
|||
| real(kind=real64), | public, | dimension(nhiz) | :: | abun |
Central composition (mass fractions). |
||
| real(kind=real64), | public, | dimension(:), allocatable | :: | xmcoord |
Mass coordinate of each grid point (g), centre to surface. |
||
| real(kind=real64), | public, | dimension(:), allocatable | :: | rncoord |
Radius coordinate of each grid point (cm), centre to surface. |
||
| real(kind=real64), | public, | dimension(:), allocatable | :: | dmadv |
Advection arrays of length |
||
| real(kind=real64), | public, | dimension(:), allocatable | :: | dvadv |
Advection arrays of length |
||
| character(len=1), | public, | dimension(:), allocatable | :: | yzip |
Type of each convection zone, a |
||
| integer(kind=nuc_kind), | public, | dimension(:), allocatable | :: | nuc |
Levels of nuclear energy generation layer, drawn by |
||
| integer(kind=nuc_kind), | public, | dimension(:), allocatable | :: | nuk |
Levels of nuclear energy loss layer, drawn by |
||
| integer(kind=nuc_kind), | public, | dimension(:), allocatable | :: | neu |
Levels of neutrino layer, drawn by |
||
| integer(kind=nuc_kind), | public, | dimension(:), allocatable | :: | nucd |
Levels of derivative layers, read but not drawn. |
||
| integer(kind=nuc_kind), | public, | dimension(:), allocatable | :: | nukd |
Levels of derivative layers, read but not drawn. |
||
| integer(kind=nuc_kind), | public, | dimension(:), allocatable | :: | neud |
Levels of derivative layers, read but not drawn. |
||
| integer(kind=idx_kind), | public, | dimension(:), allocatable | :: | inuc |
Grid index where each level entry of |
||
| integer(kind=idx_kind), | public, | dimension(:), allocatable | :: | inuk |
Grid index where each level entry of |
||
| integer(kind=idx_kind), | public, | dimension(:), allocatable | :: | ineu |
Grid index where each level entry of |
||
| integer(kind=idx_kind), | public, | dimension(:), allocatable | :: | inucd |
Grid index where each level entry of derivative layers starts. |
||
| integer(kind=idx_kind), | public, | dimension(:), allocatable | :: | inukd |
Grid index where each level entry of derivative layers starts. |
||
| integer(kind=idx_kind), | public, | dimension(:), allocatable | :: | ineud |
Grid index where each level entry of derivative layers starts. |
||
| integer(kind=idx_kind), | public, | dimension(:), allocatable | :: | iadv |
Advection grid indices, of length |
||
| integer(kind=idx_kind), | public, | dimension(:), allocatable | :: | iconv |
Grid index of outer edge of each convection zone. |
type convtype !! Model record in `.cnv` layout. !! !! Fields follow record table of docs/cnvfiles.md. kippy uses only `ncyc`, `timesec`, !! convection zones, coordinates, `nuc`, `nuk` and `neu` layers and first six level floors; !! profile readers also fill `fld`. integer(kind=int32) :: & nvers !! Record version. integer(kind=int32) :: & ncyc !! Model number. integer(kind=int32) :: & nconv !! Number of convection zones. integer(kind=int32) :: & nnuc, nnuk, nneu, nnucd, nnukd, nneud !! Number of entries in each energy layer. integer(kind=int32) :: & ncoord !! Number of grid points. integer(kind=int32) :: & idx_kind_len !! Decimal digits of grid indices, must be 4. integer(kind=int32) :: & nuc_kind_len !! Decimal digits of energy levels, must be 2. integer(kind=int32) :: & ladv !! Advection flags. integer(kind=int32) :: & nadv !! Number of bits set in `ladv`, length of advection arrays. integer(kind=int32) :: & levcnv !! Other term specific to KEPLER, not important. integer(kind=int32) :: & minloss, mingain, minnucl, minnucg, minneul, minneug !! Level floors, as consecutive (gain, loss) pairs of `nuc`, `nuk` and `neu` layers. !! !! Historical names do not match this meaning ("Energy layers", docs/cnvfiles.md). integer(kind=int32) :: & minlossd,mingaind,minnucld,minnucgd,minneuld,minneugd !! Level floors of derivative layers. integer(kind=int32) :: nfld = 0 !! Number of colour-field layers, 0 for the KEPLER `.cnv` reader. type(fieldlayer), dimension(:, :), allocatable :: fld !! Colour-field layers. !! !! `fld(1, f)` binned in field `f`'s default scale, `fld(2, f)` in other. REAL(kind=real64), dimension(nangjd) :: & aw !! Central angular velocity vector (rad/s). REAL(kind=real64), dimension(nangjd) :: & angltv !! Total angular momentum vector. real(kind=real64) :: & timesec !! Age (s). real(kind=real64) :: & dt !! Time step (s). real(kind=real64) :: & toffset !! Record field `toffset`, in version 10700 and later only. real(kind=real64) :: & eni,enk,enp,ent,epro,enn,enr, & ensc,enes,enc,enpist,enid,enkd, & enpd,entd,eprod,xlumn,enrd,enscd, & enesd,encd,enpistd,xlum,xlum0, & entloss,eniloss,enkloss,enploss, & enrloss,angit !! Global energy totals and rates, luminosities, moment of inertia `angit`. real(kind=real64) :: & xmacc !! Other term specific to KEPLER, not important. real(kind=real64) :: & tc,dc,pc,ec,sc,ye,ab, & et,sn,su,g1,g2,s1,s2 !! Central quantities. !! !! `convdump` prints `tc` and `dc`. real(kind=real64) :: & summ0,radius0,an !! Other terms specific to KEPLER, not important. !! !! `convdump` prints `summ0`, which is not added to the mass coordinate. real(kind=real64), dimension(nhiz) :: & abun !! Central composition (mass fractions). real(kind=real64), dimension(:), allocatable :: & xmcoord !! Mass coordinate of each grid point (g), centre to surface. real(kind=real64), dimension(:), allocatable :: & rncoord !! Radius coordinate of each grid point (cm), centre to surface. real(kind=real64), dimension(:), allocatable :: & dmadv, dvadv !! Advection arrays of length `nadv`, specific to KEPLER, not important. character(len=1), dimension(:), allocatable :: & yzip !! Type of each convection zone, a `ZONE_CHAR` character. ! these may be replaced by pointers in the future integer(KIND=nuc_kind), dimension(:), allocatable :: & nuc !! Levels of nuclear energy generation layer, drawn by `color epsnuc`. integer(KIND=nuc_kind), dimension(:), allocatable :: & nuk !! Levels of nuclear energy loss layer, drawn by `color nuk`. integer(KIND=nuc_kind), dimension(:), allocatable :: & neu !! Levels of neutrino layer, drawn by `color neu`. integer(KIND=nuc_kind), dimension(:), allocatable :: & nucd, nukd, neud !! Levels of derivative layers, read but not drawn. integer(KIND=idx_kind), dimension(:), allocatable :: & inuc,inuk,ineu !! Grid index where each level entry of `nuc`, `nuk` and `neu` starts. integer(KIND=idx_kind), dimension(:), allocatable :: & inucd,inukd,ineud !! Grid index where each level entry of derivative layers starts. integer(KIND=idx_kind), dimension(:), allocatable :: & iadv !! Advection grid indices, of length `nadv`. integer(KIND=idx_kind), dimension(:), allocatable :: & iconv !! Grid index of outer edge of each convection zone. end type convtype