Computational Science Asked by Zoltán Csáti on December 27, 2020
I have a mesh already partitioned into disjoint groups of cells. What I want to achieve is the following.
Notes:
For your first question, constructing the adjacency graph of the "partitions" (what you call "cell groups"): Let's say you have an array $p_K$ in which you store for each cell $K$ which partition $p$ it belongs to. Also assume that you have a (sparse) array $a_{KL}$ whose entries are true
if cells $K$ and $L$ are neighbors ("adjacent"). Then partition $s$ is "adjacent" to partition $t$ if $t$ is in the set
$$
left( bigcup_{K, p_K=s} ; bigcup_{L, a_{KL}=text{true}} left{p_Lright} right)setminus {s}.
$$
(In other words, we loop over all cells $K$ in partition $s$, then over all neighbors $L$ of these $K$, and collect their partition indices. This union contains all partition indices that partition $s$ is adjacent to, but will likely include $s$ itself -- so we throw away $s$ at the end.
For your second question, visualization -- this is typically done in the following way:
Correct answer by Wolfgang Bangerth on December 27, 2020
Get help from others!
Recent Questions
Recent Answers
© 2024 TransWikia.com. All rights reserved. Sites we Love: PCI Database, UKBizDB, Menu Kuliner, Sharing RPP