Package gov.nih.mipav.model.structures
Class Voro.pre_container
java.lang.Object
gov.nih.mipav.model.structures.Voro.pre_container_base
gov.nih.mipav.model.structures.Voro.pre_container
- Enclosing class:
Voro
\brief A class for storing an arbitrary number of particles without radius
information, prior to setting up a container geometry.
The pre_container class is an extension of the pre_container_base class for
cases when no particle radius information is available.
-
Field Summary
-
Constructor Summary
ConstructorsConstructorDescriptionpre_container(double ax_, double bx_, double ay_, double by_, double az_, double bz_, boolean xperiodic_, boolean yperiodic_, boolean zperiodic_) The class constructor sets up the geometry of container, initializing the minimum and maximum coordinates in each direction. -
Method Summary
Modifier and TypeMethodDescriptionvoidimportList(File fp) Import a list of particles from an open file stream into the container.voidimportList(String filename) Imports particles from a file.voidput(int n, double x, double y, double z) Stores a particle ID and position, allocating a new memory chunk if necessary.voidTransfers the particles stored within the class to a container class.voidTransfers the particles stored within the class to a container class, also recording the order in which particles were stored.Methods inherited from class gov.nih.mipav.model.structures.Voro.pre_container_base
delete, extend_chunk_index, guess_optimal, new_chunk, total_particles
-
Constructor Details
-
pre_container
public pre_container(double ax_, double bx_, double ay_, double by_, double az_, double bz_, boolean xperiodic_, boolean yperiodic_, boolean zperiodic_) The class constructor sets up the geometry of container, initializing the minimum and maximum coordinates in each direction. \param[in] (ax_,bx_) the minimum and maximum x coordinates. \param[in] (ay_,by_) the minimum and maximum y coordinates. \param[in] (az_,bz_) the minimum and maximum z coordinates. \param[in] (xperiodic_,yperiodic_,zperiodic_ ) flags setting whether the container is periodic in each coordinate direction.
-
-
Method Details
-
put
public void put(int n, double x, double y, double z) Stores a particle ID and position, allocating a new memory chunk if necessary. For coordinate directions in which the container is not periodic, the routine checks to make sure that the particle is within the container bounds. If the particle is out of bounds, it is not stored. \param[in] n the numerical ID of the inserted particle. \param[in] (x,y,z) the position vector of the inserted particle. -
importList
Import a list of particles from an open file stream into the container. Entries of four numbers (Particle ID, x position, y position, z position) are searched for. If the file cannot be successfully read, then the routine causes a fatal error. \param[in] fp the file handle to read from. -
importList
Imports particles from a file. \param[in] filename the name of the file to read from. -
setup
Transfers the particles stored within the class to a container class. \param[in] con the container class to transfer to. -
setup
Transfers the particles stored within the class to a container class, also recording the order in which particles were stored. \param[in] vo the ordering class to use. \param[in] con the container class to transfer to.
-