2.0.0b10
catchment modelling framework
Loading...
Searching...
No Matches
FluxMap Class Reference

Inherits object.

Detailed Description

Draws for each cell an arrow indicating the direction and velocity of flow
through the cell (in horizontal direction). Uses plt.quiver

The FluxMap can be updated by calling it with the new timestep

Usage:
>>> import cmf
>>> p = cmf.project()
>>> solver = cmf.RKFIntegrator(p, 1e-9)
>>> fm = FluxMap(p, cmf.Time())
>>> for t in solver.run(solver.t, solver.t + cmf.day * 30, cmf.h):
...     fm(t)

Public Member Functions

 __init__ (self, cells, t, **kwargs)
 

Constructor & Destructor Documentation

◆ __init__()

__init__ ( self,
cells,
t,
** kwargs )
Creates a new flux map
:param cells: The cells to be used
:param t: The current time step
:param kwargs: Keyword arguments for plt.quiver