ver all walls</span>
                <span class="keyword">for</span> j = 1:length(p1.verlet_w)
                    w = p1.verlet_w(j);

                    <span class="comment">% Check for existing interaction</span>
                    <span class="keyword">if</span> (any(p1.neigh_wid == w.id))
                        <span class="comment">% Get interaction object</span>
                        int = findobj(p1.interacts,<span class="string">'elem2'</span>,w);

                        <span class="commen