seams-core v2.15.0
libyodaLib, the C++ engine of d-SEAMS
Loading...
Searching...
No Matches
smooth_cv.hpp File Reference

Differentiable ring, cage and gyration collective variables. More...

#include <array>
#include <cstddef>
#include <cstdint>
#include <vector>
#include <mol_sys.hpp>

Go to the source code of this file.

Classes

struct  smooth::RationalSwitch
 PLUMED RATIONAL switching function times a C2 taper. More...
struct  smooth::Topology
 Candidate rings, shortcut paths and hexagon pairs of one graph. More...
struct  smooth::Topology::HexPair
 Two vertex-disjoint candidate hexagons a < b that may pass the HC basal test. More...
class  smooth::Workspace
 Switch, candidate topology, rebuild reference and state clauses. More...

Namespaces

namespace  smooth
 Smooth collective variables on the primitive-ring network.

Typedefs

using smooth::Cloud = molSys::PointCloud<molSys::Point<double>, double>

Enumerations

enum class  smooth::Kind {
  smooth::RingCount = 0 , smooth::RingAtoms = 1 , smooth::HexBasalPairs = 2 , smooth::GyrationRg2 = 3 ,
  smooth::GyrationVolume = 4 , smooth::State = 5
}
 The collective variables of one frame, with their gradients. More...

Functions

RationalSwitch smooth::makeSwitch (double r0, double d0, int n, int m, double dOn, double dMax)
Topology smooth::buildTopology (const std::vector< std::vector< int > > &rows, int maxRing)
std::vector< double > smooth::ringWeights (const Topology &topo, const std::vector< double > &s)
 Ring weights for bond weights s, one per edge.
void smooth::ringWeightsAdjoint (const Topology &topo, const std::vector< double > &s, const std::vector< double > &wbar, std::vector< double > &sbar)
 Adds d(sum_k wbar[k] w[k]) / ds to sbar.
double smooth::hexBasalPairs (const Topology &topo, const std::vector< double > &s, const std::vector< double > &w, std::vector< double > *sbar, std::vector< double > *wbar)
std::vector< double > smooth::ringParticipation (const Topology &topo, const std::vector< double > &w, int size)
void smooth::ringParticipationAdjoint (const Topology &topo, const std::vector< double > &w, int size, const std::vector< double > &pbar, std::vector< double > &wbar)
 Adds d(sum_i pbar[i] p[i]) / dw to wbar.

Variables

constexpr int smooth::kMaxSwitchExponent = 4096
constexpr double smooth::kFlatEigenRatio = 1e-10
constexpr std::int64_t smooth::kMaxRingSearchSteps = 20000000
constexpr int smooth::kMaxCandidateRings = 2000000
constexpr std::int64_t smooth::kMaxShortcutSearchSteps = 20000000
constexpr int smooth::kMaxShortcutPaths = 2000000

Detailed Description

Differentiable ring, cage and gyration collective variables.

Definition in file smooth_cv.hpp.