# Concepts and equations at a node

The following equations describe a node in its most general sense. A node may contain :

- a pond ;
- several intakes or offtakes ;
- several upstream or downstream reaches.

The concepts and variables used at a node are describe in the following diagram :

A pond is stored as a monotonous sequence of pairs (Surface, Elevation). The evaporation and the infiltration can be modelled with an evaporation rate and an infiltration rate ,

being the water level in the pond.

The node gains or loses water through offtakes () and reaches ().

Inflow is positive, whereas outflow is negative.

Reaches are given a time invariant flow direction according to their topology, which is :

- for inflow
- for outflow

The discharge is positive if it flows is in the same direction as the above topologic flow direction, and negative otherwise. The actual discharge is therefore given by :

### Inflow (positive discharge)

For upstream or downstream reaches with or offtakes with there is a boundary condition for transported quality classes

which is the concentration incoming.

### Outflow (negative discharge)

#### Reaches

For upstream or downstream reaches with , we have

.

#### Offtakes

For offtakes with , we have ( is describe later).

#### Infiltration at the node

We have and

where :

is the pond area, is the infiltration rate and

is the node concentration.

### Storage flow in the pond

The pond is connected to the node, and the concentrations at the node and the pond are the same.

The stored amount of a class in the pond is :

and the flow in or out is :

.

### Mass balance at the node

The mass balance equation for a quality class in the node is :

With ,

the equation gives :

where , , are the area, volume and water level of the pond.

### Distribution coefficient

3 cases are considered for the outflow distribution coefficients :

#### Outflows are homogeneous

All *k* are 1 : whatever the evolution of flow and contentrations, the mass balance equation is used to compute the concentration in outflows.

#### Outflows are heterogeneous and the node contains a pond

The concentration entering or leaving the pond ensures mass balance at the node.

#### Outflows are heterogeneous and the node does not contain a pond

Some distribution coefficients must be adjusted (while remaining positive) to maintain the mass balance condition.

The distribution coefficients are given by the user for each offtake and reach and for infiltration, and can be defined as fix () or adjustable () to ensure continuity at the node.

An adjustement coefficient for the node is computed and the distribution coefficients become :. Therefore, a fix coefficient () is not changed whereas an adjustable coefficient becomes .

The new mass balance equation is :

where is the node concentration given by

The equation for is :

The final mass balance equation is :

or