UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
voro::pre_container_poly Class Reference

A class for storing an arbitrary number of particles with radius information, prior to setting up a container geometry. More...

#include <pre_container.hh>

+ Inheritance diagram for voro::pre_container_poly:

Public Member Functions

 pre_container_poly (double ax_, double bx_, double ay_, double by_, double az_, double bz_, bool xperiodic_, bool yperiodic_, bool zperiodic_)
 
void put (int n, double x, double y, double z, double r)
 
void setup (container_poly &con)
 
void setup (particle_order &vo, container_poly &con)
 
- Public Member Functions inherited from voro::pre_container_base
void guess_optimal (int &nx, int &ny, int &nz)
 
 pre_container_base (double ax_, double bx_, double ay_, double by_, double az_, double bz_, bool xperiodic_, bool yperiodic_, bool zperiodic_, int ps_)
 
 ~pre_container_base ()
 
PRAGMA_DISABLE_UNSAFE_TYPECAST_WARNINGS int total_particles ()
 

Additional Inherited Members

- Public Attributes inherited from voro::pre_container_base
const double ax
 
const double bx
 
const double ay
 
const double by
 
const double az
 
const double bz
 
const bool xperiodic
 
const bool yperiodic
 
const bool zperiodic
 
- Protected Member Functions inherited from voro::pre_container_base
void new_chunk ()
 
void extend_chunk_index ()
 
- Protected Attributes inherited from voro::pre_container_base
const int ps
 
int index_sz
 
int ** pre_id
 
int ** end_id
 
int ** l_id
 
int * ch_id
 
int * e_id
 
double ** pre_p
 
double ** end_p
 
doublech_p
 

Detailed Description

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.

Constructor & Destructor Documentation

◆ pre_container_poly()

voro::pre_container_poly::pre_container_poly ( double  ax_,
double  bx_,
double  ay_,
double  by_,
double  az_,
double  bz_,
bool  xperiodic_,
bool  yperiodic_,
bool  zperiodic_ 
)
inline

The class constructor sets up the geometry of container, initializing the minimum and maximum coordinates in each direction.

Parameters
[in](ax_,bx_)the minimum and maximum x coordinates.
[in](ay_,by_)the minimum and maximum y coordinates.
[in](az_,bz_)the minimum and maximum z coordinates.
[in](xperiodic_,yperiodic_,zperiodic_) flags setting whether the container is periodic in each coordinate direction.

Member Function Documentation

◆ put()

void voro::pre_container_poly::put ( int  n,
double  x,
double  y,
double  z,
double  r 
)

Stores a particle ID and position, allocating a new memory chunk if necessary.

Parameters
[in]nthe numerical ID of the inserted particle.
[in](x,y,z)the position vector of the inserted particle.
[in]rthe radius of the particle.

◆ setup() [1/2]

void voro::pre_container_poly::setup ( container_poly con)

Transfers the particles stored within the class to a container_poly class.

Parameters
[in]conthe container_poly class to transfer to.

◆ setup() [2/2]

void voro::pre_container_poly::setup ( particle_order vo,
container_poly con 
)

Transfers the particles stored within the class to a container_poly class, also recording the order in which particles were stored.

Parameters
[in]vothe ordering class to use.
[in]conthe container_poly class to transfer to.

The documentation for this class was generated from the following files: