Clustered network. How to resolve? #2974
Unanswered
lucianoguedes8
asked this question in
Q&A
Replies: 2 comments
-
Have you tried the advice in this example yet? |
Beta Was this translation helpful? Give feedback.
0 replies
-
Oh, I didn't found this. I will try this example now. Thank you, professor. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Greetings.
I set my code to run StokesFlow algorithm and occuried an error that says my network is clustered. With IA help, I understood that my network is with disconnected pores.
**---------------------------------------------------------------------------
Exception Traceback (most recent call last)
Cell In[25], line 102
98 print(sf)
100 # Rodar o algoritmo para resolver o balanço de massa em cada poro e computar a pressão
101 # dentro de cada poro necessária para sustentar o fluxo definido pelas condições de contorno:
--> 102 soln = sf.run()
103 print(soln)
105 # ------------------------------------------------------
106 # 2. Eliminar os clusters desconectados da rede de poros
107 # ------------------------------------------------------
(...)
129
130 # Aplicar as condições de contorno ao longo de Z (de cima para baixo)
File ~\anaconda3\envs\porespy\Lib\site-packages\openpnm\algorithms_transport.py:195, in Transport.run(self, solver, x0, verbose)
193 # Perform pre-solve validations
194 self._validate_settings()
--> 195 self._validate_topology_health()
196 self._validate_linear_system()
197 # Write x0 to algorithm (needed by _update_iterative_props)
File ~\anaconda3\envs\porespy\Lib\site-packages\openpnm\algorithms_transport.py:251, in Transport._validate_topology_health(self)
249 if not is_fully_connected(network=self.network, pores_BC=Ps):
250 msg = ("Your network is clustered, making Ax = b ill-conditioned")
--> 251 raise Exception(msg)
Exception: Your network is clustered, making Ax = b ill-conditioned**
So, the IA recommended a code to remove these disconnected pores (disconnected clusters), pointing an need to run the algorithm with only the main cluster.
How can I do this?
Beta Was this translation helpful? Give feedback.
All reactions