McBead

SimulationBuilder > Shared > ParticleBuildingBlocks?

The basic building block of composite particles in Monte Carlo (MC) simulations. These beads are meant to model spheres with arbitrary connectivity and interactions. Below is an example of McBeads being used to create a banana shaped particle.

Synopsis

#include <glotzilla++.h>

class Boomerang : public McParticle
{
        public: 
                Boomerang()
                {
                        McBead* b1 = new McBead;
                        b1 -> SetPosition ( 0.0, 1.0, 0.0);
                        AddBead (b1);

                        McBead* b2 = new McBead;
                        b2 -> SetPosition ( 0.0, 0.0, 0.0);
                        AddBead (b2);

                        McBead* b3 = new McBead;
                        b3 -> SetPosition ( 0.87, -0.5, 0.0);
                        AddBead (b3);

                }
};