Skip to content

Commit

Permalink
cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
kaklise committed Dec 12, 2023
1 parent 1eb5232 commit c553002
Showing 1 changed file with 0 additions and 26 deletions.
26 changes: 0 additions & 26 deletions wntr/sim/solvers.py
Original file line number Diff line number Diff line change
Expand Up @@ -73,32 +73,6 @@ def __init__(self, options=None):
| "BT_RHO" (NewtonSolver.rho)
| "BT_MAXITER" (NewtonSolver.bt_maxiter)
| "BACKTRACKING" (NewtonSolver.bt)import wntr
# Create a water network model
inp_file = 'networks/Net1.inp'
wn = wntr.network.WaterNetworkModel(inp_file)
pipe = wn.get_link('10')
pipe.initial_status='CLOSED'
#mod_pipe_name = ('10')
#mod_pipe = wn.get_link(mod_pipe_name)
#mod_pipe.initial_status='CLOSED'
# Graph the network
wntr.graphics.plot_network(wn, title=wn.name)
# Simulate hydraulics
sim = wntr.sim.EpanetSimulator(wn)
results = sim.run_sim()
results.link['flowrate'].loc[:,'10'].plot()
# Plot results on the network
pressure_at_5hr = results.node['pressure'].loc[5*3600, :]
wntr.graphics.plot_network(wn, node_attribute=pressure_at_5hr, node_size=30,
title='Pressure at 5 hours')
| "BT_START_ITER" (NewtonSolver.bt_start_iter)
"""
if options is None:
Expand Down

0 comments on commit c553002

Please sign in to comment.