<ahref="container_8hh.html">Go to the documentation of this file.</a><divclass="fragment"><divclass="line"><aname="l00001"></a><spanclass="lineno"> 1</span> <spanclass="comment">// Voro++, a 3D cell-based Voronoi library</span></div>
<divclass="line"><aname="l00008"></a><spanclass="lineno"> 8</span> <spanclass="comment"> * \brief Header file for the container_base and related classes. */</span></div>
<divclass="line"><aname="l00016"></a><spanclass="lineno"> 16</span> <spanclass="preprocessor">#include "<aclass="code"href="config_8hh.html"title="Master configuration file for setting various compile-time options.">config.hh</a>"</span></div>
<divclass="line"><aname="l00017"></a><spanclass="lineno"> 17</span> <spanclass="preprocessor">#include "<aclass="code"href="common_8hh.html"title="Header file for the small helper functions.">common.hh</a>"</span></div>
<divclass="line"><aname="l00018"></a><spanclass="lineno"> 18</span> <spanclass="preprocessor">#include "<aclass="code"href="v__base_8hh.html"title="Header file for the base Voronoi container class.">v_base.hh</a>"</span></div>
<divclass="line"><aname="l00019"></a><spanclass="lineno"> 19</span> <spanclass="preprocessor">#include "<aclass="code"href="cell_8hh.html"title="Header file for the voronoicell and related classes.">cell.hh</a>"</span></div>
<divclass="line"><aname="l00020"></a><spanclass="lineno"> 20</span> <spanclass="preprocessor">#include "<aclass="code"href="c__loops_8hh.html"title="Header file for the loop classes.">c_loops.hh</a>"</span></div>
<divclass="line"><aname="l00021"></a><spanclass="lineno"> 21</span> <spanclass="preprocessor">#include "<aclass="code"href="v__compute_8hh.html"title="Header file for the voro_compute template and related classes.">v_compute.hh</a>"</span></div>
<divclass="line"><aname="l00022"></a><spanclass="lineno"> 22</span> <spanclass="preprocessor">#include "<aclass="code"href="rad__option_8hh.html"title="Header file for the classes encapsulating functionality for the regular and radical Voronoi tessellat...">rad_option.hh</a>"</span></div>
<divclass="line"><aname="l00026"></a><spanclass="lineno"> 26</span> <spanclass="comment">/** \brief Pure virtual class from which wall objects are derived.</span></div>
<divclass="line"><aname="l00028"></a><spanclass="lineno"> 28</span> <spanclass="comment"> * This is a pure virtual class for a generic wall object. A wall object</span></div>
<divclass="line"><aname="l00029"></a><spanclass="lineno"> 29</span> <spanclass="comment"> * can be specified by deriving a new class from this and specifying the</span></div>
<divclass="line"><aname="l00031"></a><spanclass="lineno"><aclass="code"href="classvoro_1_1wall.html"> 31</a></span> <spanclass="keyword">class </span><aclass="code"href="classvoro_1_1wall.html"title="Pure virtual class from which wall objects are derived.">wall</a> {</div>
<divclass="line"><aname="l00033"></a><spanclass="lineno"> 33</span> <spanclass="keyword">virtual</span> ~<aclass="code"href="classvoro_1_1wall.html"title="Pure virtual class from which wall objects are derived.">wall</a>() {}<spanclass="comment"></span></div>
<divclass="line"><aname="l00034"></a><spanclass="lineno"> 34</span> <spanclass="comment"> /** A pure virtual function for testing whether a point is</span></div>
<divclass="line"><aname="l00035"></a><spanclass="lineno"> 35</span> <spanclass="comment"> * inside the wall object. */</span></div>
<divclass="line"><aname="l00037"></a><spanclass="lineno"> 37</span> <spanclass="comment"> /** A pure virtual function for cutting a cell without</span></div>
<divclass="line"><aname="l00038"></a><spanclass="lineno"> 38</span> <spanclass="comment"> * neighbor-tracking with a wall. */</span></div>
<divclass="line"><aname="l00039"></a><spanclass="lineno"> 39</span> <spanclass="keyword">virtual</span><spanclass="keywordtype">bool</span><aclass="code"href="classvoro_1_1wall.html#ab54b4c6d37223584f1fbf653d0b17d14">cut_cell</a>(<aclass="code"href="classvoro_1_1voronoicell.html"title="Extension of the voronoicell_base class to represent a Voronoi cell without neighbor information...">voronoicell</a>&c,<spanclass="keywordtype">double</span> x,<spanclass="keywordtype">double</span> y,<spanclass="keywordtype">double</span> z) = 0;<spanclass="comment"></span></div>
<divclass="line"><aname="l00040"></a><spanclass="lineno"> 40</span> <spanclass="comment"> /** A pure virtual function for cutting a cell with</span></div>
<divclass="line"><aname="l00041"></a><spanclass="lineno"> 41</span> <spanclass="comment"> * neighbor-tracking enabled with a wall. */</span></div>
<divclass="line"><aname="l00042"></a><spanclass="lineno"> 42</span> <spanclass="keyword">virtual</span><spanclass="keywordtype">bool</span><aclass="code"href="classvoro_1_1wall.html#ab54b4c6d37223584f1fbf653d0b17d14">cut_cell</a>(<aclass="code"href="classvoro_1_1voronoicell__neighbor.html"title="Extension of the voronoicell_base class to represent a Voronoi cell with neighbor information...">voronoicell_neighbor</a>&c,<spanclass="keywordtype">double</span> x,<spanclass="keywordtype">double</span> y,<spanclass="keywordtype">double</span> z) = 0;</div>
<divclass="line"><aname="l00045"></a><spanclass="lineno"> 45</span> <spanclass="comment">/** \brief A class for storing a list of pointers to walls.</span></div>
<divclass="line"><aname="l00047"></a><spanclass="lineno"> 47</span> <spanclass="comment"> * This class stores a list of pointers to wall classes. It contains several</span></div>
<divclass="line"><aname="l00048"></a><spanclass="lineno"> 48</span> <spanclass="comment"> * simple routines that make use of the wall classes (such as telling whether a</span></div>
<divclass="line"><aname="l00049"></a><spanclass="lineno"> 49</span> <spanclass="comment"> * given position is inside all of the walls or not). It can be used by itself,</span></div>
<divclass="line"><aname="l00050"></a><spanclass="lineno"> 50</span> <spanclass="comment"> * but also forms part of container_base, for associating walls with this</span></div>
<divclass="line"><aname="l00052"></a><spanclass="lineno"><aclass="code"href="classvoro_1_1wall__list.html"> 52</a></span> <spanclass="keyword">class </span><aclass="code"href="classvoro_1_1wall__list.html"title="A class for storing a list of pointers to walls.">wall_list</a> {</div>
<divclass="line"><aname="l00054"></a><spanclass="lineno"> 54</span> <spanclass="comment"> /** An array holding pointers to wall objects. */</span></div>
<divclass="line"><aname="l00055"></a><spanclass="lineno"><aclass="code"href="classvoro_1_1wall__list.html#abfc54768de5b596237d7eef5f589fe90"> 55</a></span> <aclass="code"href="classvoro_1_1wall.html"title="Pure virtual class from which wall objects are derived.">wall</a> **<aclass="code"href="classvoro_1_1wall__list.html#abfc54768de5b596237d7eef5f589fe90">walls</a>;<spanclass="comment"></span></div>
<divclass="line"><aname="l00056"></a><spanclass="lineno"> 56</span> <spanclass="comment"> /** A pointer to the next free position to add a wall pointer.</span></div>
<divclass="line"><aname="l00058"></a><spanclass="lineno"><aclass="code"href="classvoro_1_1wall__list.html#abb48a3e29042c51cf48fa6a6b6c2dc1d"> 58</a></span> <aclass="code"href="classvoro_1_1wall.html"title="Pure virtual class from which wall objects are derived.">wall</a> **<aclass="code"href="classvoro_1_1wall__list.html#abb48a3e29042c51cf48fa6a6b6c2dc1d">wep</a>;</div>
<divclass="line"><aname="l00061"></a><spanclass="lineno"> 61</span> <spanclass="comment"> /** Adds a wall to the list.</span></div>
<divclass="line"><aname="l00062"></a><spanclass="lineno"> 62</span> <spanclass="comment"> * \param[in] w the wall to add. */</span></div>
<divclass="line"><aname="l00063"></a><spanclass="lineno"><aclass="code"href="classvoro_1_1wall__list.html#aca50327f246b61f6aeef5337327d957d"> 63</a></span> <spanclass="keyword">inline</span><spanclass="keywordtype">void</span><aclass="code"href="classvoro_1_1wall__list.html#aca50327f246b61f6aeef5337327d957d">add_wall</a>(<aclass="code"href="classvoro_1_1wall.html"title="Pure virtual class from which wall objects are derived.">wall</a> *w) {</div>
<divclass="line"><aname="l00067"></a><spanclass="lineno"> 67</span> <spanclass="comment"> /** Adds a wall to the list.</span></div>
<divclass="line"><aname="l00068"></a><spanclass="lineno"> 68</span> <spanclass="comment"> * \param[in] w a reference to the wall to add. */</span></div>
<divclass="line"><aname="l00069"></a><spanclass="lineno"><aclass="code"href="classvoro_1_1wall__list.html#a8e3a5253fa0392bf0f8b7a84eb1b61d4"> 69</a></span> <spanclass="keyword">inline</span><spanclass="keywordtype">void</span><aclass="code"href="classvoro_1_1wall__list.html#a8e3a5253fa0392bf0f8b7a84eb1b61d4">add_wall</a>(<aclass="code"href="classvoro_1_1wall.html"title="Pure virtual class from which wall objects are derived.">wall</a>&w) {<aclass="code"href="classvoro_1_1wall__list.html#a8e3a5253fa0392bf0f8b7a84eb1b61d4">add_wall</a>(&w);}</div>
<divclass="line"><aname="l00070"></a><spanclass="lineno"> 70</span> <spanclass="keywordtype">void</span><aclass="code"href="classvoro_1_1wall__list.html#aca50327f246b61f6aeef5337327d957d">add_wall</a>(<aclass="code"href="classvoro_1_1wall__list.html"title="A class for storing a list of pointers to walls.">wall_list</a>&wl);<spanclass="comment"></span></div>
<divclass="line"><aname="l00071"></a><spanclass="lineno"> 71</span> <spanclass="comment"> /** Determines whether a given position is inside all of the</span></div>
<divclass="line"><aname="l00072"></a><spanclass="lineno"> 72</span> <spanclass="comment"> * walls on the list.</span></div>
<divclass="line"><aname="l00073"></a><spanclass="lineno"> 73</span> <spanclass="comment"> * \param[in] (x,y,z) the position to test.</span></div>
<divclass="line"><aname="l00074"></a><spanclass="lineno"> 74</span> <spanclass="comment"> * \return True if it is inside, false if it is outside. */</span></div>
<divclass="line"><aname="l00076"></a><spanclass="lineno"> 76</span> <spanclass="keywordflow">for</span>(<aclass="code"href="classvoro_1_1wall.html"title="Pure virtual class from which wall objects are derived.">wall</a> **wp=<aclass="code"href="classvoro_1_1wall__list.html#abfc54768de5b596237d7eef5f589fe90">walls</a>;wp<<aclass="code"href="classvoro_1_1wall__list.html#abb48a3e29042c51cf48fa6a6b6c2dc1d">wep</a>;wp++) <spanclass="keywordflow">if</span>(!((*wp)->point_inside(x,y,z))) <spanclass="keywordflow">return</span><spanclass="keyword">false</span>;</div>
<divclass="line"><aname="l00079"></a><spanclass="lineno"> 79</span> <spanclass="comment"> /** Cuts a Voronoi cell by all of the walls currently on</span></div>
<divclass="line"><aname="l00080"></a><spanclass="lineno"> 80</span> <spanclass="comment"> * the list.</span></div>
<divclass="line"><aname="l00081"></a><spanclass="lineno"> 81</span> <spanclass="comment"> * \param[in] c a reference to the Voronoi cell class.</span></div>
<divclass="line"><aname="l00082"></a><spanclass="lineno"> 82</span> <spanclass="comment"> * \param[in] (x,y,z) the position of the cell.</span></div>
<divclass="line"><aname="l00083"></a><spanclass="lineno"> 83</span> <spanclass="comment"> * \return True if the cell still exists, false if the cell is</span></div>
<divclass="line"><aname="l00087"></a><spanclass="lineno"> 87</span> <spanclass="keywordflow">for</span>(<aclass="code"href="classvoro_1_1wall.html"title="Pure virtual class from which wall objects are derived.">wall</a> **wp=<aclass="code"href="classvoro_1_1wall__list.html#abfc54768de5b596237d7eef5f589fe90">walls</a>;wp<<aclass="code"href="classvoro_1_1wall__list.html#abb48a3e29042c51cf48fa6a6b6c2dc1d">wep</a>;wp++) <spanclass="keywordflow">if</span>(!((*wp)->cut_cell(c,x,y,z))) <spanclass="keywordflow">return</span><spanclass="keyword">false</span>;</div>
<divclass="line"><aname="l00093"></a><spanclass="lineno"> 93</span> <spanclass="comment"> /** A pointer to the limit of the walls array, used to</span></div>
<divclass="line"><aname="l00094"></a><spanclass="lineno"> 94</span> <spanclass="comment"> * determine when array is full. */</span></div>
<divclass="line"><aname="l00095"></a><spanclass="lineno"><aclass="code"href="classvoro_1_1wall__list.html#a292491bc99b6bbc819bb3720fcfb08a1"> 95</a></span> <aclass="code"href="classvoro_1_1wall.html"title="Pure virtual class from which wall objects are derived.">wall</a> **<aclass="code"href="classvoro_1_1wall__list.html#a292491bc99b6bbc819bb3720fcfb08a1">wel</a>;<spanclass="comment"></span></div>
<divclass="line"><aname="l00096"></a><spanclass="lineno"> 96</span> <spanclass="comment"> /** The current amount of memory allocated for walls. */</span></div>
<divclass="line"><aname="l00100"></a><spanclass="lineno"> 100</span> <spanclass="comment">/** \brief Class for representing a particle system in a three-dimensional</span></div>
<divclass="line"><aname="l00103"></a><spanclass="lineno"> 103</span> <spanclass="comment"> * This class represents a system of particles in a three-dimensional</span></div>
<divclass="line"><aname="l00104"></a><spanclass="lineno"> 104</span> <spanclass="comment"> * rectangular box. Any combination of non-periodic and periodic coordinates</span></div>
<divclass="line"><aname="l00105"></a><spanclass="lineno"> 105</span> <spanclass="comment"> * can be used in the three coordinate directions. The class is not intended</span></div>
<divclass="line"><aname="l00106"></a><spanclass="lineno"> 106</span> <spanclass="comment"> * for direct use, but instead forms the base of the container and</span></div>
<divclass="line"><aname="l00107"></a><spanclass="lineno"> 107</span> <spanclass="comment"> * container_poly classes that add specialized routines for computing the</span></div>
<divclass="line"><aname="l00108"></a><spanclass="lineno"> 108</span> <spanclass="comment"> * regular and radical Voronoi tessellations respectively. It contains routines</span></div>
<divclass="line"><aname="l00109"></a><spanclass="lineno"> 109</span> <spanclass="comment"> * that are commonly between these two classes, such as those for drawing the</span></div>
<divclass="line"><aname="l00110"></a><spanclass="lineno"> 110</span> <spanclass="comment"> * domain, and placing particles within the internal data structure.</span></div>
<divclass="line"><aname="l00112"></a><spanclass="lineno"> 112</span> <spanclass="comment"> * The class is derived from the wall_list class, which encapsulates routines</span></div>
<divclass="line"><aname="l00113"></a><spanclass="lineno"> 113</span> <spanclass="comment"> * for associating walls with the container, and the voro_base class, which</span></div>
<divclass="line"><aname="l00114"></a><spanclass="lineno"> 114</span> <spanclass="comment"> * encapsulates routines about the underlying computational grid. */</span></div>
<divclass="line"><aname="l00115"></a><spanclass="lineno"><aclass="code"href="classvoro_1_1container__base.html"> 115</a></span> <spanclass="keyword">class </span><aclass="code"href="classvoro_1_1container__base.html"title="Class for representing a particle system in a three-dimensional rectangular box.">container_base</a> : <spanclass="keyword">public</span><aclass="code"href="classvoro_1_1voro__base.html"title="Class containing data structures common across all particle container classes.">voro_base</a>, <spanclass="keyword">public</span><aclass="code"href="classvoro_1_1wall__list.html"title="A class for storing a list of pointers to walls.">wall_list</a> {</div>
<divclass="line"><aname="l00117"></a><spanclass="lineno"> 117</span> <spanclass="comment"> /** The minimum x coordinate of the container. */</span></div>
<divclass="line"><aname="l00119"></a><spanclass="lineno"> 119</span> <spanclass="comment"> /** The maximum x coordinate of the container. */</span></div>
<divclass="line"><aname="l00121"></a><spanclass="lineno"> 121</span> <spanclass="comment"> /** The minimum y coordinate of the container. */</span></div>
<divclass="line"><aname="l00123"></a><spanclass="lineno"> 123</span> <spanclass="comment"> /** The maximum y coordinate of the container. */</span></div>
<divclass="line"><aname="l00125"></a><spanclass="lineno"> 125</span> <spanclass="comment"> /** The minimum z coordinate of the container. */</span></div>
<divclass="line"><aname="l00127"></a><spanclass="lineno"> 127</span> <spanclass="comment"> /** The maximum z coordinate of the container. */</span></div>
<divclass="line"><aname="l00129"></a><spanclass="lineno"> 129</span> <spanclass="comment"> /** A boolean value that determines if the x coordinate in</span></div>
<divclass="line"><aname="l00130"></a><spanclass="lineno"> 130</span> <spanclass="comment"> * periodic or not. */</span></div>
<divclass="line"><aname="l00132"></a><spanclass="lineno"> 132</span> <spanclass="comment"> /** A boolean value that determines if the y coordinate in</span></div>
<divclass="line"><aname="l00133"></a><spanclass="lineno"> 133</span> <spanclass="comment"> * periodic or not. */</span></div>
<divclass="line"><aname="l00135"></a><spanclass="lineno"> 135</span> <spanclass="comment"> /** A boolean value that determines if the z coordinate in</span></div>
<divclass="line"><aname="l00136"></a><spanclass="lineno"> 136</span> <spanclass="comment"> * periodic or not. */</span></div>
<divclass="line"><aname="l00138"></a><spanclass="lineno"> 138</span> <spanclass="comment"> /** This array holds the numerical IDs of each particle in each</span></div>
<divclass="line"><aname="l00141"></a><spanclass="lineno"> 141</span> <spanclass="comment"> /** A two dimensional array holding particle positions. For the</span></div>
<divclass="line"><aname="l00142"></a><spanclass="lineno"> 142</span> <spanclass="comment"> * derived container_poly class, this also holds particle</span></div>
<divclass="line"><aname="l00145"></a><spanclass="lineno"> 145</span> <spanclass="comment"> /** This array holds the number of particles within each</span></div>
<divclass="line"><aname="l00146"></a><spanclass="lineno"> 146</span> <spanclass="comment"> * computational box of the container. */</span></div>
<divclass="line"><aname="l00148"></a><spanclass="lineno"> 148</span> <spanclass="comment"> /** This array holds the maximum amount of particle memory for</span></div>
<divclass="line"><aname="l00149"></a><spanclass="lineno"> 149</span> <spanclass="comment"> * each computational box of the container. If the number of</span></div>
<divclass="line"><aname="l00150"></a><spanclass="lineno"> 150</span> <spanclass="comment"> * particles in a particular box ever approaches this limit,</span></div>
<divclass="line"><aname="l00151"></a><spanclass="lineno"> 151</span> <spanclass="comment"> * more is allocated using the add_particle_memory() function.</span></div>
<divclass="line"><aname="l00154"></a><spanclass="lineno"> 154</span> <spanclass="comment"> /** The amount of memory in the array structure for each</span></div>
<divclass="line"><aname="l00155"></a><spanclass="lineno"> 155</span> <spanclass="comment"> * particle. This is set to 3 when the basic class is</span></div>
<divclass="line"><aname="l00156"></a><spanclass="lineno"> 156</span> <spanclass="comment"> * initialized, so that the array holds (x,y,z) positions. If</span></div>
<divclass="line"><aname="l00157"></a><spanclass="lineno"> 157</span> <spanclass="comment"> * the container class is initialized as part of the derived</span></div>
<divclass="line"><aname="l00158"></a><spanclass="lineno"> 158</span> <spanclass="comment"> * class container_poly, then this is set to 4, to also hold</span></div>
<divclass="line"><aname="l00159"></a><spanclass="lineno"> 159</span> <spanclass="comment"> * the particle radii. */</span></div>
<divclass="line"><aname="l00167"></a><spanclass="lineno"> 167</span> <spanclass="comment"> /** Initializes the Voronoi cell prior to a compute_cell</span></div>
<divclass="line"><aname="l00168"></a><spanclass="lineno"> 168</span> <spanclass="comment"> * operation for a specific particle being carried out by a</span></div>
<divclass="line"><aname="l00169"></a><spanclass="lineno"> 169</span> <spanclass="comment"> * voro_compute class. The cell is initialized to fill the</span></div>
<divclass="line"><aname="l00170"></a><spanclass="lineno"> 170</span> <spanclass="comment"> * entire container. For non-periodic coordinates, this is set</span></div>
<divclass="line"><aname="l00171"></a><spanclass="lineno"> 171</span> <spanclass="comment"> * by the position of the walls. For periodic coordinates, the</span></div>
<divclass="line"><aname="l00172"></a><spanclass="lineno"> 172</span> <spanclass="comment"> * space is equally divided in either direction from the</span></div>
<divclass="line"><aname="l00173"></a><spanclass="lineno"> 173</span> <spanclass="comment"> * particle's initial position. Plane cuts made by any walls</span></div>
<divclass="line"><aname="l00174"></a><spanclass="lineno"> 174</span> <spanclass="comment"> * that have been added are then applied to the cell.</span></div>
<divclass="line"><aname="l00175"></a><spanclass="lineno"> 175</span> <spanclass="comment"> * \param[in,out] c a reference to a voronoicell object.</span></div>
<divclass="line"><aname="l00176"></a><spanclass="lineno"> 176</span> <spanclass="comment"> * \param[in] ijk the block that the particle is within.</span></div>
<divclass="line"><aname="l00177"></a><spanclass="lineno"> 177</span> <spanclass="comment"> * \param[in] q the index of the particle within its block.</span></div>
<divclass="line"><aname="l00178"></a><spanclass="lineno"> 178</span> <spanclass="comment"> * \param[in] (ci,cj,ck) the coordinates of the block in the</span></div>
<divclass="line"><aname="l00180"></a><spanclass="lineno"> 180</span> <spanclass="comment"> * \param[out] (i,j,k) the coordinates of the test block</span></div>
<divclass="line"><aname="l00181"></a><spanclass="lineno"> 181</span> <spanclass="comment"> * relative to the voro_compute</span></div>
<divclass="line"><aname="l00183"></a><spanclass="lineno"> 183</span> <spanclass="comment"> * \param[out] (x,y,z) the position of the particle.</span></div>
<divclass="line"><aname="l00184"></a><spanclass="lineno"> 184</span> <spanclass="comment"> * \param[out] disp a block displacement used internally by the</span></div>
<divclass="line"><aname="l00186"></a><spanclass="lineno"> 186</span> <spanclass="comment"> * \return False if the plane cuts applied by walls completely</span></div>
<divclass="line"><aname="l00187"></a><spanclass="lineno"> 187</span> <spanclass="comment"> * removed the cell, true otherwise. */</span></div>
<divclass="line"><aname="l00201"></a><spanclass="lineno"> 201</span> <spanclass="comment"> /** Initializes parameters for a find_voronoi_cell call within</span></div>
<divclass="line"><aname="l00202"></a><spanclass="lineno"> 202</span> <spanclass="comment"> * the voro_compute template.</span></div>
<divclass="line"><aname="l00203"></a><spanclass="lineno"> 203</span> <spanclass="comment"> * \param[in] (ci,cj,ck) the coordinates of the test block in</span></div>
<divclass="line"><aname="l00204"></a><spanclass="lineno"> 204</span> <spanclass="comment"> * the container coordinate system.</span></div>
<divclass="line"><aname="l00205"></a><spanclass="lineno"> 205</span> <spanclass="comment"> * \param[in] ijk the index of the test block</span></div>
<divclass="line"><aname="l00206"></a><spanclass="lineno"> 206</span> <spanclass="comment"> * \param[out] (i,j,k) the coordinates of the test block</span></div>
<divclass="line"><aname="l00207"></a><spanclass="lineno"> 207</span> <spanclass="comment"> * relative to the voro_compute</span></div>
<divclass="line"><aname="l00209"></a><spanclass="lineno"> 209</span> <spanclass="comment"> * \param[out] disp a block displacement used internally by the</span></div>
<divclass="line"><aname="l00217"></a><spanclass="lineno"> 217</span> <spanclass="comment"> /** Returns the position of a particle currently being computed</span></div>
<divclass="line"><aname="l00218"></a><spanclass="lineno"> 218</span> <spanclass="comment"> * relative to the computational block that it is within. It is</span></div>
<divclass="line"><aname="l00219"></a><spanclass="lineno"> 219</span> <spanclass="comment"> * used to select the optimal worklist entry to use.</span></div>
<divclass="line"><aname="l00220"></a><spanclass="lineno"> 220</span> <spanclass="comment"> * \param[in] (x,y,z) the position of the particle.</span></div>
<divclass="line"><aname="l00221"></a><spanclass="lineno"> 221</span> <spanclass="comment"> * \param[in] (ci,cj,ck) the block that the particle is within.</span></div>
<divclass="line"><aname="l00222"></a><spanclass="lineno"> 222</span> <spanclass="comment"> * \param[out] (fx,fy,fz) the position relative to the block.</span></div>
<divclass="line"><aname="l00230"></a><spanclass="lineno"> 230</span> <spanclass="comment"> /** Calculates the index of block in the container structure</span></div>
<divclass="line"><aname="l00231"></a><spanclass="lineno"> 231</span> <spanclass="comment"> * corresponding to given coordinates.</span></div>
<divclass="line"><aname="l00232"></a><spanclass="lineno"> 232</span> <spanclass="comment"> * \param[in] (ci,cj,ck) the coordinates of the original block</span></div>
<divclass="line"><aname="l00233"></a><spanclass="lineno"> 233</span> <spanclass="comment"> * in the current computation, relative</span></div>
<divclass="line"><aname="l00234"></a><spanclass="lineno"> 234</span> <spanclass="comment"> * to the container coordinate system.</span></div>
<divclass="line"><aname="l00235"></a><spanclass="lineno"> 235</span> <spanclass="comment"> * \param[in] (ei,ej,ek) the displacement of the current block</span></div>
<divclass="line"><aname="l00236"></a><spanclass="lineno"> 236</span> <spanclass="comment"> * from the original block.</span></div>
<divclass="line"><aname="l00237"></a><spanclass="lineno"> 237</span> <spanclass="comment"> * \param[in,out] (qx,qy,qz) the periodic displacement that</span></div>
<divclass="line"><aname="l00238"></a><spanclass="lineno"> 238</span> <spanclass="comment"> * must be added to the particles</span></div>
<divclass="line"><aname="l00239"></a><spanclass="lineno"> 239</span> <spanclass="comment"> * within the computed block.</span></div>
<divclass="line"><aname="l00240"></a><spanclass="lineno"> 240</span> <spanclass="comment"> * \param[in] disp a block displacement used internally by the</span></div>
<divclass="line"><aname="l00241"></a><spanclass="lineno"> 241</span> <spanclass="comment"> * find_voronoi_cell and compute_cell routines.</span></div>
<divclass="line"><aname="l00242"></a><spanclass="lineno"> 242</span> <spanclass="comment"> * \return The block index. */</span></div>
<divclass="line"><aname="l00250"></a><spanclass="lineno"> 250</span> <spanclass="comment"> /** Draws an outline of the domain in Gnuplot format.</span></div>
<divclass="line"><aname="l00251"></a><spanclass="lineno"> 251</span> <spanclass="comment"> * \param[in] filename the filename to write to. */</span></div>
<divclass="line"><aname="l00258"></a><spanclass="lineno"> 258</span> <spanclass="comment"> /** Draws an outline of the domain in Gnuplot format.</span></div>
<divclass="line"><aname="l00259"></a><spanclass="lineno"> 259</span> <spanclass="comment"> * \param[in] filename the filename to write to. */</span></div>
<divclass="line"><aname="l00265"></a><spanclass="lineno"> 265</span> <spanclass="comment"> /** Sums up the total number of stored particles.</span></div>
<divclass="line"><aname="l00266"></a><spanclass="lineno"> 266</span> <spanclass="comment"> * \return The number of particles. */</span></div>
<divclass="line"><aname="l00279"></a><spanclass="lineno"> 279</span> <spanclass="comment">/** \brief Extension of the container_base class for computing regular Voronoi</span></div>
<divclass="line"><aname="l00282"></a><spanclass="lineno"> 282</span> <spanclass="comment"> * This class is an extension of the container_base class that has routines</span></div>
<divclass="line"><aname="l00283"></a><spanclass="lineno"> 283</span> <spanclass="comment"> * specifically for computing the regular Voronoi tessellation with no</span></div>
<divclass="line"><aname="l00284"></a><spanclass="lineno"> 284</span> <spanclass="comment"> * dependence on particle radii. */</span></div>
<divclass="line"><aname="l00285"></a><spanclass="lineno"><aclass="code"href="classvoro_1_1container.html"> 285</a></span> <spanclass="keyword">class </span><aclass="code"href="classvoro_1_1container.html"title="Extension of the container_base class for computing regular Voronoi tessellations.">container</a> : <spanclass="keyword">public</span><aclass="code"href="classvoro_1_1container__base.html"title="Class for representing a particle system in a three-dimensional rectangular box.">container_base</a>, <spanclass="keyword">public</span><aclass="code"href="classvoro_1_1radius__mono.html"title="Class containing all of the routines that are specific to computing the regular Voronoi tessellation...">radius_mono</a> {</div>
<divclass="line"><aname="l00291"></a><spanclass="lineno"> 291</span> <spanclass="keywordtype">void</span><aclass="code"href="classvoro_1_1container.html#a5c67c9998e4f174fb217967dcb41c7f3">put</a>(<aclass="code"href="classvoro_1_1particle__order.html"title="A class for storing ordering information when particles are added to a container.">particle_order</a>&vo,<spanclass="keywordtype">int</span> n,<spanclass="keywordtype">double</span> x,<spanclass="keywordtype">double</span> y,<spanclass="keywordtype">double</span> z);</div>
<divclass="line"><aname="l00293"></a><spanclass="lineno"> 293</span> <spanclass="keywordtype">void</span><spanclass="keyword">import</span>(<aclass="code"href="classvoro_1_1particle__order.html"title="A class for storing ordering information when particles are added to a container.">particle_order</a>&vo,FILE *fp=stdin);<spanclass="comment"></span></div>
<divclass="line"><aname="l00294"></a><spanclass="lineno"> 294</span> <spanclass="comment"> /** Imports a list of particles from an open file stream into</span></div>
<divclass="line"><aname="l00295"></a><spanclass="lineno"> 295</span> <spanclass="comment"> * the container. Entries of four numbers (Particle ID, x</span></div>
<divclass="line"><aname="l00296"></a><spanclass="lineno"> 296</span> <spanclass="comment"> * position, y position, z position) are searched for. If the</span></div>
<divclass="line"><aname="l00297"></a><spanclass="lineno"> 297</span> <spanclass="comment"> * file cannot be successfully read, then the routine causes a</span></div>
<divclass="line"><aname="l00299"></a><spanclass="lineno"> 299</span> <spanclass="comment"> * \param[in] filename the name of the file to open and read</span></div>
<divclass="line"><aname="l00306"></a><spanclass="lineno"> 306</span> <spanclass="comment"> /** Imports a list of particles from an open file stream into</span></div>
<divclass="line"><aname="l00307"></a><spanclass="lineno"> 307</span> <spanclass="comment"> * the container. Entries of four numbers (Particle ID, x</span></div>
<divclass="line"><aname="l00308"></a><spanclass="lineno"> 308</span> <spanclass="comment"> * position, y position, z position) are searched for. In</span></div>
<divclass="line"><aname="l00309"></a><spanclass="lineno"> 309</span> <spanclass="comment"> * addition, the order in which particles are read is saved</span></div>
<divclass="line"><aname="l00310"></a><spanclass="lineno"> 310</span> <spanclass="comment"> * into an ordering class. If the file cannot be successfully</span></div>
<divclass="line"><aname="l00311"></a><spanclass="lineno"> 311</span> <spanclass="comment"> * read, then the routine causes a fatal error.</span></div>
<divclass="line"><aname="l00312"></a><spanclass="lineno"> 312</span> <spanclass="comment"> * \param[in,out] vo the ordering class to use.</span></div>
<divclass="line"><aname="l00313"></a><spanclass="lineno"> 313</span> <spanclass="comment"> * \param[in] filename the name of the file to open and read</span></div>
<divclass="line"><aname="l00315"></a><spanclass="lineno"><aclass="code"href="classvoro_1_1container.html#acd9da3dc12eecccd5db8af5ff111222c"> 315</a></span> <spanclass="keyword">inline</span><spanclass="keywordtype">void</span><spanclass="keyword">import</span>(<aclass="code"href="classvoro_1_1particle__order.html"title="A class for storing ordering information when particles are added to a container.">particle_order</a>&vo,<spanclass="keyword">const</span><spanclass="keywordtype">char</span>* filename) {</div>
<divclass="line"><aname="l00322"></a><spanclass="lineno"> 322</span> <spanclass="comment"> /** Dumps particle IDs and positions to a file.</span></div>
<divclass="line"><aname="l00323"></a><spanclass="lineno"> 323</span> <spanclass="comment"> * \param[in] vl the loop class to use.</span></div>
<divclass="line"><aname="l00324"></a><spanclass="lineno"> 324</span> <spanclass="comment"> * \param[in] fp a file handle to write to. */</span></div>
<divclass="line"><aname="l00333"></a><spanclass="lineno"> 333</span> <spanclass="comment"> /** Dumps all of the particle IDs and positions to a file.</span></div>
<divclass="line"><aname="l00334"></a><spanclass="lineno"> 334</span> <spanclass="comment"> * \param[in] fp a file handle to write to. */</span></div>
<divclass="line"><aname="l00336"></a><spanclass="lineno"> 336</span> <aclass="code"href="classvoro_1_1c__loop__all.html"title="Class for looping over all of the particles in a container.">c_loop_all</a> vl(*<spanclass="keyword">this</span>);</div>
<divclass="line"><aname="l00339"></a><spanclass="lineno"> 339</span> <spanclass="comment"> /** Dumps all of the particle IDs and positions to a file.</span></div>
<divclass="line"><aname="l00340"></a><spanclass="lineno"> 340</span> <spanclass="comment"> * \param[in] filename the name of the file to write to. */</span></div>
<divclass="line"><aname="l00346"></a><spanclass="lineno"> 346</span> <spanclass="comment"> /** Dumps particle positions in POV-Ray format.</span></div>
<divclass="line"><aname="l00347"></a><spanclass="lineno"> 347</span> <spanclass="comment"> * \param[in] vl the loop class to use.</span></div>
<divclass="line"><aname="l00348"></a><spanclass="lineno"> 348</span> <spanclass="comment"> * \param[in] fp a file handle to write to. */</span></div>
<divclass="line"><aname="l00354"></a><spanclass="lineno"> 354</span>  fprintf(fp,<spanclass="stringliteral">"// id %d\nsphere{<%g,%g,%g>,s}\n"</span>,</div>
<divclass="line"><aname="l00358"></a><spanclass="lineno"> 358</span> <spanclass="comment"> /** Dumps all particle positions in POV-Ray format.</span></div>
<divclass="line"><aname="l00359"></a><spanclass="lineno"> 359</span> <spanclass="comment"> * \param[in] fp a file handle to write to. */</span></div>
<divclass="line"><aname="l00361"></a><spanclass="lineno"> 361</span> <aclass="code"href="classvoro_1_1c__loop__all.html"title="Class for looping over all of the particles in a container.">c_loop_all</a> vl(*<spanclass="keyword">this</span>);</div>
<divclass="line"><aname="l00364"></a><spanclass="lineno"> 364</span> <spanclass="comment"> /** Dumps all particle positions in POV-Ray format.</span></div>
<divclass="line"><aname="l00365"></a><spanclass="lineno"> 365</span> <spanclass="comment"> * \param[in] filename the name of the file to write to. */</span></div>
<divclass="line"><aname="l00371"></a><spanclass="lineno"> 371</span> <spanclass="comment"> /** Computes Voronoi cells and saves the output in gnuplot</span></div>
<divclass="line"><aname="l00373"></a><spanclass="lineno"> 373</span> <spanclass="comment"> * \param[in] vl the loop class to use.</span></div>
<divclass="line"><aname="l00374"></a><spanclass="lineno"> 374</span> <spanclass="comment"> * \param[in] fp a file handle to write to. */</span></div>
<divclass="line"><aname="l00377"></a><spanclass="lineno"> 377</span> <aclass="code"href="classvoro_1_1voronoicell.html"title="Extension of the voronoicell_base class to represent a Voronoi cell without neighbor information...">voronoicell</a> c;<spanclass="keywordtype">double</span> *pp;</div>
<divclass="line"><aname="l00383"></a><spanclass="lineno"> 383</span> <spanclass="comment"> /** Computes all Voronoi cells and saves the output in gnuplot</span></div>
<divclass="line"><aname="l00385"></a><spanclass="lineno"> 385</span> <spanclass="comment"> * \param[in] fp a file handle to write to. */</span></div>
<divclass="line"><aname="l00387"></a><spanclass="lineno"> 387</span> <aclass="code"href="classvoro_1_1c__loop__all.html"title="Class for looping over all of the particles in a container.">c_loop_all</a> vl(*<spanclass="keyword">this</span>);</div>
<divclass="line"><aname="l00390"></a><spanclass="lineno"> 390</span> <spanclass="comment"> /** Computes all Voronoi cells and saves the output in gnuplot</span></div>
<divclass="line"><aname="l00392"></a><spanclass="lineno"> 392</span> <spanclass="comment"> * \param[in] filename the name of the file to write to. */</span></div>
<divclass="line"><aname="l00398"></a><spanclass="lineno"> 398</span> <spanclass="comment"> /** Computes Voronoi cells and saves the output in POV-Ray</span></div>
<divclass="line"><aname="l00400"></a><spanclass="lineno"> 400</span> <spanclass="comment"> * \param[in] vl the loop class to use.</span></div>
<divclass="line"><aname="l00401"></a><spanclass="lineno"> 401</span> <spanclass="comment"> * \param[in] fp a file handle to write to. */</span></div>
<divclass="line"><aname="l00404"></a><spanclass="lineno"> 404</span> <aclass="code"href="classvoro_1_1voronoicell.html"title="Extension of the voronoicell_base class to represent a Voronoi cell without neighbor information...">voronoicell</a> c;<spanclass="keywordtype">double</span> *pp;</div>
<divclass="line"><aname="l00411"></a><spanclass="lineno"> 411</span> <spanclass="comment"> /** Computes all Voronoi cells and saves the output in POV-Ray</span></div>
<divclass="line"><aname="l00413"></a><spanclass="lineno"> 413</span> <spanclass="comment"> * \param[in] fp a file handle to write to. */</span></div>
<divclass="line"><aname="l00415"></a><spanclass="lineno"> 415</span> <aclass="code"href="classvoro_1_1c__loop__all.html"title="Class for looping over all of the particles in a container.">c_loop_all</a> vl(*<spanclass="keyword">this</span>);</div>
<divclass="line"><aname="l00418"></a><spanclass="lineno"> 418</span> <spanclass="comment"> /** Computes all Voronoi cells and saves the output in POV-Ray</span></div>
<divclass="line"><aname="l00420"></a><spanclass="lineno"> 420</span> <spanclass="comment"> * \param[in] filename the name of the file to write to. */</span></div>
<divclass="line"><aname="l00426"></a><spanclass="lineno"> 426</span> <spanclass="comment"> /** Computes the Voronoi cells and saves customized information</span></div>
<divclass="line"><aname="l00427"></a><spanclass="lineno"> 427</span> <spanclass="comment"> * about them.</span></div>
<divclass="line"><aname="l00428"></a><spanclass="lineno"> 428</span> <spanclass="comment"> * \param[in] vl the loop class to use.</span></div>
<divclass="line"><aname="l00429"></a><spanclass="lineno"> 429</span> <spanclass="comment"> * \param[in] format the custom output string to use.</span></div>
<divclass="line"><aname="l00430"></a><spanclass="lineno"> 430</span> <spanclass="comment"> * \param[in] fp a file handle to write to. */</span></div>
<divclass="line"><aname="l00435"></a><spanclass="lineno"> 435</span> <aclass="code"href="classvoro_1_1voronoicell__neighbor.html"title="Extension of the voronoicell_base class to represent a Voronoi cell with neighbor information...">voronoicell_neighbor</a> c;</div>
<divclass="line"><aname="l00441"></a><spanclass="lineno"> 441</span> <aclass="code"href="classvoro_1_1voronoicell.html"title="Extension of the voronoicell_base class to represent a Voronoi cell without neighbor information...">voronoicell</a> c;</div>
<divclass="line"><aname="l00451"></a><spanclass="lineno"> 451</span> <spanclass="comment"> /** Computes the Voronoi cell for a particle currently being</span></div>
<divclass="line"><aname="l00452"></a><spanclass="lineno"> 452</span> <spanclass="comment"> * referenced by a loop class.</span></div>
<divclass="line"><aname="l00453"></a><spanclass="lineno"> 453</span> <spanclass="comment"> * \param[out] c a Voronoi cell class in which to store the</span></div>
<divclass="line"><aname="l00455"></a><spanclass="lineno"> 455</span> <spanclass="comment"> * \param[in] vl the loop class to use.</span></div>
<divclass="line"><aname="l00456"></a><spanclass="lineno"> 456</span> <spanclass="comment"> * \return True if the cell was computed. If the cell cannot be</span></div>
<divclass="line"><aname="l00457"></a><spanclass="lineno"> 457</span> <spanclass="comment"> * computed, if it is removed entirely by a wall or boundary</span></div>
<divclass="line"><aname="l00458"></a><spanclass="lineno"> 458</span> <spanclass="comment"> * condition, then the routine returns false. */</span></div>
<divclass="line"><aname="l00463"></a><spanclass="lineno"> 463</span> <spanclass="comment"> /** Computes the Voronoi cell for given particle.</span></div>
<divclass="line"><aname="l00464"></a><spanclass="lineno"> 464</span> <spanclass="comment"> * \param[out] c a Voronoi cell class in which to store the</span></div>
<divclass="line"><aname="l00466"></a><spanclass="lineno"> 466</span> <spanclass="comment"> * \param[in] ijk the block that the particle is within.</span></div>
<divclass="line"><aname="l00467"></a><spanclass="lineno"> 467</span> <spanclass="comment"> * \param[in] q the index of the particle within the block.</span></div>
<divclass="line"><aname="l00468"></a><spanclass="lineno"> 468</span> <spanclass="comment"> * \return True if the cell was computed. If the cell cannot be</span></div>
<divclass="line"><aname="l00469"></a><spanclass="lineno"> 469</span> <spanclass="comment"> * computed, if it is removed entirely by a wall or boundary</span></div>
<divclass="line"><aname="l00470"></a><spanclass="lineno"> 470</span> <spanclass="comment"> * condition, then the routine returns false. */</span></div>
<divclass="line"><aname="l00478"></a><spanclass="lineno"> 478</span> <spanclass="keyword">friend</span><spanclass="keyword">class </span><aclass="code"href="classvoro_1_1voro__compute.html"title="Template for carrying out Voronoi cell computations.">voro_compute</a><<aclass="code"href="classvoro_1_1container.html"title="Extension of the container_base class for computing regular Voronoi tessellations.">container</a>>;</div>
<divclass="line"><aname="l00481"></a><spanclass="lineno"> 481</span> <spanclass="comment">/** \brief Extension of the container_base class for computing radical Voronoi</span></div>
<divclass="line"><aname="l00484"></a><spanclass="lineno"> 484</span> <spanclass="comment"> * This class is an extension of container_base class that has routines</span></div>
<divclass="line"><aname="l00485"></a><spanclass="lineno"> 485</span> <spanclass="comment"> * specifically for computing the radical Voronoi tessellation that depends on</span></div>
<divclass="line"><aname="l00486"></a><spanclass="lineno"> 486</span> <spanclass="comment"> * the particle radii. */</span></div>
<divclass="line"><aname="l00487"></a><spanclass="lineno"><aclass="code"href="classvoro_1_1container__poly.html"> 487</a></span> <spanclass="keyword">class </span><aclass="code"href="classvoro_1_1container__poly.html"title="Extension of the container_base class for computing radical Voronoi tessellations.">container_poly</a> : <spanclass="keyword">public</span><aclass="code"href="classvoro_1_1container__base.html"title="Class for representing a particle system in a three-dimensional rectangular box.">container_base</a>, <spanclass="keyword">public</span><aclass="code"href="classvoro_1_1radius__poly.html"title="Class containing all of the routines that are specific to computing the radical Voronoi tessellation...">radius_poly</a> {</div>
<divclass="line"><aname="l00493"></a><spanclass="lineno"> 493</span> <spanclass="keywordtype">void</span><aclass="code"href="classvoro_1_1container__poly.html#a61689312fb6f8ee36f1fbb0fe00e4fe3">put</a>(<aclass="code"href="classvoro_1_1particle__order.html"title="A class for storing ordering information when particles are added to a container.">particle_order</a>&vo,<spanclass="keywordtype">int</span> n,<spanclass="keywordtype">double</span> x,<spanclass="keywordtype">double</span> y,<spanclass="keywordtype">double</span> z,<spanclass="keywordtype">double</span> r);</div>
<divclass="line"><aname="l00495"></a><spanclass="lineno"> 495</span> <spanclass="keywordtype">void</span><spanclass="keyword">import</span>(<aclass="code"href="classvoro_1_1particle__order.html"title="A class for storing ordering information when particles are added to a container.">particle_order</a>&vo,FILE *fp=stdin);<spanclass="comment"></span></div>
<divclass="line"><aname="l00496"></a><spanclass="lineno"> 496</span> <spanclass="comment"> /** Imports a list of particles from an open file stream into</span></div>
<divclass="line"><aname="l00497"></a><spanclass="lineno"> 497</span> <spanclass="comment"> * the container_poly class. Entries of five numbers (Particle</span></div>
<divclass="line"><aname="l00498"></a><spanclass="lineno"> 498</span> <spanclass="comment"> * ID, x position, y position, z position, radius) are searched</span></div>
<divclass="line"><aname="l00499"></a><spanclass="lineno"> 499</span> <spanclass="comment"> * for. If the file cannot be successfully read, then the</span></div>
<divclass="line"><aname="l00500"></a><spanclass="lineno"> 500</span> <spanclass="comment"> * routine causes a fatal error.</span></div>
<divclass="line"><aname="l00501"></a><spanclass="lineno"> 501</span> <spanclass="comment"> * \param[in] filename the name of the file to open and read</span></div>
<divclass="line"><aname="l00508"></a><spanclass="lineno"> 508</span> <spanclass="comment"> /** Imports a list of particles from an open file stream into</span></div>
<divclass="line"><aname="l00509"></a><spanclass="lineno"> 509</span> <spanclass="comment"> * the container_poly class. Entries of five numbers (Particle</span></div>
<divclass="line"><aname="l00510"></a><spanclass="lineno"> 510</span> <spanclass="comment"> * ID, x position, y position, z position, radius) are searched</span></div>
<divclass="line"><aname="l00511"></a><spanclass="lineno"> 511</span> <spanclass="comment"> * for. In addition, the order in which particles are read is</span></div>
<divclass="line"><aname="l00512"></a><spanclass="lineno"> 512</span> <spanclass="comment"> * saved into an ordering class. If the file cannot be</span></div>
<divclass="line"><aname="l00513"></a><spanclass="lineno"> 513</span> <spanclass="comment"> * successfully read, then the routine causes a fatal error.</span></div>
<divclass="line"><aname="l00514"></a><spanclass="lineno"> 514</span> <spanclass="comment"> * \param[in,out] vo the ordering class to use.</span></div>
<divclass="line"><aname="l00515"></a><spanclass="lineno"> 515</span> <spanclass="comment"> * \param[in] filename the name of the file to open and read</span></div>
<divclass="line"><aname="l00517"></a><spanclass="lineno"><aclass="code"href="classvoro_1_1container__poly.html#af897ea09b80064d4b492862884ba316c"> 517</a></span> <spanclass="keyword">inline</span><spanclass="keywordtype">void</span><spanclass="keyword">import</span>(<aclass="code"href="classvoro_1_1particle__order.html"title="A class for storing ordering information when particles are added to a container.">particle_order</a>&vo,<spanclass="keyword">const</span><spanclass="keywordtype">char</span>* filename) {</div>
<divclass="line"><aname="l00524"></a><spanclass="lineno"> 524</span> <spanclass="comment"> /** Dumps particle IDs, positions and radii to a file.</span></div>
<divclass="line"><aname="l00525"></a><spanclass="lineno"> 525</span> <spanclass="comment"> * \param[in] vl the loop class to use.</span></div>
<divclass="line"><aname="l00526"></a><spanclass="lineno"> 526</span> <spanclass="comment"> * \param[in] fp a file handle to write to. */</span></div>
<divclass="line"><aname="l00535"></a><spanclass="lineno"> 535</span> <spanclass="comment"> /** Dumps all of the particle IDs, positions and radii to a</span></div>
<divclass="line"><aname="l00537"></a><spanclass="lineno"> 537</span> <spanclass="comment"> * \param[in] fp a file handle to write to. */</span></div>
<divclass="line"><aname="l00539"></a><spanclass="lineno"> 539</span> <aclass="code"href="classvoro_1_1c__loop__all.html"title="Class for looping over all of the particles in a container.">c_loop_all</a> vl(*<spanclass="keyword">this</span>);</div>
<divclass="line"><aname="l00542"></a><spanclass="lineno"> 542</span> <spanclass="comment"> /** Dumps all of the particle IDs, positions and radii to a</span></div>
<divclass="line"><aname="l00544"></a><spanclass="lineno"> 544</span> <spanclass="comment"> * \param[in] filename the name of the file to write to. */</span></div>
<divclass="line"><aname="l00550"></a><spanclass="lineno"> 550</span> <spanclass="comment"> /** Dumps particle positions in POV-Ray format.</span></div>
<divclass="line"><aname="l00551"></a><spanclass="lineno"> 551</span> <spanclass="comment"> * \param[in] vl the loop class to use.</span></div>
<divclass="line"><aname="l00552"></a><spanclass="lineno"> 552</span> <spanclass="comment"> * \param[in] fp a file handle to write to. */</span></div>
<divclass="line"><aname="l00558"></a><spanclass="lineno"> 558</span>  fprintf(fp,<spanclass="stringliteral">"// id %d\nsphere{<%g,%g,%g>,%g}\n"</span>,</div>
<divclass="line"><aname="l00562"></a><spanclass="lineno"> 562</span> <spanclass="comment"> /** Dumps all the particle positions in POV-Ray format.</span></div>
<divclass="line"><aname="l00563"></a><spanclass="lineno"> 563</span> <spanclass="comment"> * \param[in] fp a file handle to write to. */</span></div>
<divclass="line"><aname="l00565"></a><spanclass="lineno"> 565</span> <aclass="code"href="classvoro_1_1c__loop__all.html"title="Class for looping over all of the particles in a container.">c_loop_all</a> vl(*<spanclass="keyword">this</span>);</div>
<divclass="line"><aname="l00568"></a><spanclass="lineno"> 568</span> <spanclass="comment"> /** Dumps all the particle positions in POV-Ray format.</span></div>
<divclass="line"><aname="l00569"></a><spanclass="lineno"> 569</span> <spanclass="comment"> * \param[in] filename the name of the file to write to. */</span></div>
<divclass="line"><aname="l00575"></a><spanclass="lineno"> 575</span> <spanclass="comment"> /** Computes Voronoi cells and saves the output in gnuplot</span></div>
<divclass="line"><aname="l00577"></a><spanclass="lineno"> 577</span> <spanclass="comment"> * \param[in] vl the loop class to use.</span></div>
<divclass="line"><aname="l00578"></a><spanclass="lineno"> 578</span> <spanclass="comment"> * \param[in] fp a file handle to write to. */</span></div>
<divclass="line"><aname="l00581"></a><spanclass="lineno"> 581</span> <aclass="code"href="classvoro_1_1voronoicell.html"title="Extension of the voronoicell_base class to represent a Voronoi cell without neighbor information...">voronoicell</a> c;<spanclass="keywordtype">double</span> *pp;</div>
<divclass="line"><aname="l00587"></a><spanclass="lineno"> 587</span> <spanclass="comment"> /** Compute all Voronoi cells and saves the output in gnuplot</span></div>
<divclass="line"><aname="l00589"></a><spanclass="lineno"> 589</span> <spanclass="comment"> * \param[in] fp a file handle to write to. */</span></div>
<divclass="line"><aname="l00591"></a><spanclass="lineno"> 591</span> <aclass="code"href="classvoro_1_1c__loop__all.html"title="Class for looping over all of the particles in a container.">c_loop_all</a> vl(*<spanclass="keyword">this</span>);</div>
<divclass="line"><aname="l00594"></a><spanclass="lineno"> 594</span> <spanclass="comment"> /** Compute all Voronoi cells and saves the output in gnuplot</span></div>
<divclass="line"><aname="l00596"></a><spanclass="lineno"> 596</span> <spanclass="comment"> * \param[in] filename the name of the file to write to. */</span></div>
<divclass="line"><aname="l00602"></a><spanclass="lineno"> 602</span> <spanclass="comment"> /** Computes Voronoi cells and saves the output in POV-Ray</span></div>
<divclass="line"><aname="l00604"></a><spanclass="lineno"> 604</span> <spanclass="comment"> * \param[in] vl the loop class to use.</span></div>
<divclass="line"><aname="l00605"></a><spanclass="lineno"> 605</span> <spanclass="comment"> * \param[in] fp a file handle to write to. */</span></div>
<divclass="line"><aname="l00608"></a><spanclass="lineno"> 608</span> <aclass="code"href="classvoro_1_1voronoicell.html"title="Extension of the voronoicell_base class to represent a Voronoi cell without neighbor information...">voronoicell</a> c;<spanclass="keywordtype">double</span> *pp;</div>
<divclass="line"><aname="l00615"></a><spanclass="lineno"> 615</span> <spanclass="comment"> /** Computes all Voronoi cells and saves the output in POV-Ray</span></div>
<divclass="line"><aname="l00617"></a><spanclass="lineno"> 617</span> <spanclass="comment"> * \param[in] fp a file handle to write to. */</span></div>
<divclass="line"><aname="l00619"></a><spanclass="lineno"> 619</span> <aclass="code"href="classvoro_1_1c__loop__all.html"title="Class for looping over all of the particles in a container.">c_loop_all</a> vl(*<spanclass="keyword">this</span>);</div>
<divclass="line"><aname="l00622"></a><spanclass="lineno"> 622</span> <spanclass="comment"> /** Computes all Voronoi cells and saves the output in POV-Ray</span></div>
<divclass="line"><aname="l00624"></a><spanclass="lineno"> 624</span> <spanclass="comment"> * \param[in] filename the name of the file to write to. */</span></div>
<divclass="line"><aname="l00630"></a><spanclass="lineno"> 630</span> <spanclass="comment"> /** Computes the Voronoi cells and saves customized information</span></div>
<divclass="line"><aname="l00631"></a><spanclass="lineno"> 631</span> <spanclass="comment"> * about them.</span></div>
<divclass="line"><aname="l00632"></a><spanclass="lineno"> 632</span> <spanclass="comment"> * \param[in] vl the loop class to use.</span></div>
<divclass="line"><aname="l00633"></a><spanclass="lineno"> 633</span> <spanclass="comment"> * \param[in] format the custom output string to use.</span></div>
<divclass="line"><aname="l00634"></a><spanclass="lineno"> 634</span> <spanclass="comment"> * \param[in] fp a file handle to write to. */</span></div>
<divclass="line"><aname="l00639"></a><spanclass="lineno"> 639</span> <aclass="code"href="classvoro_1_1voronoicell__neighbor.html"title="Extension of the voronoicell_base class to represent a Voronoi cell with neighbor information...">voronoicell_neighbor</a> c;</div>
<divclass="line"><aname="l00645"></a><spanclass="lineno"> 645</span> <aclass="code"href="classvoro_1_1voronoicell.html"title="Extension of the voronoicell_base class to represent a Voronoi cell without neighbor information...">voronoicell</a> c;</div>
<divclass="line"><aname="l00652"></a><spanclass="lineno"> 652</span> <spanclass="comment"> /** Computes the Voronoi cell for a particle currently being</span></div>
<divclass="line"><aname="l00653"></a><spanclass="lineno"> 653</span> <spanclass="comment"> * referenced by a loop class.</span></div>
<divclass="line"><aname="l00654"></a><spanclass="lineno"> 654</span> <spanclass="comment"> * \param[out] c a Voronoi cell class in which to store the</span></div>
<divclass="line"><aname="l00656"></a><spanclass="lineno"> 656</span> <spanclass="comment"> * \param[in] vl the loop class to use.</span></div>
<divclass="line"><aname="l00657"></a><spanclass="lineno"> 657</span> <spanclass="comment"> * \return True if the cell was computed. If the cell cannot be</span></div>
<divclass="line"><aname="l00658"></a><spanclass="lineno"> 658</span> <spanclass="comment"> * computed, if it is removed entirely by a wall or boundary</span></div>
<divclass="line"><aname="l00659"></a><spanclass="lineno"> 659</span> <spanclass="comment"> * condition, then the routine returns false. */</span></div>
<divclass="line"><aname="l00664"></a><spanclass="lineno"> 664</span> <spanclass="comment"> /** Computes the Voronoi cell for given particle.</span></div>
<divclass="line"><aname="l00665"></a><spanclass="lineno"> 665</span> <spanclass="comment"> * \param[out] c a Voronoi cell class in which to store the</span></div>
<divclass="line"><aname="l00667"></a><spanclass="lineno"> 667</span> <spanclass="comment"> * \param[in] ijk the block that the particle is within.</span></div>
<divclass="line"><aname="l00668"></a><spanclass="lineno"> 668</span> <spanclass="comment"> * \param[in] q the index of the particle within the block.</span></div>
<divclass="line"><aname="l00669"></a><spanclass="lineno"> 669</span> <spanclass="comment"> * \return True if the cell was computed. If the cell cannot be</span></div>
<divclass="line"><aname="l00670"></a><spanclass="lineno"> 670</span> <spanclass="comment"> * computed, if it is removed entirely by a wall or boundary</span></div>
<divclass="line"><aname="l00671"></a><spanclass="lineno"> 671</span> <spanclass="comment"> * condition, then the routine returns false. */</span></div>
<divclass="line"><aname="l00682"></a><spanclass="lineno"> 682</span> <spanclass="keyword">friend</span><spanclass="keyword">class </span><aclass="code"href="classvoro_1_1voro__compute.html"title="Template for carrying out Voronoi cell computations.">voro_compute</a><<aclass="code"href="classvoro_1_1container__poly.html"title="Extension of the container_base class for computing radical Voronoi tessellations.">container_poly</a>>;</div>