convdata Module

Model records shared by readers and renderer.

One record per model in .cnv layout (docs/cnvfiles.md), whatever input format; convection types are codes RADIATIVE to THERMOHALINE, which renderer indexes by. Colour-field registry (nfields, field_ arrays) shared by all records: readers fill it once, renderer resolves color <name> against field_names and reads each record's matching fld layer.


Uses


Variables

Type Visibility Attributes Name Initial
integer(kind=int32), public, parameter :: nvers = 10600

Record version 10600, not used by kippy.

integer(kind=int32), public, parameter :: nadvz = 4

Not used by kippy.

integer(kind=int32), public, parameter :: nangjd = 3

Length of the aw and angltv vectors.

integer(kind=int32), public, parameter :: nuc_kind_len = 2

Decimal digits of nuc_kind; every record must state this nuc_kind_len.

integer(kind=int32), public, parameter :: idx_kind_len = 4

Decimal digits of idx_kind; every record must state this idx_kind_len.

integer(kind=int32), public, parameter :: nhiz = 20

Length of abun.

integer(kind=int32), public, parameter :: idx_kind = SELECTED_INT_KIND(idx_kind_len)

Integer kind of grid indices, 16-bit.

integer(kind=int32), public, parameter :: nuc_kind = SELECTED_INT_KIND(nuc_kind_len)

Integer kind of energy levels, 8-bit.

integer(kind=int32), public, parameter :: RADIATIVE = 0

Radiative zone, not drawn.

integer(kind=int32), public, parameter :: NEUTRAL = 1

Neutral zone.

integer(kind=int32), public, parameter :: OVERSHOOT = 2

Overshoot zone.

integer(kind=int32), public, parameter :: SEMICONV = 3

Semiconvective zone.

integer(kind=int32), public, parameter :: CONVECTIVE = 4

Convective zone.

integer(kind=int32), public, parameter :: THERMOHALINE = 5

Thermohaline zone.

integer(kind=int32), public, parameter :: NCONVTYPES = 5

Number of drawn convection types, also highest type code.

character(len=1), public, parameter :: ZONE_CHAR(0:NCONVTYPES) = [' ', 'N', 'O', 'S', 'C', 'T']

yzip character a .cnv file stores per convection type ("Convection zones", docs/cnvfiles.md).

Any other character reads as radiative.

type(convtype), public, dimension(:), allocatable :: data

Loaded models, ascending model number.

integer(kind=int32), public, parameter :: FIELD_NBINS = 24

Number of contour bins of a colour field.

integer(kind=int32), public :: nfields = 0

Number of registered colour fields.

character(len=32), public, dimension(:), allocatable :: field_names

Name of each field, matched by color <name>.

character(len=32), public, dimension(:), allocatable :: field_units

Unit the source states for each field, blank if none.

real(kind=real64), public, dimension(:), allocatable :: field_vmin

Range of each field over whole model sequence, its colorbar bounds.

real(kind=real64), public, dimension(:), allocatable :: field_vmax

Range of each field over whole model sequence, its colorbar bounds.

real(kind=real64), public, dimension(:), allocatable :: field_vpos

Smallest positive value of each field, its log-scale floor.

logical, public, dimension(:), allocatable :: field_log

Default binning of each field, log when true.


Derived Types

type, public ::  fieldlayer

Column binned into contour levels.

Read more…

Components

Type Visibility Attributes Name Initial
integer(kind=int32), public :: n = 0

Number of entries.

integer(kind=nuc_kind), public, dimension(:), allocatable :: lev

Bin of each entry.

integer(kind=idx_kind), public, dimension(:), allocatable :: idx

Coordinate index where each entry starts.

type, public ::  convtype

Model record in .cnv layout.

Read more…

Components

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 ladv, length of advection arrays.

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 nuc, nuk and neu layers.

Read more…
integer(kind=int32), public :: mingain

Level floors, as consecutive (gain, loss) pairs of nuc, nuk and neu layers.

Read more…
integer(kind=int32), public :: minnucl

Level floors, as consecutive (gain, loss) pairs of nuc, nuk and neu layers.

Read more…
integer(kind=int32), public :: minnucg

Level floors, as consecutive (gain, loss) pairs of nuc, nuk and neu layers.

Read more…
integer(kind=int32), public :: minneul

Level floors, as consecutive (gain, loss) pairs of nuc, nuk and neu layers.

Read more…
integer(kind=int32), public :: minneug

Level floors, as consecutive (gain, loss) pairs of nuc, nuk and neu layers.

Read more…
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 .cnv reader.

type(fieldlayer), public, dimension(:, :), allocatable :: fld

Colour-field layers.

Read more…
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 toffset, in version 10700 and later only.

real(kind=real64), public :: eni

Global energy totals and rates, luminosities, moment of inertia angit.

real(kind=real64), public :: enk

Global energy totals and rates, luminosities, moment of inertia angit.

real(kind=real64), public :: enp

Global energy totals and rates, luminosities, moment of inertia angit.

real(kind=real64), public :: ent

