AnalyzeBonds

class AnalyzeBonds : public feasst::Analyze

Compute the distribution and moments of each type of bond and angle.

Public Functions

void update(const MonteCarlo &mc)

Perform update action.

void initialize(MonteCarlo *mc)

Initialize and precompute before trials.

const Accumulator &bond(const int type) const

Return the average bond length.

const Accumulator &angle(const int type) const

Return the average angle in radians.

const Accumulator &dihedral(const int type) const

Return the average dihedral in radians.

const Histogram &bond_hist(const int type) const

Return the histogram of bond length.

const Histogram &angle_hist(const int type) const

Return the histogram of angle in radians.

const Histogram &dihedral_hist(const int type) const

Return the histogram of dihedral in radians.

std::string write(const MonteCarlo &mc)

Perform write action.

Arguments

  • bond_bin_width: bin width for bond histogram (default: 1).

  • bond_bin_center: center of first bin in bond histogram (default: 0).

  • angle_bin_width: bin width for angle histogram in units of radians. (default: 0.01).

  • angle_bin_center: center of first bin in angle histogram (default: 0).

  • dihedral_bin_width: bin width for dihedral histogram in units of radians. (default: 0.01).

  • dihedral_bin_center: center of first bin in dihedral histogram (default: 0).

  • Stepper arguments.