OpenSWMM Engine  6.0.0-alpha.1
Data-oriented, plugin-extensible SWMM Engine (6.0.0-alpha.1)
Loading...
Searching...
No Matches
Transect.hpp
Go to the documentation of this file.
1
18#ifndef OPENSWMM_TRANSECT_HPP
19#define OPENSWMM_TRANSECT_HPP
20
21#include <vector>
22#include <string>
23
24namespace openswmm {
25
26namespace transect {
27
28constexpr int N_TRANSECT_TBL = 51;
29
31 std::string name;
32 double n_left = 0.0;
33 double n_right = 0.0;
34 double n_channel = 0.0;
35
36 // Station-elevation pairs
37 std::vector<double> stations;
38 std::vector<double> elevations;
39
40 double x_left_bank = 0.0;
41 double x_right_bank = 0.0;
42
43 // Computed geometry tables (normalized)
44 double y_full = 0.0;
45 double w_max = 0.0;
46 double a_full = 0.0;
47 double r_full = 0.0;
48
52};
53
64void buildTables(TransectData& td);
65
66} // namespace transect
67} // namespace openswmm
68
69#endif // OPENSWMM_TRANSECT_HPP
void buildTables(TransectData &td)
Build tabulated geometry from station-elevation data.
Definition Transect.cpp:21
constexpr int N_TRANSECT_TBL
Definition Transect.hpp:28
Definition Controls.cpp:24
Definition Transect.hpp:30
std::vector< double > stations
x positions (ft)
Definition Transect.hpp:37
double area_tbl[N_TRANSECT_TBL]
Definition Transect.hpp:49
std::vector< double > elevations
y elevations (ft)
Definition Transect.hpp:38
std::string name
Definition Transect.hpp:31
double r_full
Definition Transect.hpp:47
double width_tbl[N_TRANSECT_TBL]
Definition Transect.hpp:51
double x_right_bank
Right bank station.
Definition Transect.hpp:41
double x_left_bank
Left bank station.
Definition Transect.hpp:40
double n_channel
Main channel Manning's n.
Definition Transect.hpp:34
double a_full
Definition Transect.hpp:46
double w_max
Definition Transect.hpp:45
double n_right
Right overbank Manning's n.
Definition Transect.hpp:33
double n_left
Left overbank Manning's n.
Definition Transect.hpp:32
double hrad_tbl[N_TRANSECT_TBL]
Definition Transect.hpp:50
double y_full
Definition Transect.hpp:44