
Compute surface and flow for a matrix of openings
compute_exchange.Rd
Compute surface and flow for a matrix of openings
Details
compute_exchange()
computes wet surfaces and flows for a matrix of openings.
The matrix must be organized as follows:
columns give informations for openings (pssibly named, butnot mandatory)
rows give informations for each of those entities (names are mandatory):
width
: width of the opening in meterz_bottom
: absolute altitude of the bottom of the opening in meterz_top
: absolute altitude of the top of the opening in meterCd
: coefficient giving the loss of charge (no dimension)z_up
: absolute level of water in the 'upward' side of the opening in meterz_down
: absolute level of water in the 'downward' side of the opening in meter
compute_exchange()
is the R counterpart of rcpp_compute_exchange()
. Both functions should give
exactly the same numeric results. compute_exchange()
is used mainly for testing purposes.