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

Culvert inlet control — numerically identical to legacy culvert.c. More...

#include "Culvert.hpp"
#include "../core/SimulationContext.hpp"
#include <cmath>
#include <algorithm>
Include dependency graph for Culvert.cpp:

Namespaces

namespace  openswmm
 
namespace  openswmm::culvert
 

Functions

CulvertCoeffs openswmm::culvert::getCoeffs (int culvert_code)
 Get coefficients for a culvert type code (1-57).
 
double openswmm::culvert::getInflow (double q_proposed, double head, double y_full, double a_full, double slope, int code, double &dqdh)
 Compute culvert inlet-controlled inflow.
 
void openswmm::culvert::batchComputeInletControl (const int *link_indices, int n, SimulationContext &ctx)
 Batch compute culvert inlet control for all culvert links.
 

Detailed Description

Culvert inlet control — numerically identical to legacy culvert.c.

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