Skip to content

Output object only an associated variable named POLLUT_CONC_0 #550

Answered by karosc
bemcdonnell asked this question in Q&A
Discussion options

You must be logged in to vote

SWMM uses enumerations to compute the index in the outfile from which to start parsing data. You can think of the output file as a long sequence of bytes. Various data are encoded in that sequence, some are timeseries data, some are object names, datetimes etc.

If you arbitrarily increase the attribute enum beyond the actual number of attributes , swmm will think you want to parse an extra time series that does not exist. For example, if you have five pollutants in your model and you tell pyswmm to read the sixth (which does not exist), it will return the first attribute of the next node or link instead because that is where the sixth pollutant would be written in the output file if it di…

Replies: 10 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by bemcdonnell
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants
Converted from issue

This discussion was converted from issue #506 on September 29, 2024 13:26.