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

SoA parameter block for all links of one cross-section shape. More...

#include <XSectBatch.hpp>

Collaboration diagram for openswmm::ShapeGroup:

Public Member Functions

void resize (int n)
 Resize all arrays to n elements.
 

Public Attributes

XSectShape shape = XSectShape::DUMMY
 
int count = 0
 
std::vector< int > link_idx
 link_idx[i] = index in SimulationContext
 
std::vector< double > y_full
 Full depth (ft)
 
std::vector< double > a_full
 Full area (ft2)
 
std::vector< double > r_full
 Hyd. radius at full (ft)
 
std::vector< double > s_full
 Section factor at full.
 
std::vector< double > w_max
 Max width (ft)
 
std::vector< double > y_bot
 
std::vector< double > a_bot
 
std::vector< double > s_bot
 
std::vector< double > r_bot
 

Detailed Description

SoA parameter block for all links of one cross-section shape.

All arrays have size count. The link_idx array maps each position back to the original link index in SimulationContext so results can be scattered back to the global arrays.

Parameter arrays are populated once at initialisation from the per-link XSectParams and do not change during simulation.

Member Function Documentation

◆ resize()

void openswmm::ShapeGroup::resize ( int  n)

Resize all arrays to n elements.

Member Data Documentation

◆ a_bot

std::vector<double> openswmm::ShapeGroup::a_bot

◆ a_full

std::vector<double> openswmm::ShapeGroup::a_full

Full area (ft2)

◆ count

int openswmm::ShapeGroup::count = 0

◆ link_idx

std::vector<int> openswmm::ShapeGroup::link_idx

link_idx[i] = index in SimulationContext

◆ r_bot

std::vector<double> openswmm::ShapeGroup::r_bot

◆ r_full

std::vector<double> openswmm::ShapeGroup::r_full

Hyd. radius at full (ft)

◆ s_bot

std::vector<double> openswmm::ShapeGroup::s_bot

◆ s_full

std::vector<double> openswmm::ShapeGroup::s_full

Section factor at full.

◆ shape

XSectShape openswmm::ShapeGroup::shape = XSectShape::DUMMY

◆ w_max

std::vector<double> openswmm::ShapeGroup::w_max

Max width (ft)

◆ y_bot

std::vector<double> openswmm::ShapeGroup::y_bot

◆ y_full

std::vector<double> openswmm::ShapeGroup::y_full

Full depth (ft)


The documentation for this struct was generated from the following files: