ESPResSo 3.2.0-11-g9950804-git
Extensible Simulation Package for Soft Matter Research
Functions
statistics_molecule.c File Reference

see statistics_molecule.h More...

#include "statistics_molecule.h"
#include "errorhandling.h"
#include "grid.h"
Include dependency graph for statistics_molecule.c:

Go to the source code of this file.

Functions

int analyze_fold_molecules (float *coord, double shift[3])
 Using the topology information stored in topology::topology this routine foldes all particles belonging to a molecule such that the center of mass of the molecule is inside the simulation box.
double calc_mol_hydro_radius (Molecule mol)
void calc_mol_center_of_mass (Molecule mol, double com[3])
 Incorporates mass of each particle.
double calc_mol_gyr_radius2 (Molecule mol)
 Incorporates mass of each particle.

Detailed Description

see statistics_molecule.h

Definition in file statistics_molecule.c.


Function Documentation

int analyze_fold_molecules ( float *  coord,
double  shift[3] 
)

Using the topology information stored in topology::topology this routine foldes all particles belonging to a molecule such that the center of mass of the molecule is inside the simulation box.

Parameters:
coordis an array specifying the full coordinates of all particles. Particles must be stored in particle ID order in this array.
shiftis a vector specifying a shift for the entire system coordinates that is applied prior to folding: This is used for visualization purposes.

Definition at line 30 of file statistics_molecule.c.

References box_l, box_l_i, calc_mol_center_of_mass(), IntList::e, ERROR_SPRINTF, ES_DOUBLE_SPACE, ES_ERROR, ES_INTEGER_SPACE, ES_OK, i, IntList::n, n_molecules, Molecule::part, PERIODIC, runtime_error(), sortPartCfg(), and topology.

Referenced by tclcommand_analyze_parse_get_folded_positions(), and tclcommand_imd_parse_pos().

void calc_mol_center_of_mass ( Molecule  mol,
double  com[3] 
)

Incorporates mass of each particle.

Definition at line 97 of file statistics_molecule.c.

References IntList::e, i, IntList::n, Particle::p, Molecule::part, partCfg, and PMASS.

Referenced by analyze_fold_molecules(), and calc_mol_gyr_radius2().

double calc_mol_gyr_radius2 ( Molecule  mol)

Incorporates mass of each particle.

Definition at line 113 of file statistics_molecule.c.

References calc_mol_center_of_mass(), IntList::e, i, IntList::n, Particle::p, Molecule::part, partCfg, PMASS, sqrlen(), and vecsub().

double calc_mol_hydro_radius ( Molecule  mol)