Hi,<div>yes the data in the cube files correspond to values computed at the grid points.</div><div>Since cube files are mostly used for analysis and visualization purposes, too dense grids are normally not needed,</div><div>and the 2 2 2 stride is sufficient, you can change it from input.</div><div>The coordinates of the origin of the grid (bottom left corner) are given in the cube file.</div><div><br></div><div>regards</div><div>Marcella</div><div><br>On Friday, April 26, 2013 1:44:34 PM UTC+2, labicia wrote:<blockquote class="gmail_quote" style="margin: 0;margin-left: 0.8ex;border-left: 1px #ccc solid;padding-left: 1ex;"><div><div style="overflow:hidden">Dear CP2K users,<br>we are interested in using both the Electrostatic potential and Efield cube files generated by CP2K.<br><br>After looking at the source code we understood the following:<br>1) both Electrostatic potential and Efield are computed on the points of the pw grid;<br>2) then the computed values are written in the cube file always starting from the one computed on the first pw grid point, skipping the intermediate pw grid points values according to the stride<br>3) striding with 1 1 1 means to take all possible Electrostaic potential and Efield values<br><br>Is this correct?<br>Does the first point of the pw grid correspond to coordinates (0.0, 0.0, 0.0) in real space (the simulation box origin)?<br>Why is the default stride 2 2 2 (which means, according to the above observations, using only half of the available information), is it a matter of saving disk space?<br><br>Thanks a lot,<br>Marco and Andrea<br></div></div>              </blockquote></div>