# 6.1. Model domain, grid and time¶

## 6.1.1. Model domain¶

### 6.1.1.1. Selecting a pre-defined domain¶

SICOPOLIS provides several pre-defined model domains. They can be chosen by defining a domain code in the run-specs header as follows:

```
#define GRL
! Simulated domain:
! ANT - Antarctica
! ASF - Austfonna
! EISMINT - EISMINT (Phase 2 SGE and modifications)
! GRL - Greenland
! NHEM - Northern hemisphere
! SCAND - Scandinavia
! TIBET - Tibet
! NMARS - North polar cap of Mars
! SMARS - South polar cap of Mars
```

This example would select the domain for the Greenland ice sheet. Correspondingly for the other listed domains.

### 6.1.1.2. Setting up a new domain¶

In addition to the pre-defined domains, there is an unspecified domain XYZ. This framework allows creating new domains (Laurentide ice sheet, some ice cap, simple testing geometry…) quite easily. The directory `src/subroutines/xyz`

, which hosts the domain-specific subroutines, is by default empty. If you want to create a new domain, copy the subroutines from the most similar existing domain, e.g., starting from Antarctica:

```
cp src/subroutines/ant/*.F90 src/subroutines/xyz/
```

Then modify the routines according to your needs. Input files (topography etc.) must be placed in `sico_in/xyz`

and specified in the run-specs header file *.h as usual. The domain must be defined by the domain code

```
#define XYZ
```

in the header. For flexible testing, it is recommended to deactivate the compatibility check between horizontal resolution and number of grid points:

```
#define CHECK_RES_IMAX_JMAX 0
```

If the new domain requires new global variables, they can be defined in the module `src/subroutines/xyz/sico_vars.F90`

.

The subroutines for ISMIP HEINO (Calov et al. [7]) are available in `src/subroutines/xyz/heino`

, and the input files are in `sico_in/xyz`

. If you copy the subroutines from `src/subroutines/xyz/heino`

to `src/subroutines/xyz`

, you can run ISMIP HEINO experiments (e.g., the run `v5_heino50_st`

for which a run-specs header file is available).

## 6.1.2. Spatial grid¶

In principle, SICOPOLIS allows using any orthogonal coordinates on the Earth’s surface, provided that the two components \(g_{11}\) and \(g_{22}\) of the metric tensor are known (see “Orthogonal coordinates on the Earth’s surface”). They are computed in the module `metric_m`

. Three options are currently implemented and can be selected in the run-specs header:

```
#define GRID 1
! 0 : Cartesian coordinates in the stereographic plane
! without distortion correction
! 1 : Cartesian coordinates in the stereographic plane
! with distortion correction
! 2 : Geographical coordinates (longitude/latitude)
```

For the most common case of Cartesian coordinates \(x\) and \(y\) in the stereographic plane (or any other projection plane), let the domain be the rectangle described by \([x_0,x_\mathrm{max}]\), \([y_0,y_\mathrm{max}]\). It is discretized by a regular (structured) grid with horizontal resolution \(\Delta{x}\), which is the same for the \(x\)- and \(y\)-directions. The location of the grid points \(x_i\) and \(y_j\) is then given by

where the notation \(a\,(b)\,c\) means “from \(a\) to \(c\) in steps of \(b\)”. Note that the indices \(i\) and \(j\) run from 0, so that the number of grid points is actually \(i_\mathrm{max}+1\) and \(j_\mathrm{max}+1\), respectively. In the run-specs headers, the parameters to be defined are

`X0`

(\(=x_0\), \(x\) coordinate of the origin point in km),`Y0`

(\(=y_0\), \(y\) coordinate of the origin point in km),`DX`

(\(=\Delta{}x\), horizontal grid spacing in km),`IMAX`

(\(=i_\mathrm{max}\), maximum value of the index \(i\)),`JMAX`

(\(=j_\mathrm{max}\), maximum value of the index \(j\)).

For the vertical (\(z\)) direction, a terrain-following (“sigma”) transformation is employed that maps vertical columns in the physical space onto \([0,1]\) intervals. If the polythermal two-layer method (POLY, see Section “Ice thermodynamics”) is employed, this mapping is done separately for the upper cold-ice layer (\(\zeta_\mathrm{c}\) domain), the lower temperate-ice layer (\(\zeta_\mathrm{t}\) domain) and the lithosphere layer (\(\zeta_\mathrm{r}\) domain). The transformation is linear for the \(\zeta_\mathrm{t}\) and \(\zeta_\mathrm{r}\) domains. However, for the \(\zeta_\mathrm{c}\) domain, exponential stretching is used so that equidistant grid points in the transformed domain map on grid points concentrating towards the base in the physical \(z\)-coordinate:

