Giter Site home page Giter Site logo

what units are flows reported in? about wntr HOT 7 CLOSED

usepa avatar usepa commented on August 15, 2024
what units are flows reported in?

from wntr.

Comments (7)

kaklise avatar kaklise commented on August 15, 2024

The table references unit conversions for EPANET INP files. Data that is stored in a WNTR water network model and the results from a simulation (EpanetSimulator or WNTRSimulator) are all in SI units. Flowrate is in m^3/s. I see that flowrate is not listed at the top of that page, we'll fix that.

from wntr.

tyjchen avatar tyjchen commented on August 15, 2024

sorry i just had a follow up question, you mention all data is in SI units. so should I be writing my pipe diameters in M? and not mm as shown in the conversion table?

https://wntr.readthedocs.io/en/latest/units.html

from wntr.

michaelbynum avatar michaelbynum commented on August 15, 2024

@tyjchen Good catch. There is a typo in that table. Diameter should be in meters. We will get that fixed.

from wntr.

michaelbynum avatar michaelbynum commented on August 15, 2024

@tyjchen Please disregard my last comment. I spoke too quickly. There is not a typo. The table you are referencing specifies units for Epanet inp files. Pipe diameters should indeed be specified in mm. However, once the model is loaded into a WaterNetworkModel object, pipe diameters are all in meters as specified here https://wntr.readthedocs.io/en/latest/units.html#units. Does that make sense?

from wntr.

tyjchen avatar tyjchen commented on August 15, 2024

@michaelbynum thanks for the response, i'm still a little unsure of what the "right" units are. just to make sure: when an existing .inp file is read the diameters are converted automatically from from inches to meters. if i want to add say a new pipe of 10 inches to the model (using wntr.add_pipe()), i should also use meters?
or should i convert the diameters in the existing model from M to mm?

from wntr.

michaelbynum avatar michaelbynum commented on August 15, 2024

When using wn.add_pipe(), diameter should be specified in meters. At the very top of the previously mentioned webpage (https://wntr.readthedocs.io/en/latest/units.html#units), there is a bulleted list of units. These are the units used in WNTR. Anytime you interact with WNTR python objects, you should use these units. Table 4 on the same page is only for inp files.

from wntr.

tyjchen avatar tyjchen commented on August 15, 2024

@michaelbynum thank you!

from wntr.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.