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

Street inlet capture — numerically identical to legacy inlet.c. More...

#include "Inlet.hpp"
#include "Link.hpp"
#include "XSectBatch.hpp"
#include "../core/Constants.hpp"
#include "../core/SimulationContext.hpp"
#include "../core/UnitConversion.hpp"
#include "../data/InfraData.hpp"
#include "../data/TableData.hpp"
#include <algorithm>
#include <cmath>
#include <string>
Include dependency graph for Inlet.cpp:

Namespaces

namespace  openswmm
 
namespace  openswmm::inlet
 

Functions

double openswmm::inlet::getEo (double sr, double ts, double w)
 Compute the depressed-gutter flow ratio using HEC-22 Eq4-4.
 
double openswmm::inlet::getFlowSpread (const Geom &g, double Q)
 Compute approach flow spread with crown limiting and depressed-gutter iteration.
 
double openswmm::inlet::getGutterFlowRatio (const Geom &g, double w)
 Compute the fraction of street flow above a selected gutter width.
 
double openswmm::inlet::getGutterAreaRatio (const Geom &g, double grate_width, double area)
 Compute the grate-width correction to depressed-gutter intercepted flow.
 
double openswmm::inlet::getSplashOverVelocity (int grate_type, double grate_length)
 Evaluate the standard grate splash-over velocity polynomial.
 
double openswmm::inlet::getGrateInletCapture (const Design &d, Geom &g, double Q)
 Compute one on-grade grate's frontal and side capture.
 
double openswmm::inlet::getCurbInletCapture (const Geom &g, double Q, double opening_length)
 Compute on-grade curb-opening capture from equivalent cross slope.
 
double openswmm::inlet::getOnGradeInletCapture (const Design &d, Geom &g, double Q, double depth)
 Compute a single on-grade inlet or combination sweeper/grate capture.
 
double openswmm::inlet::getOnGradeCapturedFlow (const Design &d, const UsageParams &u, Geom &g, double q, double depth)
 Compute series inlet capture across the current street sides.
 
void openswmm::inlet::findOnSagGrateFlows (const Design &d, const Geom &g, double depth, double *weir_flow, double *orifice_flow)
 Compute the active grate weir or orifice contribution for one sag inlet.
 
double openswmm::inlet::getCurbOrificeFlow (double flow_depth, double opening_height, double opening_length, int throat_angle)
 Compute sag curb-opening orifice flow using throat-adjusted head.
 
void openswmm::inlet::findOnSagCurbFlows (const Design &d, const Geom &g, double depth, double opening_length, double *weir_flow, double *orifice_flow)
 Compute sag curb-opening weir/orifice contributions with transition blending.
 
double openswmm::inlet::getOnSagSlottedFlow (const Design &d, double depth)
 Compute one sag slotted-drain weir or orifice capacity.
 
double openswmm::inlet::getOnSagInletCapture (const Design &d, const Geom &g, double depth)
 Combine one sag inlet's grate, sweeper and curb-orifice contributions.
 
double openswmm::inlet::getOnSagCapturedFlow (const Design &d, const UsageParams &u, const Geom &g, double depth, int nsides_prev)
 Scale sag capacity using usage factors and legacy carried-over street sides.
 
double openswmm::inlet::getCustomCapturedFlow (const UsageParams &u, const Geom &g, const Table &curve, int curve_kind, double q, double depth, double ucf_flow, double ucf_len)
 Compute custom inlet capture from authored diversion or rating curves.
 
double openswmm::inlet::getInletArea (const Design &d, const UsageParams &u)
 Compute the usage's effective open inlet area for backflow weighting.
 

Detailed Description

Street inlet capture — numerically identical to legacy inlet.c.

Author
Caleb Buahin caleb.nosp@m..bua.nosp@m.hin@g.nosp@m.mail.nosp@m..com
License
Apache-2.0