Class Voro.c_loop_order

  • Enclosing class:
    Voro

    class Voro.c_loop_order
    extends Voro.c_loop_base
    \brief Class for looping over all of the particles specified in a pre-assembled particle_order class. The particle_order class can be used to create a specific order of particles within the container. This class can then loop over these particles in this order. The class is particularly useful in cases where the ordering of the output must match the ordering of particles as they were inserted into the container.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      int[] cp
      A pointer to the current position in the ordering class.
      private int nx
      The number of computational blocks in the x direction.
      private int nxy
      The number of computational blocks in a z-slice.
      Voro.particle_order vo
      A reference to the ordering class to use.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      private void decode()
      Takes the current block index and computes indices in the x, y, and z directions.
      boolean inc()
      Finds the next particle to test.
      boolean start()
      Sets the class to consider the first particle.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • cp

        public int[] cp
        A pointer to the current position in the ordering class.
      • nx

        private int nx
        The number of computational blocks in the x direction.
      • nxy

        private int nxy
        The number of computational blocks in a z-slice.
    • Method Detail

      • start

        public boolean start()
        Sets the class to consider the first particle. \return True if there is any particle to consider, false otherwise.
      • inc

        public boolean inc()
        Finds the next particle to test. \return True if there is another particle, false if no more particles are available.
      • decode

        private void decode()
        Takes the current block index and computes indices in the x, y, and z directions.