19#ifndef OPENSWMM_INLET_HPP
20#define OPENSWMM_INLET_HPP
26struct SimulationContext;
74 std::vector<double>
sx;
102 static double grateCapture(
double flow,
double velocity,
double length,
103 double sx,
int grate_type,
double open_ratio);
106 static double curbCapture(
double flow,
double curb_length,
107 double sx,
double sl,
double n,
108 double gutter_depress,
double gutter_width,
112 static double splashOverVelocity(
double length,
int grate_type);
115 static double computeFlowSpread(
double flow,
double qfactor,
116 double sx,
double sw,
double a_gutter,
117 double w_gutter,
double t_crown);
120 static double computeEo(
double sr,
double ts,
double w);
123 double computeOnGradeCapture(
int idx,
double flow,
double depth)
const;
void computeAll(SimulationContext &ctx, double dt)
Batch compute inlet capture for all inlets.
Definition Inlet.cpp:362
void init(SimulationContext &ctx)
Definition Inlet.cpp:254
GrateType
Definition Inlet.hpp:40
InletType
Definition Inlet.hpp:30
Definition Controls.cpp:24
Central, reentrant simulation context.
Definition SimulationContext.hpp:141
std::vector< double > flow_capture
Captured flow rate (cfs)
Definition Inlet.hpp:81
std::vector< int > grate_type
Definition Inlet.hpp:57
std::vector< double > slotted_width
Slotted drain width (ft)
Definition Inlet.hpp:64
std::vector< double > local_width
Local depression width (ft)
Definition Inlet.hpp:70
std::vector< double > local_depress
Local gutter depression (ft)
Definition Inlet.hpp:69
std::vector< int > inlet_type
Definition Inlet.hpp:56
std::vector< double > gutter_width
Street gutter width (ft)
Definition Inlet.hpp:76
std::vector< double > grate_length
Grate inlet length (ft)
Definition Inlet.hpp:58
std::vector< double > opening_ratio
Grate opening ratio.
Definition Inlet.hpp:66
int count
Definition Inlet.hpp:52
std::vector< int > num_inlets
Number of inlets per side.
Definition Inlet.hpp:67
std::vector< double > t_crown
Distance curb to crown (ft)
Definition Inlet.hpp:78
std::vector< int > bypass_node
Bypass node (downstream of street conduit)
Definition Inlet.hpp:55
std::vector< double > curb_height
Curb opening height (ft)
Definition Inlet.hpp:61
std::vector< double > grate_width
Grate inlet width (ft)
Definition Inlet.hpp:59
std::vector< double > sx
Street cross slope (fraction)
Definition Inlet.hpp:74
std::vector< int > link_idx
Street conduit link index.
Definition Inlet.hpp:53
std::vector< double > slotted_length
Slotted drain length (ft)
Definition Inlet.hpp:63
std::vector< int > n_sides
1 or 2 sided street
Definition Inlet.hpp:71
std::vector< double > curb_length
Curb opening length (ft)
Definition Inlet.hpp:60
std::vector< double > flow_limit
Max capture flow per inlet (cfs)
Definition Inlet.hpp:68
std::vector< int > node_idx
Receiving node index.
Definition Inlet.hpp:54
std::vector< double > road_roughness
Street Manning's n.
Definition Inlet.hpp:77
void resize(int n)
Definition Inlet.cpp:23
std::vector< double > gutter_depression
Street gutter depression (ft)
Definition Inlet.hpp:75
std::vector< double > clog_factor
Clogging reduction (0-1)
Definition Inlet.hpp:65
std::vector< int > curb_throat
Throat angle type (0=horiz, 1=inclined, 2=vert)
Definition Inlet.hpp:62