2.0.0b10
catchment modelling framework
Loading...
Searching...
No Matches
Flux connections
+ Collaboration diagram for Flux connections:

Detailed Description

The connections between the nodes (boundary conditions, storages) of the water network

Topics

 Connections for local aboveground fluxes
 
 
 Evapotranspiration
 
 
 Infiltration
 
 
 Percolation
 
 
 Surface water connections
 
 
 lateral subsurface fluxes
 
 

Classes

class  ConstantFlux
 Produces a constant but changeable flux from a source to a target, if enough water is present in the source. More...
 
class  ConstantStateFlux
 Calculates a flux to or from a water storage to hold it's state at a more or less constant level. More...
 
class  ConstraintLinearStorageFlux
 Calculates flux out of a storage as a linear function of its volume, constraint by the volume stored in the target storage. More...
 
class  ExponentialDeclineConnection
 A conceptual TOPmodel inspired connection. More...
 
class  ExternallyControlledFlux
 Flux from one node to another, controlled by the user or an external program, by changing the flux constant. More...
 
class  flux_connection
 The connections in cmf hold the processes for the calculation of fluxes between water storages and model boundaries. More...
 
class  LinearStorageConnection
 Calculates flux out of a storage as a linear function of its volume. More...
 
class  NeumannFlux
 Connection between Neumann-boundary and a flux node. More...
 
class  PartitionFluxRoute
 Routes a fraction of the flux calculated from a master flux_connection between source to target1 directly further to target2 without any timelag. More...
 
class  PowerLawConnection
 Calculates flux out of a storage as a linear function of its volume to a power. More...
 
class  Snowfall
 A connection routing snowfall (precipitation below freezing Temp) to the snow pack. More...
 
class  WaterbalanceFlux
 Routes the sum of all other fluxes to a target. More...
 

Functions

bool can_set_flux (flux_node::ptr source, flux_node::ptr target)
 Checks if a constant flux between two nodes can be set.
 
void set_flux (flux_node::ptr source, flux_node::ptr target, real flux_value)
 Sets a constant flux between two nodes, if an external_control_connection exists.
 
real snowfraction (real T)
 A function to calculate the snow fraction of the precipitation according to the air temperature.
 

Function Documentation

◆ can_set_flux()

bool can_set_flux ( flux_node::ptr source,
flux_node::ptr target )

Checks if a constant flux between two nodes can be set.


Returns true if the nodes are connected by an external_control_connection

◆ set_flux()

void set_flux ( flux_node::ptr source,
flux_node::ptr target,
real flux_value )

Sets a constant flux between two nodes, if an external_control_connection exists.


◆ snowfraction()

real snowfraction ( real T)

A function to calculate the snow fraction of the precipitation according to the air temperature.

Returns 0.0 for T>+1 degC, 1.0 for T<-1degC and interpolates linear between. Values between 0 and 1 can be interpreted as sleet