Posts

Showing posts with the label RTC

Annotated PID Controller in SWMM5 and InfoSWMM

Image
How does a PID controller work in  InfoSWMM  and SWMMM 5 - this also applies to H2OMap SWMM?? double getPIDSetting(struct TAction* a, double dt)   //  at each time  step find  the PID control  changes for the  current  time step dt // Input: a = an action object // dt = current time step (days) // Output: returns a new link setting // Purpose: computes a new setting for a link subject to a PID controller. // Note: a->kp = gain coefficient, // a->ki = integral time (minutes) // a->k2 = derivative time (minutes) // a->e1 = error from previous time step // a->e2 = error from two time steps ago { double e0, setting; double p, i, d, update; double tolerance = 0.0001; // --- convert time step from days to minutes dt *= 1440.0; // --- determine relative error in achieving controller set point // Or how close are we to the set point? e0 = SetPoint - ControlValue; if ( fabs(e0) > TINY ) { if ( SetPoint != 0.0 ) e0 = e0/SetPoint; // n...

Recent #INFOSWMM Twitter Postings

Image
NRCS Dimensionless and Triangular UH in #INFOSWMM and the location of the Lag Time of Concentration in the Output http://t.co/pxbQqAU2tU   3       1/ #INFOSWMM in Spanish - InfoSWMM #SUSTAIN opening dialog h/t @InnovyzeDavid http://t.co/2ZPZWbjrPs   2       3/ #INFOSWMM in Italian - InfoSWMM #SUSTAIN Optimization http://t.co/O501iYL7N2   2       4/ @Innovyze has free University Student Editions SE for #INFOSURGE #INFOWATER and #INFOSWMM http://t.co/lvTOa7ZI92 http://t.co/Fz8HP1hKBz   2       1/ @Innovyze has free University Student Editions SE for #INFOSURGE #INFOWATER and #INFOSWMM http://t.co/lvTOa7ZI92 http://t.co/ELCIc3Ym2Y   2       H2S and Sulphide can be simulated in #INFOSEWER, #INFOSWMM and #INFOWORKS_ICM from @Innovyze http://t.co/8PUxYYA9YB   2       4/ #INFOSWMM in Spanish - InfoSWMM #SUSTAIN # Modeling LID Selection http://t.c...