single_body.f90 File Reference

Go to the source code of this file.


program single_body
 Simulate a single colloidal rigid-body particle. More...
subroutine flag_particles
subroutine change_species
subroutine refuel
subroutine read_links (filename, n_links, links, links_d)
double precision function, dimension(3) get_unit_r ()
subroutine compute_cell_wise_max_v

Function/Subroutine Documentation

◆ change_species()

subroutine single_body::change_species ( )

Definition at line 891 of file single_body.f90.

◆ compute_cell_wise_max_v()

subroutine single_body::compute_cell_wise_max_v ( )

Definition at line 987 of file single_body.f90.

◆ flag_particles()

subroutine single_body::flag_particles ( )

Definition at line 864 of file single_body.f90.

◆ get_unit_r()

double precision function, dimension(3) single_body::get_unit_r ( )

Definition at line 969 of file single_body.f90.

◆ read_links()

subroutine single_body::read_links ( character(len=*), intent(in)  filename,
integer, intent(out)  n_links,
integer, dimension(:,:), intent(out), allocatable  links,
double precision, dimension(:), intent(out), allocatable  links_d 

Definition at line 938 of file single_body.f90.

◆ refuel()

subroutine single_body::refuel ( )

Definition at line 915 of file single_body.f90.

◆ single_body()

program single_body ( )

Simulate a single colloidal rigid-body particle.

This simulation models a chemically active colloid particle in either a periodic simulation box or with confinement in the y direction.

The coordinates of the colloid particle's beads must be provided in a H5MD file, as a "fixed-in-time" dataset. The body of the particle can operate as a rigid-body (with either RATTLE or quaternion dynamics) or as an elastic network.

Llength of simulation box in the 3 dimensions
rhofluid number density
TTemperature. Used for setting initial velocities and (if enabled) bulk thermostatting.
alphaangle of collision
do_hydroset to T for usual MPCD
do_thermostatenable thermostatting. mandatory if do_hydro=F
probabilityprobability to change A to B upon collision
bulk_raterate of B->A reaction
dtMD collision time
N_MDnumber MD steps occuring in tau
N_loopnumber of MPCD timesteps
collide_everyinterval for collision. the MPCD time tau is collide_every*n_MD*dt
colloid_samplinginterval (in MD steps) of sampling the colloid position and velocity
do_solvent_ioif true (T), a snapshot of the solvent in the final step is dump to the datafile
equilibration_loopsnumber of MPCD steps for equilibration
epsilon_Cinteraction parameter of C sphere with both solvent species (2 elements)
epsilon_Ninteraction parameter of N sphere with both solvent species (2 elements)
data_filenamefilename for input Janus coordinates
data_groupparticles group in the input file
epsilon_colloidinteraction parameter for colloid-colloid interactions
reaction_radiusradius for the reaction around the Janus particle
link_tresholddistance criterion for finding rigid-body links
do_read_linksread link information from a file
links_filefilename for the links data
do_rattleperform RATTLE
do_lennard_jonescompute colloid-colloid Lennard-Jones forces
do_elasticcompute colloid-colloid elastic network forces
elastic_kelastic constant for the elastic network
rattle_pos_toleranceabsolute tolerance for Rattle (position part)
rattle_vel_toleranceabsolute tolerance for Rattle (velocity part)
do_quaternionperform quaternion velocity Verlet
quaternion_tresholdtreshold for the iterative procedure for the quaternion integrator
sigmaradius of the colloidal beads for colloid-solvent interactions
sigma_colloidradius of the colloidal beads for colloid-colloid interactions
polar_r_maxmaximal radius for the polar fields
do_ywalluse a confining potential in the y direction, 9-3 Lennard-Jones
wall_sigmawall LJ sigma
wall_epsilonwall LJ epsilon
wall_shiftwall shift
fluid_wallboundary condition for the fluid
planar_sizeSize of planar field sampling region (length 2)
planar_nnumber of grid points for the planar field sampling (length 2)
coordinates_samplingouter-loop interval for storing the body's coordinates

Definition at line 58 of file single_body.f90.