OpenSWMM Engine  6.0.0-alpha.1
Data-oriented, plugin-extensible SWMM Engine (6.0.0-alpha.1)
Loading...
Searching...
No Matches
Link.hpp
Go to the documentation of this file.
1
17#ifndef OPENSWMM_LINK_HPP
18#define OPENSWMM_LINK_HPP
19
20#include "../data/LinkData.hpp"
21#include "XSectBatch.hpp"
22#include "Node.hpp"
23
24namespace openswmm {
25
26namespace link {
27
28// ============================================================================
29// Per-element functions
30// ============================================================================
31
44double getVelocity(const XSectParams& xs, double flow, double depth, int barrels = 1);
45
57double getFroude(const XSectParams& xs, double v, double y);
58
74void computeConveyance(double roughness, double slope, double s_full,
75 double& beta, double& rough_factor, double& q_full);
76
88double getDepthFromFlow(const XSectParams& xs, double beta, double q);
89
94double getCapacity(const XSectParams& xs, double depth);
95
96// ============================================================================
97// Batch functions (for routing hot loop)
98// ============================================================================
99
107void computeVelocities(const LinkData& links, double* velocity);
108
116void computeFroude(const LinkData& links, const double* velocity, double* froude);
117
127void computeAllConveyance(LinkData& links);
128
129} // namespace link
130
131} // namespace openswmm
132
133#endif // OPENSWMM_LINK_HPP
Node hydraulics — volume/depth/head conversions, surface area, overflow.
Cross-section geometry — unified batch + per-element API.
Definition Controls.cpp:24
double * y
Definition odesolve.c:28