Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can't add PRVs #65

Closed
lldl42 opened this issue Nov 27, 2024 · 3 comments
Closed

Can't add PRVs #65

lldl42 opened this issue Nov 27, 2024 · 3 comments

Comments

@lldl42
Copy link

lldl42 commented Nov 27, 2024

I'm trying to add PRVs and plot the network but it's not working. Can anyone help me?

I tryed to do something like this:

for row in linksNodesToFrom:
linksNodesToIndex.append(row[0])

for row in linksNodesToFrom:
linksNodesFromIndex.append(row[1])

Adicionar VRP nas tubulações de fronteira

# Para adicionar VRP é necessário nomeá-las antes:

vrpID = ['1', '2', '3', '4', '5', '6', '7', '8', '9', '10', '11']

Adicionar VRP em cada tubulação de fronteira individualmente

for i, vrp_id in enumerate(vrpID):
from_index = str(linksNodesFromIndex[i])
to_index = str(linksNodesToIndex[i])
rede.addLinkValvePRV(vrp_id, from_index, to_index)

Then I used the command to count the valves and the count was 0:

valves = rede.getLinkValveCount()

What Am I doing wrong?

@lldl42
Copy link
Author

lldl42 commented Nov 27, 2024

I also tryed something like this:

rede.addLinkValvePRV(vID = '1', fromNode='376', toNode='384')

But no success

@Mariosmsk
Copy link
Member

I think @ichrys03 has already helped with this, so I am closing this issue. @ichrys03, please add the answer here if possible.

@ichrys03
Copy link
Contributor

image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants