Note

This page was generated from a jupyter notebook.

Mapping values between grid elements

Imagine that you’re using Landlab to write a model of shallow water flow over terrain. A natural approach is to place your scalar fields, such as water depth, at the nodes. You then place your vector fields, such as water surface gradient, flow velocity, and discharge, at the links. But your velocity depends on both slope and depth, which means you need to know the depth at the links too. How do you do this?

This tutorial introduces mappers: grid functions that map quantities defined on one set of elements (such as nodes) onto another set of elements (such as links). As you’ll see, there are a variety of mappers available.


Generated by nbsphinx from a Jupyter notebook.