smoothcriminal78 / gasflow

1 stars 0 forks source link

Incidents #1

Open charga opened 4 years ago

charga commented 4 years ago

Great work, good example, only one questio, I'm trying to figuere how the graph is (graphically), exactly whats the concept of indicents?

Thanks

smoothcriminal78 commented 4 years ago

Incidents are the pipeline features connected to each others, say one pipe has some incidents which means its connected to the next elements of the pipeline. "pipe": { "_id": 5, "length": 100.0, "diameter": 50.0, "roughness" : 0.1, "incidents": [1,7]} Pipe is connected to features with id 1 and 7. This way the graph is built during initialization.

charga commented 4 years ago

Ok, thanks. Also notice this kind of graph are undirected?

smoothcriminal78 commented 4 years ago

It's not before the calculation, after the direction of edges are set according to the flow of gas.

charga commented 4 years ago

The findPath function locate the first path (not the best) found between two nodes. If there's more path, doesn't evaluate. It's true?