OpenSWMM Engine  6.0.0-alpha.4
Data-oriented, plugin-extensible SWMM Engine (6.0.0-alpha.4)
Loading...
Searching...
No Matches
Roadway.hpp
Go to the documentation of this file.
1// SPDX-License-Identifier: Apache-2.0
2//
3// Copyright 2026 Caleb Buahin
4//
5// Licensed under the Apache License, Version 2.0 (the "License");
6// you may not use this file except in compliance with the License.
7// You may obtain a copy of the License at
8//
9// http://www.apache.org/licenses/LICENSE-2.0
10//
11// Unless required by applicable law or agreed to in writing, software
12// distributed under the License is distributed on an "AS IS" BASIS,
13// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14// See the License for the specific language governing permissions and
15// limitations under the License.
16
34
35#ifndef OPENSWMM_ROADWAY_HPP
36#define OPENSWMM_ROADWAY_HPP
37
38namespace openswmm {
39
40namespace roadway {
41
43constexpr int SURFACE_NONE = 0;
44constexpr int SURFACE_PAVED = 1;
45constexpr int SURFACE_GRAVEL = 2;
46
65double getInflow(double dir, double h_road, double h1, double h2, double cd_user, bool si,
66 double road_width, int road_surf, double length, double& dqdh, double& depth);
67
68} // namespace roadway
69} // namespace openswmm
70
71#endif // OPENSWMM_ROADWAY_HPP
Definition Roadway.cpp:32
double getInflow(double dir, double h_road, double h1, double h2, double cd_user, bool si, double road_width, int road_surf, double length, double &dqdh, double &depth)
legacy roadway_getInflow: flow across a roadway weir.
Definition Roadway.cpp:127
constexpr int SURFACE_PAVED
Definition Roadway.hpp:44
constexpr int SURFACE_NONE
legacy roadway.c RoadSurface: 0 = none (user Cd), 1 = PAVED, 2 = GRAVEL.
Definition Roadway.hpp:43
constexpr int SURFACE_GRAVEL
Definition Roadway.hpp:45
Definition ExchangeLaw.hpp:60