massbal_updateRoutingTotals
link_setTargetSetting
controls_evaluate
clearActionList
evaluatePremise
updateActionValue
updateActionList
executeActionList
link_setSetting
orifice_setSetting
weir_setSetting
massbal_getStepFlowError
massbal_initTimeStepTotals
node_setOldQualState
link_setOldQualState
addExternalInflows
inflow_getExtInflow
massbal_addInflowFlow
inflow_getExtInflow
massbal_addInflowQual
addDryWeatherInflows
inflow_getDwfInflow
massbal_addInflowFlow
massbal_addInflowQual
addWetWeatherInflows
subcatch_getWtdOutflow
massbal_addInflowFlow
massbal_addInflowQual
addGroundwaterInflows
massbal_addInflowFlow
massbal_addInflowQual
addRdiiInflows
rdii_getNumRdiiFlows
massbal_addInflowFlow
massbal_addInflowQual
addIfaceInflows
iface_getNumIfaceNodes
massbal_addInflowFlow
massbal_addInflowQual
systemHasChanged
checks if the hydraulic state of the system has changed from the previous time step.
link_setOldHydState
replaces link's old hydraulic state values with current ones.
node_setOldHydState
replaces a node's old water quality state values with new ones.
node_initInflow
initializes a node's inflow at start of next time step.
flowrout_execute
dynwave_execute
execRoutingStep
initNodeState
initializes node's surface area, inflow & outflow
node_getPondedArea
computes surface area of water at a node based on depth.
node_getSurfArea
computes surface area of water stored at a node from water depth.
findConduitFlow
finds new flow in a conduit-type link
getConduitFlow
updates flow in conduit link by solving finite difference form of continuity and momentum equations.
getFlowClass
determines flow class for a conduit based on depths at each end.
link_getYnorm
computes normal depth for given flow rate.
xsect_getAofS
xsect_getYofA
link_getYcrit
computes critical depth for given flow rate.
xsect_getYcrit
computes critical depth at a specific flow rate
getYcritEnum
solves a * sqrt(a(y)*g / w(y)) - q for y using interval enumeration with starting guess of y0.
getQcritical
finds difference between critical flow at depth yc and target value Qcritical.
xsect_getAofY
computes xsection's area at a given depth.
xsect_getWofY
computes xsection's top width at a given depth.
getYcritRidder
solves a * sqrt(a(y)*g / w(y)) - q for y using Ridder's root finding method with starting guess of y0.
getQcritical
findroot_Ridder
findSurfArea
assigns surface area of conduit to its up and downstream nodes.
getWidth
getArea
computes area of flow cross-section in a conduit
xsect_getAofY
getHydRad
computes hydraulic radius of flow cross-section in a conduit.
xsect_getRofY
link_getFroude
computes Froude Number for given velocity and flow depth
xsect_isOpen
xsect_getAofY
xsect_getWofY
xsect_isOpen
forcemain_getFricSlope
computes the headloss per unit length used in dynamic wave flow routing for a pressurized force main using either the Hazen-Williams or Darcy-Weisbach flow equations.
forcemain_getReynolds
forcemain_getFricFactor
findLocalLosses
computes local losses term of momentum equation.
culvert_getInflow
checkNormalFlow
checks if flow in link should be replaced by normal flow.
link_setFlapGate
based on the sign of the flow, determines if a flap gate associated with the link should close or not.
link_getLength
conduit_getLength
finds true length of a conduit
updateNodeFlows
updates cumulative inflow & outflow at link's end nodes.
findNonConduitFlow
finds new flow in a non-conduit-type link
link_getInflow
finds total flow entering a link during current time step.
conduit_getInflow
pump_getInflow
orifice_getInflow
weir_getInflow
outlet_getInflow
node_getOutflow
computes outflow from node available for inflow into a link.
divider_getOutflow
storage_getOutflow
getModPumpFlow
modifies pump curve pumping rate depending on amount of water available at pump's inlet node.
node_getMaxOutflow
limits outflow rate from a node with storage volume.
findNonConduitSurfArea
finds the surface area contributed by a non-conduit link to its upstream and downstream nodes.
updateNodeFlows
updates cumulative inflow & outflow at link's end nodes.
link_setOutfallDepth
sets depth at outfall node connected to link j.
link_getYnorm
link_getYcrit
node_setOutletDepth
sets water depth at a node that serves as an outlet point.
outfall_setOutletDepth
checkCapacity
determines if a conduit link is capacity limited.
updateStorageState
updates depth and volume of a storage node using successive approximation with under-relaxation for Steady or Kin. Wave routing.
getStorageOutflow
node_getLosses
node_getPondedDepth
node_getDepth
getLinkInflow
finds flow into upstream end of link at current time step under Steady or Kin. Wave routing.
link_getInflow
node_getMaxOutflow
steadyflow_execute
performs steady flow routing through a single link.
xsect_getAofS
kinwave_execute
finds outflow over time step t Step given flow entering a conduit using Kinematic Wave flow routing.
xsect_getAofS
link_getLength
linsolveContinuityk_getLength
solveContinuity
solves continuity equation f(a) = Beta1*S(a) + C1*a + C2 = 0 for 'a' using the Newton-Raphson root finder function.
Return code has the following meanings:
>= 0 number of function evaluations used
-1 Newton function failed
-2 flow always above max. flow
-3 flow always below zero
findroot_Newton
evalContinuity
computes value of continuity equation (f) and its derivative (df) w.r.t. normalized area for link with normalized outlet area 'a'.
xsect_getSofA
xsect_getdSdA
xsect_getSofA
setNewNodeState
updates state of node after current time step for Steady Flow or Kinematic Wave flow routing.
node_getDepth
setNewLinkState
updates state of link after current time step under Steady Flow or Kinematic Wave flow routing
xsect_getYofA
updateNodeDepth
qualrout_execute
findLinkMassFlow
treatment_setInflow
findStorageQual
findNodeQual
treatmnt_treat
findLinkQual
removeStorageLosses
removeOutflows
massbal_updateRoutingTotals
stats_updateFlowStats
Replies