Skip to content

Reduction of coordination number #2715

Answered by jgostick
jayaraj777 asked this question in Q&A
Discussion options

You must be logged in to vote

The reduce_coordination function creates a new label on the network (I think it's 'pore.to_trim'). You then do:

Ps = pn.pores('to_trim')
op.topotools.trim(network=pn, pores=Ps)

Your network will now have the desired coordination number.

Note that the reduce_coordination function is a bit of a hack...it computes a minimum spanning tree using random weights, then randomly selects throats that are not part of the spanning tree for deletion. This will give you the correct mean coordination, but has not control at all over the distribution of the coordination. The point of using the spanning tree is that the network will remain connected after the deletion.

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@jayaraj777
Comment options

Answer selected by jgostick
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants