Skip to main content
Solved

Group Processing not working in NetworkTopologyCalculator


gennine
Contributor
Forum|alt.badge.img+4

Hello,
I'm working on an electrical network with substations and feeders.
I want to assign a number to each feeder using NetworkTopologyCalculator, grouped by substation name.

 

What I get

 

What I want to achieve

Many thanks in advance

Best answer by takashi

A possible way to achieve the result illustrated in this screenshot is,

create a custom transformer wrapping a NetworkTopologyCalculator, and define a user parameter linking to the pre-defined "Group By" transformer parameter in the custom transformer definition.

The custom transformer definition looks like this.

You can right-click on the "Group By" transformer parameter and select Create User Parameter to add the user parameter linking to the pre-defined "Group By". See also the attached workspace example.

View original
Did this help you find an answer to your question?

10 replies

crutledge
Influencer
Forum|alt.badge.img+33
  • Influencer
  • June 7, 2025

Hi ​@gennine 

If I understand correctly, I think, before this step, you could assign an id to the points from the polygon (substation?) using a spatial overlay like the SpatialRelator or PointOnAreaOverlayer. Then you could use the group by. Did I understand correctly? I hope this helps.
 

 


gennine
Contributor
Forum|alt.badge.img+4
  • Author
  • Contributor
  • June 7, 2025

Tank you @crutledge for your quick reply.

In the screenshot above, I created a point with the name of each feeder so that I could later assign them to the linear sections.
I used the "code_pt" attribute as a group, which is the coding of the substations: DSFN_JALLO & DSFN_TAPPA.
What I noticed is that the NetworkTopologyCalculator transformer requires that the feeders connect to a single point at each substation. If grouped with code_pt, I get:

 

I'm a little confused by the results found.


takashi
Evangelist
  • June 7, 2025

Hi ​@gennine ,

NetworkTopologyCalculator adds an identical Network ID to topologically connected network lines. In your case, regardless of whether you set substation code to the Group By parameter or not, the result should be the same - Network ID = 1 for one, Network ID = 2 for another, since there are two connected networks.


takashi
Evangelist
  • June 8, 2025

However, the result shown in your first screenshot (attached below again) looks strange indeed, if all the network lines have the attribute called “code_pt” (value = “DSFN_JALLO” or “DSFN_TAPPA”) and you have set “code_pt” to the Group By parameter in the NetworkTopologyCalculator.

Possibly the group processing of NetworkTopologyCalculator is not working as intended. Can you please take a look at this? ​@DanAtSafe 

 


takashi
Evangelist
  • June 8, 2025

After some quick testings, I think I can understand how the group processing of NetworkTopologyCalculator works.

It seems that the group processing works to differentiate lines belonging to a topologically connected network into groups, not make the sequence of network ids independent for each group. It’s unlike the group processing in Counter.

Hopefully this screenshot illustrates how it works.

 


gennine
Contributor
Forum|alt.badge.img+4
  • Author
  • Contributor
  • June 8, 2025

Very clear ​@takashi. Thank you very much.
However, I don't think the transformer NetworkTopologyCalculator can solve this issue. I'll try to look for other alternatives.

Best regards


crutledge
Influencer
Forum|alt.badge.img+33
  • Influencer
  • June 8, 2025

Hi ​@gennine Well the only other thing I can think of (def not the expert here) is trying to calc that in a separate field using the counter and grouping on your substation id (code_pt right?). Otherwise like ​@takashi suggested maybe the group processing in the transformer is not working as intended?

 


takashi
Evangelist
  • Best Answer
  • June 8, 2025

A possible way to achieve the result illustrated in this screenshot is,

create a custom transformer wrapping a NetworkTopologyCalculator, and define a user parameter linking to the pre-defined "Group By" transformer parameter in the custom transformer definition.

The custom transformer definition looks like this.

You can right-click on the "Group By" transformer parameter and select Create User Parameter to add the user parameter linking to the pre-defined "Group By". See also the attached workspace example.


gennine
Contributor
Forum|alt.badge.img+4
  • Author
  • Contributor
  • June 8, 2025

I will see the attachment and I will be back soon.

Many thanks


gennine
Contributor
Forum|alt.badge.img+4
  • Author
  • Contributor
  • June 9, 2025

Many thanks ​@takashi  for your patience in developing the solution.
I also thank ​@crutledge  for your suggestions.

 

Best regards


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings