OpenSWMM Engine  6.0.0-alpha.3
Data-oriented, plugin-extensible SWMM Engine (6.0.0-alpha.3)
Loading...
Searching...
No Matches
xsect.c File Reference
#include <math.h>
#include "headers.h"
#include "findroot.h"
#include "xsect.dat"
Include dependency graph for xsect.c:

Classes

struct  TXsectStar
 

Macros

#define _CRT_SECURE_NO_DEPRECATE
 
#define RECT_ALFMAX   0.97
 
#define RECT_TRIANG_ALFMAX   0.98
 
#define RECT_ROUND_ALFMAX   0.98
 

Functions

int xsect_isOpen (int type)
 
int xsect_setParams (TXsect *xsect, int type, double p[], double ucf)
 
void xsect_setIrregXsectParams (TXsect *xsect)
 
void xsect_setStreetXsectParams (TXsect *xsect)
 
void xsect_setCustomXsectParams (TXsect *xsect)
 
double xsect_getAmax (TXsect *xsect)
 
double xsect_getSofA (TXsect *xsect, double a)
 
double xsect_getYofA (TXsect *xsect, double a)
 
double xsect_getAofY (TXsect *xsect, double y)
 
double xsect_getWofY (TXsect *xsect, double y)
 
double xsect_getRofY (TXsect *xsect, double y)
 
double xsect_getRofA (TXsect *xsect, double a)
 
double xsect_getAofS (TXsect *xsect, double s)
 
double xsect_getdSdA (TXsect *xsect, double a)
 
double xsect_getYcrit (TXsect *xsect, double q)
 

Variables

double Amax []
 

Macro Definition Documentation

◆ _CRT_SECURE_NO_DEPRECATE

#define _CRT_SECURE_NO_DEPRECATE

◆ RECT_ALFMAX

#define RECT_ALFMAX   0.97

◆ RECT_ROUND_ALFMAX

#define RECT_ROUND_ALFMAX   0.98

◆ RECT_TRIANG_ALFMAX

#define RECT_TRIANG_ALFMAX   0.98

Function Documentation

◆ xsect_getAmax()

double xsect_getAmax ( TXsect * xsect)

◆ xsect_getAofS()

double xsect_getAofS ( TXsect * xsect,
double s )
Here is the caller graph for this function:

◆ xsect_getAofY()

double xsect_getAofY ( TXsect * xsect,
double y )
Here is the caller graph for this function:

◆ xsect_getdSdA()

double xsect_getdSdA ( TXsect * xsect,
double a )

◆ xsect_getRofA()

double xsect_getRofA ( TXsect * xsect,
double a )
Here is the call graph for this function:
Here is the caller graph for this function:

◆ xsect_getRofY()

double xsect_getRofY ( TXsect * xsect,
double y )
Here is the call graph for this function:
Here is the caller graph for this function:

◆ xsect_getSofA()

double xsect_getSofA ( TXsect * xsect,
double a )
Here is the call graph for this function:
Here is the caller graph for this function:

◆ xsect_getWofY()

double xsect_getWofY ( TXsect * xsect,
double y )
Here is the caller graph for this function:

◆ xsect_getYcrit()

double xsect_getYcrit ( TXsect * xsect,
double q )
Here is the caller graph for this function:

◆ xsect_getYofA()

double xsect_getYofA ( TXsect * xsect,
double a )
Here is the caller graph for this function:

◆ xsect_isOpen()

int xsect_isOpen ( int type)
Here is the caller graph for this function:

◆ xsect_setCustomXsectParams()

void xsect_setCustomXsectParams ( TXsect * xsect)

◆ xsect_setIrregXsectParams()

void xsect_setIrregXsectParams ( TXsect * xsect)

◆ xsect_setParams()

int xsect_setParams ( TXsect * xsect,
int type,
double p[],
double ucf )
Here is the call graph for this function:
Here is the caller graph for this function:

◆ xsect_setStreetXsectParams()

void xsect_setStreetXsectParams ( TXsect * xsect)

Variable Documentation

◆ Amax

double Amax[]
Initial value:
= {
1.0,
0.9756,
0.9756,
0.97,
1.0,
1.0,
1.0,
1.0,
1.0,
0.98,
0.98,
0.96,
0.96,
0.96,
0.92,
0.96,
0.96,
0.96,
0.98,
0.98,
0.96,
0.96,
1.0,
0.96,
0.9756,
1.0}