Package gov.nih.mipav.model.structures
Class Voro.pre_container_poly
java.lang.Object
gov.nih.mipav.model.structures.Voro.pre_container_base
gov.nih.mipav.model.structures.Voro.pre_container_poly
- Enclosing class:
Voro
\brief A class for storing an arbitrary number of particles with radius
information, prior to setting up a container geometry.
The pre_container_poly class is an extension of the pre_container_base class
for cases when particle radius information is available.
-
Field Summary
-
Constructor Summary
ConstructorsConstructorDescriptionpre_container_poly(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, also storing the order of that the particles are read.voidimportList(String filename) Imports particles from a file.voidput(int n, double x, double y, double z, double r) Stores a particle ID and position, allocating a new memory chunk if necessary.voidTransfers the particles stored within the class to a container_poly class.voidTransfers the particles stored within the class to a container_poly 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_poly
public pre_container_poly(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, double r) Stores a particle ID and position, allocating a new memory chunk if necessary. \param[in] n the numerical ID of the inserted particle. \param[in] (x,y,z) the position vector of the inserted particle. \param[in] r the radius of the particle. -
importList
Import a list of particles from an open file stream, also storing the order of that the particles are read. 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_poly class. \param[in] con the container_poly class to transfer to. -
setup
Transfers the particles stored within the class to a container_poly class, also recording the order in which particles were stored. \param[in] vo the ordering class to use. \param[in] con the container_poly class to transfer to.
-