<html dir="ltr">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style id="owaParaStyle" type="text/css">P {margin-top:0;margin-bottom:0;}</style>
</head>
<body ocsi="0" fpstyle="1">
<div style="direction: ltr;font-family: Tahoma;color: #000000;font-size: 10pt;">Hi there<br>
<br>
I have particle data, which I read with the H5PartReader plugin<br>
I need to extract the particles whose distances from an x axis offset are within a given threshold on the first timestep, and then follow only these as time goes on.<br>
<br>
the first thing is trivial. I use a python calculator to compute the distance as in<br>
<br>
<div>pythonCalculator1 = PythonCalculator()<br>
pythonCalculator1.Expression = 'abs(inputs[0].Points[:,0]-1900)'  # x axis offset is 1900<br>
pythonCalculator1.ArrayName = 'diff'<br>
<br>
then I use FindData with <br>
<br>
diff <= 200   # 200 is the threshold.<br>
<br>
that also works fine.<br>
<br>
What I cannot make work is the 'Freeze Selection' which is supposed to freeze the currently selected elements by IDs. The Extract Selection input text correctly show<br>
<br>
Type: Id Selection<br>
Elements; points<br>
process ID Index<br>
<br>
but the selection is always an empty set.<br>
<br>
Has anyone gotten that [Freeze selection] to work?<br>
<br>
<div class="BodyFragment"><font size="2"><span style="font-size:10pt;">
<div class="PlainText">-----------------<br>
Jean/CSCS</div>
</span></font></div>
</div>
</div>
</body>
</html>