Code Monkey home page Code Monkey logo

Comments (10)

michaelbynum avatar michaelbynum commented on May 31, 2024

I believe the wntr.metrics.cost function provides a cost based on the design of the network (investment cost) rather than the operating cost. It sounds like you want the operating cost. Is that correct? I don't think WNTR supports pump operating costs yet.

from wntr.

zerateltu avatar zerateltu commented on May 31, 2024

Hello Michael, thank you for the reply.
I read from the "WNTR Documentation-Release 0.1.2 (DRAFT Documentation)" that "Network cost is the annual maintenance and operations cost of tanks, pipes, vales, and pumps based on the equations from the Battle of Water Networks II [SOKZ12]. Default values can be included in the calculation. Network cost can be computed using the cost method."(pp42 of the document)

from wntr.

michaelbynum avatar michaelbynum commented on May 31, 2024

Ah, sorry - my mistake - let me clarify. I thought you were looking for the pump cost based on the results of a simulation. The wntr.metrics.cost function does give an estimate of the annual maintenance and operations cost, but it is estimated from the design of the network rather than the results of a simulation. For example, the pumping cost from wntr.metrics.cost provides a cost estimate based off of the maximum power output of the pump (not the actual flowrate of water through the pump at a given time).

Can you specify exactly what you are looking for?

@kaklise Can you confirm what I have said?

from wntr.

kaklise avatar kaklise commented on May 31, 2024

from wntr.

zerateltu avatar zerateltu commented on May 31, 2024

Thank you both for your clarification.
Michael your initial guess is right. I'm trying to extract the pumping energy based on actual demand at each junction (simulation results). I'm working on a project that looks at the impact of rain harvest system on the water distribution system (e.g. change of demand, energy consumption and average water age).

Just a quick edit: the annual maintenance and operation costs for tanks and pipes are fixed (not dependent upon the simulation results), right? Or I just need to proportionally scale the cost based on actual demand?

from wntr.

michaelbynum avatar michaelbynum commented on May 31, 2024

Okay, in that case, WNTR does not currently support what you are looking for. It should not be difficult to add though. I will try to add this functionality early next week.

Nothing computed in wntr.metrics.cost depends on simulation results.

from wntr.

zerateltu avatar zerateltu commented on May 31, 2024

Thanks Michael!

from wntr.

michaelbynum avatar michaelbynum commented on May 31, 2024

zerateltu,
Are you using price patterns? That is going to take me a bit longer to implement. Other than price patterns, I almost have this finished - I just need to add a couple tests.

from wntr.

zerateltu avatar zerateltu commented on May 31, 2024

Hello Michael,
Thank you for the quick update. My primary goal is to be able to extract the pumping energy from the simulation. It will be great if I can also obtain the corresponding maintenance cost and GHG emissions.
Regards

from wntr.

michaelbynum avatar michaelbynum commented on May 31, 2024

Pull request #25 should take care of this issue. There is now a pump_energy function in the metrics module to compute pump energy and cost from simulation results. See http://wntr.readthedocs.io/en/latest/apidoc/wntr.metrics.economic.html#wntr.metrics.economic.pump_energy for detailed information.

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.