OpenSWMM Engine  6.0.0-alpha.1
Data-oriented, plugin-extensible SWMM Engine (6.0.0-alpha.1)
Loading...
Searching...
No Matches
openswmm::transect Namespace Reference

Classes

struct  TransectData
 

Functions

void buildTables (TransectData &td)
 Build tabulated geometry from station-elevation data.
 
void buildCustomTables (TransectData &td, double y_full, const double *curve_x, const double *curve_y, int n_pts)
 Build tabulated geometry from a CUSTOM shape curve.
 

Variables

constexpr int N_TRANSECT_TBL = 51
 

Function Documentation

◆ buildCustomTables()

void openswmm::transect::buildCustomTables ( TransectData td,
double  y_full,
const double *  curve_x,
const double *  curve_y,
int  n_pts 
)

Build tabulated geometry from a CUSTOM shape curve.

The shape curve defines normalized (y/yFull) vs (width/wMax). This function integrates area and computes hyd-radius tables that can be used by XSectBatch's per-link lookup kernel.

Parameters
td[out] TransectData to populate (tables and full properties).
y_fullFull depth of the cross-section.
curve_xNormalized depth values (y/yFull) from shape curve.
curve_yNormalized width values (w/wMax) from shape curve.
n_ptsNumber of curve points.
Here is the caller graph for this function:

◆ buildTables()

void openswmm::transect::buildTables ( TransectData td)

Build tabulated geometry from station-elevation data.

Computes area, hydraulic radius, and width at each of N_TRANSECT_TBL equal depth increments from thalweg to maximum depth, then normalizes.

Parameters
td[in/out] TransectData with stations/elevations filled. On output, tables and full-depth properties are set.
Here is the caller graph for this function:

Variable Documentation

◆ N_TRANSECT_TBL

constexpr int openswmm::transect::N_TRANSECT_TBL = 51
constexpr