Skip to content

Combining features

Most of kore's features work together: a magnetic field with differential rotation, a stratified fluid in a full sphere, a resolved conducting mantle with rotating solids. Some combinations work only under a condition, and a few are not supported. kore checks the parameters when a run starts and, on any combination it cannot solve, stops with a message that says what to change. This page shows, for each pair of features and for each forcing, whether a run works, works under a condition, or stops, and whether a test checks that its solution is right.

How to read the tables

Each cell answers two questions: does kore run the combination, and does a test show that its solution is right?

mark meaning
✓ runs, and a test suite checks it: with the pointer on the mark, the suites and the runs that do (and on a code, the name of its feature)
○ runs, and no suite checks it
✓1, ○a runs under the condition of the note, and stops otherwise (note 7: kore warns, and stops only with ferraro_policy = 'refuse')
✗ stops at startup, with a message
– has no meaning: two values of one parameter, an inner core in a full sphere, a viscosity without a flow

A combination counts as tested when a test run with both features compares the solution with theory, with an independent computation, or with an energy budget that must close. The tests are in tests/ (Modifying kore).

Each feature also has requirements of its own, whatever it is combined with (Requirements of each feature): a ✓ or a ○ means that the pair runs when both features meet theirs.

The features

The tables name each feature by a short code.

code feature switched on by page
FS a full sphere, without an inner core ricb = 0 Regularity at the centre
Inv an inviscid fluid ViscosD = 0 (Ek = 0) Boundary conditions
H0 no flow: the field, the entropy or the composition alone hydro = 0 The field without the flow
S the entropy and its stratification thermal = 1 Stratification
C the composition compositional = 1 Composition
DR a differential rotation diff_rot = 1 Rotation
U a background flow bgflow = 1 Background flow
Cf the centrifugal deformation, at first order in the flattening centrifugal = 1 Centrifugal deformation
Sph the exact spheroid centrifugal = 1 with centrifugal_shape = 'spheroid' Flattening
B a magnetic field magnetic = 1 Magnetic field
cIC a conducting inner core magnetic = 1 and innercore = 'conducting, Chebys' Inner core and walls
Bes a conducting inner core at one frequency magnetic = 1 and innercore = 'conducting, Bessel' Forced runs
TWA a thin conducting layer magnetic = 1, and mantle = 'TWA' or innercore = 'TWA' Thin conducting layer
Man a resolved conducting mantle magnetic = 1 and mantle = 'resolved' Resolved conducting mantle
Rot the rotating solids rotdyn = 1 Rotating solids
Kd a constant drag at the outer wall kappa_cmb > 0 Constant drag
Kt the drag of the topography topo_drag = 'rekier' Drag of the topography

innercore and mantle are used only with a magnetic field. The forcings have a table of their own (Forced runs).

Pairs of features

The grid crosses every pair of features. A pair runs if it runs in an eigenvalue problem or in a forced run, whose own conditions are under Forced runs. The grid is symmetric: read a row against a column.

