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

Functions

double getAofY (const XSectParams &xs, double y)
 
double getRofY (const XSectParams &xs, double y)
 
double getWofY (const XSectParams &xs, double y)
 
double getYofA (const XSectParams &xs, double a)
 
double getSofA (const XSectParams &xs, double a)
 
double getRofA (const XSectParams &xs, double a)
 
double getdSdA (const XSectParams &xs, double a)
 
double getAofS (const XSectParams &xs, double s_factor)
 
double getAmax (const XSectParams &xs)
 
double getYcrit (const XSectParams &xs, double q)
 
bool isOpen (int type)
 
int setParams (XSectParams &xs, int type, const double p[], double ucf)
 
double lookup (double x, const double *table, int n_items)
 
double invLookup (double y, const double *table, int n_items)
 
int locate (double y, const double *table, int n)
 
double getYcircular (double alpha)
 
double getScircular (double alpha)
 
double lookup_exact (double x, const double *t, int n) noexcept
 Bit-exact transliteration of legacy xsect.c:lookup().
 
double lookup_fast (double x, const double *t, int n) noexcept
 Reciprocal-multiply lookup (fast, NOT bit-exact — see §6).
 
double norm_x (double depth, double param) noexcept
 
double norm_lookup (double depth, double param, const double *t, int n) noexcept
 Mode-aware normalize + table lookup (bit-exact by default; §6 fast if opted in).
 

Function Documentation

◆ getAmax()

double openswmm::xsect::getAmax ( const XSectParams & xs)
Here is the caller graph for this function:

◆ getAofS()

double openswmm::xsect::getAofS ( const XSectParams & xs,
double s_factor )
Here is the call graph for this function:
Here is the caller graph for this function:

◆ getAofY()

double openswmm::xsect::getAofY ( const XSectParams & xs,
double y )
Here is the call graph for this function:
Here is the caller graph for this function:

◆ getdSdA()

double openswmm::xsect::getdSdA ( const XSectParams & xs,
double a )
Here is the caller graph for this function:

◆ getRofA()

double openswmm::xsect::getRofA ( const XSectParams & xs,
double a )
Here is the call graph for this function:
Here is the caller graph for this function:

◆ getRofY()

double openswmm::xsect::getRofY ( const XSectParams & xs,
double y )
Here is the call graph for this function:
Here is the caller graph for this function:

◆ getScircular()

double openswmm::xsect::getScircular ( double alpha)

◆ getSofA()

double openswmm::xsect::getSofA ( const XSectParams & xs,
double a )
Here is the call graph for this function:
Here is the caller graph for this function:

◆ getWofY()

double openswmm::xsect::getWofY ( const XSectParams & xs,
double y )
Here is the call graph for this function:
Here is the caller graph for this function:

◆ getYcircular()

double openswmm::xsect::getYcircular ( double alpha)

◆ getYcrit()

double openswmm::xsect::getYcrit ( const XSectParams & xs,
double q )
Here is the call graph for this function:
Here is the caller graph for this function:

◆ getYofA()

double openswmm::xsect::getYofA ( const XSectParams & xs,
double a )
Here is the call graph for this function:
Here is the caller graph for this function:

◆ invLookup()

double openswmm::xsect::invLookup ( double y,
const double * table,
int n_items )
Here is the call graph for this function:
Here is the caller graph for this function:

◆ isOpen()

bool openswmm::xsect::isOpen ( int type)
Here is the caller graph for this function:

◆ locate()

int openswmm::xsect::locate ( double y,
const double * table,
int n )
Here is the caller graph for this function:

◆ lookup()

double openswmm::xsect::lookup ( double x,
const double * table,
int n_items )
Here is the call graph for this function:
Here is the caller graph for this function:

◆ lookup_exact()

double openswmm::xsect::lookup_exact ( double x,
const double * t,
int n )
inlinenoexcept

Bit-exact transliteration of legacy xsect.c:lookup().

Parameters
xNormalized independent variable (depth/y_full or area/a_full), finite and in [0, 1] (see file-level preconditions).
tGeometry table (n equally spaced entries on [0, 1]).
nLogical entry count (== legacy nItems).
Returns
Interpolated dependent value; ULP==0 vs legacy lookup().
Here is the caller graph for this function:

◆ lookup_fast()

double openswmm::xsect::lookup_fast ( double x,
const double * t,
int n )
inlinenoexcept

Reciprocal-multiply lookup (fast, NOT bit-exact — see §6).

Here is the caller graph for this function:

◆ norm_lookup()

double openswmm::xsect::norm_lookup ( double depth,
double param,
const double * t,
int n )
inlinenoexcept

Mode-aware normalize + table lookup (bit-exact by default; §6 fast if opted in).

Here is the call graph for this function:

◆ norm_x()

double openswmm::xsect::norm_x ( double depth,
double param )
inlinenoexcept
Here is the caller graph for this function:

◆ setParams()

int openswmm::xsect::setParams ( XSectParams & xs,
int type,
const double p[],
double ucf )
Here is the call graph for this function:
Here is the caller graph for this function: