livvkit.bundles.CISM_glissade package

Submodules

livvkit.bundles.CISM_glissade.numerics module

CISM_glissade module for numerics analysis

class livvkit.bundles.CISM_glissade.numerics.DataGrid(data)[source]

Bases: object

Class to handle the CISM_glissade grids, which are cell-centered grids.

class livvkit.bundles.CISM_glissade.numerics.RotatedGrid(alpha, data)[source]

Bases: object

For the ISMIP-HOM f tests, CISM computes the flow of a glacier down an inclined plane:

z
^
|
* .
.    .
.        .
*           .
| .             .
|    .     ICE      .
|        .              .
|            .             .
|  BED           .            .
|                    .           *
|                       .        .
|                          .     .
|                             .  .
|                                *
|                                |
|                                |
|                                |
0------------------------------------->x

The origin is at point 0 in the above figure, and the topmost point of the glacier is at x=0, z=7 (in km). The slope is 3 degrees. The ice is 1000 m tall and flows down the inclined plane.

ISMIP-HOM, however, defines the coordinate system with the origin located at the topmost point of the glacier (0,7) with the x’ axis pointing down slope and z’ pointing perpendicular to the slope. So the coordinate system is shifted, and rotated by a=3 degrees from the CISM glissade grid.

An additional complication is that the surface is computed in CISM on the standard grid, but velocities are computed on a staggered, grid.

This class converts the CISM_glissade coordinate system to the ISMIP-HOM coordinate system.

livvkit.bundles.CISM_glissade.numerics.get_plot_data(test_file, bench_file, setup, config)[source]

livvkit.bundles.CISM_glissade.verification module

Provides CISM_glissade specific verification tools

livvkit.bundles.CISM_glissade.verification.parse_config(file_path)[source]

Convert the CISM configuration file to a python dictionary

Parameters

file_path – absolute path to the configuration file

Returns

A dictionary representation of the given file

livvkit.bundles.CISM_glissade.verification.parse_log(file_path)[source]

Parse a CISM output log and extract some information.

Parameters

file_path – absolute path to the log file

Returns

A dictionary created by the elements object corresponding to the results of the bit for bit testing

Module contents