where the geometric quantities are explained in Fig. 6.1 and \(a\) is the exponential stretch parameter for the \(\zeta_\mathrm{c}\) domain. For this parameter, \(a=2\) is a typical choice, while the limit \(a=0\) produces a linear transformation.

The location of the grid points in the three transformed domains is given by

The numbers of grid points result as \(k_\mathrm{c,max}+1\), \(k_\mathrm{t,max}+1\) and \(k_\mathrm{r,max}+1\), respectively. The parameters in the run-specs headers are

`KCMAX`

(\(=k_\mathrm{c,max}\), maximum value of the index \(k_\mathrm{c}\)),`KTMAX`

(\(=k_\mathrm{t,max}\), maximum value of the index \(k_\mathrm{t}\)),`KRMAX`

(\(=k_\mathrm{r,max}\), maximum value of the index \(k_\mathrm{r}\)),`DEFORM`

(\(=a\), exponential stretch parameter for the \(\zeta_\mathrm{c}\) domain).

For all other thermodynamics schemes (ENTC, ENTM, COLD, ISOT; see Section “Ice thermodynamics”), the entire ice column (no matter whether cold or temperate) is mapped on the \(\zeta_\mathrm{c}\) domain. The \(\zeta_\mathrm{t}\) domain is then redundant and collapses onto the ice base:

For technical reasons, the \(\zeta_\mathrm{t}\) domain is still present and should be assigned three grid points, that is, `KTMAX`

should be set to `2`

.

## 6.1.3. Topography¶

Gridded present-day topographies that match the horizontal grid must be provided in either NetCDF (`*.nc`

) or ASCII (any other file extension) format. They can be specified in the run-specs header as follows (example with NetCDF files for simulation `v5_grl16_bm5_ss25ka`

):

```
#define ZS_PRESENT_FILE 'grl_bm5_16_topo.nc'
! Name of the file containing the present-day
! ice-surface topography
! (if NetCDF, variable name must be 'zs')
#define ZB_PRESENT_FILE 'grl_bm5_16_topo.nc'
! Name of the file containing the present-day
! ice-base topography (only for ANF_DAT==1)
! (if NetCDF, variable name must be 'zb')
#define ZL_PRESENT_FILE 'grl_bm5_16_topo.nc'
! Name of the file containing the present-day
! lithosphere-surface topography
! (only for ANF_DAT==1)
! (if NetCDF, variable name must be 'zl')
#define ZL0_FILE 'grl_bm5_16_zl0_llra.nc'
! Name of the file containing the topography
! of the relaxed lithosphere surface
! (if NetCDF, variable name must be 'zl0')
#define MASK_PRESENT_FILE 'grl_bm5_16_topo.nc'
! Name of the file containing the present-day
! ice-land-ocean mask
! (if NetCDF, variable name must be 'mask')
#define MASK_REGION_FILE 'none'
! Name of the file containing the region mask
! ('none' if no file is to be defined)
! (if NetCDF, variable name must be 'mask_region')
```

## 6.1.4. Model time¶

Model time runs from an initial time \(t_\mathrm{init}\) until a final time \(t_\mathrm{final}\). For the numerical solution, this interval is discretized by different time steps:

\(\Delta{}t\): dynamic time step, for computing velocity and topography,

\(\Delta{}t_\mathrm{temp}\): thermodynamic time step, for computing temperature, water content and age,

\(\Delta{}t_\mathrm{wss}\): isostatic time step, for computing the isostatic steady-state displacement of the lithosphere (only if the elastic-lithosphere model is chosen).

The thermodynamic and isostatic time steps must be equal to or integer multiples of the dynamic time step. The values can be specified in the run-specs header as follows:

`TIME_INIT0`

(\(=t_\mathrm{init}\), initial time, in a),`TIME_END0`

(\(=t_\mathrm{final}\), final time, in a),`DTIME0`

(\(=\Delta{}t\), dynamic time step, in a),`DTIME_TEMP0`

(\(=\Delta{}t_\mathrm{temp}\), thermodynamic time step, in a),`DTIME_WSS0`

(\(=\Delta{}t_\mathrm{wss}\), isostatic time step, in a).

Further, there is a parameter `YEAR_ZERO`

that specifies the SICOPOLIS year zero in astronomical year numbering [= signed year CE (AD)]. For instance, if set to `1990`

, the time count of SICOPOLIS will be relative to the calendar year 1990 CE. `TIME_INIT0`

and `TIME_END0`

must be given in this SICOPOLIS calendar.