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
41
#include "
../data/NodeSubtypes.hpp
"
42
#include <vector>
43
44
namespace
openswmm
{
45
46
struct
SimulationContext
;
47
48
namespace
divider
{
49
50
enum class
DividerMethod
:
int
{
51
CUTOFF
= 0,
52
OVERFLOW_DIV
= 1,
53
TABULAR
= 2,
54
WEIR
= 3
55
};
56
73
double
getOutflow
(
SimulationContext
& ctx,
int
node_idx,
int
link_idx);
74
75
}
// namespace divider
76
}
// namespace openswmm
77
78
#endif
// OPENSWMM_DIVIDER_HPP
NodeSubtypes.hpp
Relational (normalized) Structure-of-Arrays side-tables for node subtypes.
openswmm::divider
Definition
Divider.cpp:35
openswmm::divider::getOutflow
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
openswmm::divider::DividerMethod
DividerMethod
Definition
Divider.hpp:50
openswmm::divider::DividerMethod::WEIR
@ WEIR
Definition
Divider.hpp:54
openswmm::divider::DividerMethod::CUTOFF
@ CUTOFF
Definition
Divider.hpp:51
openswmm::divider::DividerMethod::TABULAR
@ TABULAR
Definition
Divider.hpp:53
openswmm::divider::DividerMethod::OVERFLOW_DIV
@ OVERFLOW_DIV
Renamed to avoid macOS math.h OVERFLOW macro.
Definition
Divider.hpp:52
openswmm
Definition
NodeCoupling.cpp:16
openswmm::SimulationContext
Central, reentrant simulation context.
Definition
SimulationContext.hpp:353
src
engine
hydraulics
Divider.hpp
Generated by
1.13.2