OpenSWMM Engine  6.0.0-alpha.4
Data-oriented, plugin-extensible SWMM Engine (6.0.0-alpha.4)
Loading...
Searching...
No Matches
Divider.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
37
38#ifndef OPENSWMM_DIVIDER_HPP
39#define OPENSWMM_DIVIDER_HPP
40
42#include <vector>
43
44namespace openswmm {
45
47
48namespace divider {
49
50enum class DividerMethod : int {
51 CUTOFF = 0,
54 WEIR = 3
55};
56
73double getOutflow(SimulationContext& ctx, int node_idx, int link_idx);
74
75} // namespace divider
76} // namespace openswmm
77
78#endif // OPENSWMM_DIVIDER_HPP
Relational (normalized) Structure-of-Arrays side-tables for node subtypes.
Definition Divider.cpp:35
double getOutflow(SimulationContext &ctx, int node_idx, int link_idx)
Flow sent from a divider node into one of its outflow links.
Definition Divider.cpp:40
DividerMethod
Definition Divider.hpp:50
@ WEIR
Definition Divider.hpp:54
@ CUTOFF
Definition Divider.hpp:51
@ TABULAR
Definition Divider.hpp:53
@ OVERFLOW_DIV
Renamed to avoid macOS math.h OVERFLOW macro.
Definition Divider.hpp:52
Definition NodeCoupling.cpp:16
Central, reentrant simulation context.
Definition SimulationContext.hpp:353