<html><body style="word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;">On 07.07.2018, at 13:25, Rafael Guerra <<a href="mailto:jrafaelbguerra@hotmail.com" class="">jrafaelbguerra@hotmail.com</a>> wrote:<br class=""><blockquote type="cite" class=""><br class="">Hi Heinz,<br class=""><br class="">Have you checked following codes (both 2D and 3D cases provided) for particles inside a cubic volume:<br class=""><a href="https://github.com/cfinch/Shocksolution_Examples/blob/master/PairCorrelation/paircorrelation.py" class="">https://github.com/cfinch/Shocksolution_Examples/blob/master/PairCorrelation/paircorrelation.py</a><br class=""><br class="">It might be possible to adapt that code from a cubic volume to a spherical one.<br class="">For instance, it comes to mind evaluating if: rMax + d < R,<br class="">where 'rMax' is as per code definition and 'd' is the distance of the particles from the center of the sphere with radius R<br class=""></blockquote><div class=""><br class=""></div>Great many thanks. As a complete python novice, I just got it running as is (with difficulties). I keep working on it.<div class="">Heinz</div><div class=""><img apple-inline="yes" id="CFB0DF11-C598-4CE9-BB16-EE72C7432995" src="cid:32B161C2-9CAF-4D46-9FDA-B38212E34006@upc.at" class=""><img apple-inline="yes" id="D3E0E5D8-F1EB-4634-9D39-AA08B09AFEFC" src="cid:5360176D-AD74-47FA-902E-B5DD27F12F74@upc.at" class=""><br class=""><br class=""></div></body></html>