OpenSWMM Engine  6.0.0-alpha.1
Data-oriented, plugin-extensible SWMM Engine (6.0.0-alpha.1)
Loading...
Searching...
No Matches
Link.cpp File Reference

Link hydraulics — numerically identical to legacy link.c. More...

#include "Link.hpp"
#include "XSectBatch.hpp"
#include <cmath>
#include <algorithm>
Include dependency graph for Link.cpp:

Namespaces

namespace  openswmm
 
 

Functions

double openswmm::link::getVelocity (const XSectParams &xs, double flow, double depth, int barrels=1)
 Compute flow velocity from flow and depth.
 
double openswmm::link::getFroude (const XSectParams &xs, double v, double y)
 Compute Froude number from velocity and depth.
 
void openswmm::link::computeConveyance (double roughness, double slope, double s_full, double &beta, double &rough_factor, double &q_full)
 Compute Manning conveyance coefficients for a conduit.
 
double openswmm::link::getDepthFromFlow (const XSectParams &xs, double beta, double q)
 Compute normal-flow depth from flow rate (inverse Manning).
 
double openswmm::link::getCapacity (const XSectParams &xs, double depth)
 Compute the capacity fraction (depth / full depth for conduits, setting for other links).
 
void openswmm::link::computeVelocities (const LinkData &links, double *velocity)
 Compute velocity for all links in batch.
 
void openswmm::link::computeFroude (const LinkData &links, const double *velocity, double *froude)
 Compute Froude numbers for all conduit links.
 
void openswmm::link::computeAllConveyance (LinkData &links)
 Compute Manning conveyance for all conduit links.
 

Detailed Description

Link hydraulics — numerically identical to legacy link.c.

Author
Caleb Buahin caleb.nosp@m..bua.nosp@m.hin@g.nosp@m.mail.nosp@m..com
License\n MIT License