FS Inv H0 S C DR U Cf Sph B cIC Bes TWA Man Rot Kd Kt
FS ✓ ✓ ✓1 ✓1 ✓ ✓ ✓2 ✓2 ✓3 – – ✓4 ✓ ✗ ✓ ✓
Inv ✓ – ✓1 ✓1 ○ ✓ ✓ ✓ ✓3,5 ✗ ✗ ○4,5 ○ ✗ ✗ ✗
H0 ✓ – ✓ ✓ ✓ ○ ○ ○ ✓ ✓ ✗ ✓ ✓ ✗ ✗ ✗
S ✓1 ✓1 ✓ ✓ ✓6 ✓ ✓ ✓ ✓ ✓ ✓ ✓ ✓ ✓ ✓ ✓
C ✓1 ✓1 ✓ ✓ ✓ ✓ ✓ ✓ ✓ ✓ ○ ✓ ✓ ✓ ○ ✓
DR ✓ ○ ✓ ✓6 ✓ ○ ✓ ✗ ✓7 ✓8 ✓8 ✓8 ✓8 ✗ ✓ ✗
U ✓ ✓ ○ ✓ ✓ ○ ✗ ✗ ✓7 ✓8 ○8 ✓8 ✓8 ✗ ○ ✗
Cf ✓2 ✓ ○ ✓ ✓ ✓ ✗ – ✓9 ✓10 ✗ ✗ ✗ ✗ ✓ ✓
Sph ✓2 ✓ ○ ✓ ✓ ✗ ✗ – ✓9 ✓10 ✗ ✓15 ✓ ✗ ✓ ✓
B ✓3 ✓3,5 ✓ ✓ ✓ ✓7 ✓7 ✓9 ✓9 ✓ ✓ ✓ ✓ ✓11 ✓ ✓
cIC – ✗ ✓ ✓ ✓ ✓8 ✓8 ✓10 ✓10 ✓ – ✓12 ✓ ✓ ✓ ✓
Bes – ✗ ✗ ✓ ○ ✓8 ○8 ✗ ✗ ✓ – ✓12 ✓ ✗ ○13 ○13
TWA ✓4 ○4,5 ✓ ✓ ✓ ✓8 ✓8 ✗ ✓15 ✓ ✓12 ✓12 ✓14 ✓ ✓ ✓
Man ✓ ○ ✓ ✓ ✓ ✓8 ✓8 ✗ ✓ ✓ ✓ ✓ ✓14 ✓ ✓ ✓
Rot ✗ ✗ ✗ ✓ ✓ ✗ ✗ ✗ ✗ ✓11 ✓ ✗ ✓ ✓ ✓ ✓
Kd ✓ ✗ ✗ ✓ ○ ✓ ○ ✓ ✓ ✓ ✓ ○13 ✓ ✓ ✓ ✗
Kt ✓ ✗ ✗ ✓ ✓ ✗ ✗ ✓ ✓ ✓ ✓ ○13 ✓ ✓ ✓ ✗
  • 1. 'inverse square' (stratification, comp_stratification) needs an inner core.
  • 2. With the flow, a viscous fluid and m other than 0, a deformed full sphere needs rpower_v ≥ 4 (the default is 3).
  • 3. B0 = 'dipole', whose source is at the centre, and B0_tor = 'Malkus' of degree 2, which is not regular there, need an inner core. A 'user' or 'general' profile must be finite at the centre.
  • 4. The thin layer at the outer wall (mantle = 'TWA').
  • 5. An inviscid fluid cannot take the push of a current sheet at its wall. B0 must meet the wall (a toroidal B0 that vanishes there, a poloidal one that matches the field beyond), unless a conductor beyond holds the sheet: a thin layer that conducts (c1_cmb not 0) or the resolved mantle.
  • 6. thermal_wind 1 or 2 needs Beyonce other than 0 (set it after set_scales()).
  • 7. B0 is a steady background only if the rotation or the flow leaves it steady: the rotation must not wind it up (Ferraro's law), and the flow must not induce a field from it (Background flow). kore prints how far it is from that, warns, and with ferraro_policy = 'refuse' stops above \(10^{-7}\). bin/bgflow.py does not write the flow of a forcing-12 run that has a field.
  • 8. A conducting solid (a conducting inner core, a thin layer that conducts, c1 not 0, or the resolved mantle) turns rigidly: the differential rotation must be uniform in latitude at its wall, and the background flow a rigid rotation there.
  • 9. A current sheet at a slipping wall with an insulator beyond stops a deformed body: use a no-slip wall, or a field that meets the wall.
  • 10. mu_i2o = 1, and with the flow and a poloidal B0, a no-slip inner wall (bci = 1).
  • 11. A toroidal B0 must vanish at both walls.
  • 12. The thin layer at the outer wall.
  • 13. With the forcings that take the drag (Forced runs).
  • 14. The thin layer on the inner core, the resolved mantle at the outer wall.
  • 15. The thin layer at the outer wall in its thin limit (c_cmb = 0, mu = 1).

Forced runs

A forcing adds conditions of its own, on m and symm, on the walls, and on the solids that it moves or turns. Every forced run needs the flow (hydro = 1) and a spherical body (centrifugal = 0), and none works with the rotating solids (rotdyn = 1), so the table has no columns for them.

Two rules hold for every forcing.

  • A steady run (forcing_frequency = 0) of a viscous fluid needs walls that stay in place, bco and bci 0 or 1.
  • Without diffusion (ThermaD = 0 with the entropy, CompoD = 0 with the composition), the scalar is only carried by the flow. The forcing frequency, seen from the rotating fluid, must then not be zero anywhere in the fluid, and the background flow must have no meridional circulation; otherwise the problem has no well-behaved solution and kore stops.
forcing FS Inv S C DR U B cIC Bes TWA Man Kd Kt
1, wave-like tide ✓a ✓a ✗ ✗ ✓ ✓ ✗ ✗ ✗ ✗ ✗ ✗ ✗
2, eccentricity tide of Enceladus ✗ ✗ ✓ ○ ✓ ○ ✓ ✗ ✗ ○b,c ✗ ✗ ✗
6, radial flow at the inner wall ✗ ✗ ✓ ○ ○ ○ ✓ ✓c ✓c,f ✓c ○ ○ ✓i
7, libration of the walls ✓ ✓d ✓ ✓ ✓ ✓ ✓ ✓c,e ✓c,e,f ✓c,e ✓ ✗ ✗
8, libration in the frame of the mantle ✓ ✓ ✓ ○ ✓ ✓ ✓ ✓e ✓e ✓e ✓ ✓ ○
9, radial flow at the walls ✓ ○ ✓ ○ ✓ ○ ✓ ✓c ✓c,f ✓c ✓ ✓g ○g,i
10, radial flow at the outer wall ✓ ✓ ○ ○ ✓ ○ ✓ ✓ ✓ ✓c ✓ ✗ ✗
11, random Reynolds stresses ✓ ✗ ○ ○ ○ ○ ✓ ✓ ○h ○ ○ ○ ○i
12, walls that turn steadily ✓ ✗ ✓ ○ ✓ ✓ ✓ ✓ ✓ ✓ ✓ ✓j ○i,j
13, entropy at the inner wall ✗ ✗ ✓ ○ ○ ○ ✓ ✓ ○ ○ ○ ✓ ○i,k
14, tide that moves the walls ✓ ✓ ✓ ○ ✓ ○ ✓ ✓c ○c,f ✓c ✓ ✗ ✗
  • a. With m = 2, an inner core.
  • b. A thin layer that does not conduct (c1_cmb and c1_icb 0).
  • c. A wall that the forcing moves radially, where B0 reaches it, needs one permeability on both sides: mu_i2o = 1 where a conducting inner core is behind it, mu = 1 at any other wall, and muw = 1 of a thin layer where it acts on B0 (A boundary that moves). The forcing moves the inner wall (6), the outer wall (10), or each wall whose amplitude is not 0 (2, with one amplitude for both; 9, 14, and 7 with m = 2).
  • d. With m = 2: the libration with m = 0 slides the walls along themselves, which an inviscid fluid does not feel.
  • e. With m = 0, the libration of the inner core (forcing_amplitude_icb not 0) behind a stress-free inner wall (bci = 0), along a conducting core or a thin layer that conducts, under a poloidal B0, stops.
  • f. Not with forced_walls = 'deforming' where the forcing moves the inner wall: the default for 9 and 14, which then need forced_walls = 'rigid' or forcing_amplitude_icb = 0.
  • g. With the outer wall in place (forcing_amplitude_cmb = 0).
  • h. Not in a frequency scan (rsf_frequencies).
  • i. The drag of the topography needs topo_omega in a steady run and in a frequency scan.
  • j. The outer wall at rest and stress-free, the inner wall turning.
  • k. A steady run needs a no-slip inner wall (bci = 1).

What each forcing needs, whatever it is combined with:

forcing m, symm frequency walls also
1 (0, 1), (1, −1), (2, 1) not 0 bco, bci 0 or 1 structure = 'Boussinesq', thermal = 0, compositional = 0, magnetic = 0, no drag; with m = 2 an inner core
2 (0, 1), (2, 1) not 0 bco = bci = 1 a viscous fluid; ricb from 16/21 to 1; no conducting solid behind a wall
6 (1, −1) any bci 0 or 1 an inner core
7 (0, 1) or (2, 1) any m = 0: bco = 1 and bci 0 or 1; m = 2: bco = bci = 1 with m = 0, a viscous fluid
8 (0, 1) not 0 bco, bci 0 or 1 in a full sphere forcing_amplitude_icb = 0
9 (2, 1) any bco 0 or 1 where it moves the outer wall, bci = 1 the drag only with forcing_amplitude_cmb = 0
10 m ≥ 1, symm = 1 any bco 0 or 1 no drag: it always moves the outer wall
11 any any, or a scan (rsf_frequencies) any a viscous fluid; rsf_taper > 0; with rsf_rcut, ricb ≤ rsf_rcut < 1 − rsf_rcut_width and rsf_rcut_width > 0; rsf_theta = 'mlt' with rsf_lum and visc_pow = 0; in a full sphere rpower_u ≥ 5, rpower_v ≥ 3 and rsf_taper_in > 0
12 (0, 1) 0 bco, bci 0 or 1; a wall that turns is no-slip a viscous fluid; a wall that turns; in a full sphere forcing_amplitude_icb = 0
13 (0, 1) any steady: bco, bci 0 or 1, and a no-slip wall or kappa_cmb > 0 an inner core; thermal = 1 with ThermaD > 0; forcing_amplitude_icb not 0
14 (0, 1), (1, −1), (2, 1) any bco = bci = 1

bci has no meaning in a full sphere. An inviscid fluid (only possible in a full sphere) accepts any bco.

Requirements of each feature

Each feature has requirements of its own, whatever it is combined with. kore stops on any that a run does not meet.

feature needs
every run an even N; lmax − m + 1 a multiple of twice the number of MPI ranks (assemble.py checks it); structure = 'Wu 2005' and 'polytrope' need r_out between 0 and 1; 'Jones 2011' and stratification 'conduction' need ricb > 0, and 'Jones 2011' needs r_out = 1 and refuses centrifugal_shape = 'clairaut', which 'polytrope' takes. In a full sphere kore warns where a background profile is not regular at the centre
Inv a full sphere (ricb = 0)
H0 magnetic, thermal or compositional = 1, and an eigenvalue problem; not track_target = 2, which picks the mode by its kinetic energies (Following a mode)
S with thermal diffusion (ThermaD > 0), \(p_0 > 0\) at the walls, which 'model S hydrostatic' does not have from r_out of about 0.998 on (at structure_deg 30) (Structure)
DR with the entropy, thermal_wind 1 or 2 needs Beyonce other than 0; diff_rot_type = 'ferraro' needs a poloidal B0
Cf, Sph an eigenvalue problem; with the flow and a viscous fluid, bco and bci 0 or 1. The spheroid: structure = 'Boussinesq', diffusivity = 'uniform', centrifugal_q = 0 and a flattening below 1
B Le > 0 and Em > 0, and the limits of What is supported
cIC, Bes an inner core; bci 0 or 1; mu_i2o and sigma_i2o positive. 'conducting, Bessel' in a forced run only, and not in a frequency scan
TWA with a viscous fluid, bco (or bci) 0 or 1 at its wall; mu other than 1 needs a thin layer or a conducting inner core at every wall
Man mu = 1; with a viscous fluid, bco 0 or 1; r_surface > 1; a sigma_mantle that N_mantle resolves
Rot the flow, m = 0, symm = 1, an inner core and an eigenvalue problem; a viscous fluid with bci = 1 and bco 0 or 1; Gaspard > 0 (What is supported)
Kd, Kt the flow, a viscous fluid, a stress-free outer wall (bco = 0), Gaspard > 0; one of the two. Kt: a frequency of the flow other than 0 (What is supported)
U a background that is symmetric about the equator and does not cross the walls. Without bgflow_profiles, a bgflow_file written for the run's ricb and, if it has a poloidal flow, for its density; a nonlinear file (bgflow.py 12 nonlinear) only at its own bgflow_Ro, a linear one at any