Global energy totals and rates, luminosities, moment of inertia angit.

real(kind=real64), public :: epro

Global energy totals and rates, luminosities, moment of inertia angit.

real(kind=real64), public :: enn

Global energy totals and rates, luminosities, moment of inertia angit.

real(kind=real64), public :: enr

Global energy totals and rates, luminosities, moment of inertia angit.

real(kind=real64), public :: ensc

Global energy totals and rates, luminosities, moment of inertia angit.

real(kind=real64), public :: enes

Global energy totals and rates, luminosities, moment of inertia angit.

real(kind=real64), public :: enc

Global energy totals and rates, luminosities, moment of inertia angit.

real(kind=real64), public :: enpist

Global energy totals and rates, luminosities, moment of inertia angit.

real(kind=real64), public :: enid

Global energy totals and rates, luminosities, moment of inertia angit.

real(kind=real64), public :: enkd

Global energy totals and rates, luminosities, moment of inertia angit.

real(kind=real64), public :: enpd

Global energy totals and rates, luminosities, moment of inertia angit.

real(kind=real64), public :: entd

Global energy totals and rates, luminosities, moment of inertia angit.

real(kind=real64), public :: eprod

Global energy totals and rates, luminosities, moment of inertia angit.

real(kind=real64), public :: xlumn

Global energy totals and rates, luminosities, moment of inertia angit.

real(kind=real64), public :: enrd

Global energy totals and rates, luminosities, moment of inertia angit.

real(kind=real64), public :: enscd

Global energy totals and rates, luminosities, moment of inertia angit.

real(kind=real64), public :: enesd

Global energy totals and rates, luminosities, moment of inertia angit.

real(kind=real64), public :: encd

Global energy totals and rates, luminosities, moment of inertia angit.

real(kind=real64), public :: enpistd

Global energy totals and rates, luminosities, moment of inertia angit.

real(kind=real64), public :: xlum

Global energy totals and rates, luminosities, moment of inertia angit.

real(kind=real64), public :: xlum0

Global energy totals and rates, luminosities, moment of inertia angit.

real(kind=real64), public :: entloss

Global energy totals and rates, luminosities, moment of inertia angit.

real(kind=real64), public :: eniloss

Global energy totals and rates, luminosities, moment of inertia angit.

real(kind=real64), public :: enkloss

Global energy totals and rates, luminosities, moment of inertia angit.

real(kind=real64), public :: enploss

Global energy totals and rates, luminosities, moment of inertia angit.

real(kind=real64), public :: enrloss

Global energy totals and rates, luminosities, moment of inertia angit.

real(kind=real64), public :: angit

Global energy totals and rates, luminosities, moment of inertia angit.

real(kind=real64), public :: xmacc

Other term specific to KEPLER, not important.

real(kind=real64), public :: tc

Central quantities.

Read more…
real(kind=real64), public :: dc

Central quantities.

Read more…
real(kind=real64), public :: pc

Central quantities.

Read more…
real(kind=real64), public :: ec

Central quantities.

Read more…
real(kind=real64), public :: sc

Central quantities.

Read more…
real(kind=real64), public :: ye

Central quantities.

Read more…
real(kind=real64), public :: ab

Central quantities.

Read more…
real(kind=real64), public :: et

Central quantities.

Read more…
real(kind=real64), public :: sn

Central quantities.

Read more…
real(kind=real64), public :: su

Central quantities.

Read more…
real(kind=real64), public :: g1

Central quantities.

Read more…
real(kind=real64), public :: g2

Central quantities.

Read more…
real(kind=real64), public :: s1

Central quantities.

Read more…
real(kind=real64), public :: s2

Central quantities.

Read more…
real(kind=real64), public :: summ0

Other terms specific to KEPLER, not important.

Read more…
real(kind=real64), public :: radius0

Other terms specific to KEPLER, not important.

Read more…
real(kind=real64), public :: an

Other terms specific to KEPLER, not important.

Read more…
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 nadv, specific to KEPLER, not important.

real(kind=real64), public, dimension(:), allocatable :: dvadv

Advection arrays of length nadv, specific to KEPLER, not important.

character(len=1), public, dimension(:), allocatable :: yzip

Type of each convection zone, a ZONE_CHAR character.

integer(kind=nuc_kind), public, dimension(:), allocatable :: nuc

Levels of nuclear energy generation layer, drawn by color epsnuc.

integer(kind=nuc_kind), public, dimension(:), allocatable :: nuk

Levels of nuclear energy loss layer, drawn by color nuk.

integer(kind=nuc_kind), public, dimension(:), allocatable :: neu

Levels of neutrino layer, drawn by color neu.

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 nuc, nuk and neu starts.

integer(kind=idx_kind), public, dimension(:), allocatable :: inuk

Grid index where each level entry of nuc, nuk and neu starts.

integer(kind=idx_kind), public, dimension(:), allocatable :: ineu

Grid index where each level entry of nuc, nuk and neu starts.

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 nadv.

integer(kind=idx_kind), public, dimension(:), allocatable :: iconv

Grid index of outer edge of each convection zone.