Gill Model: Symmetric Heating with Gaussian Zonal Structure

This experiment applies equatorially symmetric heating with a Gaussian zonal envelope. The plots reveal how the localized forcing shapes the horizontal response and its vertical diagnostics.

import numpy as np
from easyclimate.field.simulation.gill import (
    simulate,
    plot_snapshot,
    plot_cross_sections,
)

Run the symmetric-heating experiment with a Gaussian zonal envelope.

<xarray.Dataset> Size: 313kB
Dimensions:      (y: 61, x: 128, y_staggered: 60, z: 20)
Coordinates:
  * y            (y) float64 488B -7.725 -7.468 -7.21 ... 7.21 7.468 7.725
  * x            (x) float64 1kB -12.57 -12.27 -11.98 ... 24.25 24.54 24.84
  * y_staggered  (y_staggered) float64 480B -7.725 -7.468 -7.21 ... 7.21 7.468
  * z            (z) float64 160B 0.0 0.1653 0.3307 0.496 ... 2.811 2.976 3.142
Data variables:
    q            (y, x) float64 62kB 1.698e-41 6.583e-40 ... 3.583e-141
    eta          (y, x) float64 62kB -1.878e-06 -1.943e-06 ... -1.816e-06
    u            (y, x) float64 62kB 1.164e-06 1.159e-06 ... 1.165e-06 1.166e-06
    v            (y, x) float64 62kB 2.666e-08 2.897e-08 ... -2.45e-08
    v_staggered  (y_staggered, x) float64 61kB 5.331e-08 5.793e-08 ... -4.9e-08
Attributes: (12/17)
    case:        gill_sym_gaussian_x
    case_label:  Gill: symmetric heating with Gaussian shape in zonal direction
    short_name:  Gill_sym_2
    t:           50.0
    nt:          500
    nx:          128
    ...          ...
    damping:     0.1
    kernel:      reyon
    dt:          0.1
    dx:          0.2945243112740431
    dy:          0.25750759455654043
    dz:          0.16534698176788384


Plot eta and the horizontal wind vector field.

plot_snapshot(
    result_symmetric_gaussian_x,
    quiver_kwargs={"scale": 10},
    contourf_kwargs = {"levels": np.linspace(-2, 2, 21)}
)
Gill: symmetric heating with Gaussian shape in zonal direction t = 50.00
<Axes: title={'center': 'Gill: symmetric heating with Gaussian shape in zonal direction\nt = 50.00'}, xlabel='x', ylabel='y'>

Plot the derived vertical cross-section diagnostics.

plot_cross_sections(
    result_symmetric_gaussian_x,
    contourf_uw_kwargs = {"levels": np.linspace(-0.2, 0.2, 21)},
    contourf_vw_kwargs = {"levels": np.linspace(-0.02, 0.02, 21)},
    contourf_u_kwargs = {"levels": np.linspace(-0.2, 0.2, 21)}
)
Gill: symmetric heating with Gaussian shape in zonal direction t = 50.00 u-w, v-w, u
<Figure size 800x800 with 6 Axes>

Total running time of the script: (0 minutes 6.976 seconds)