|
MRMD 0.4.0
Multi Resolution Molecular Dynamics
|
Namespaces | |
| namespace | impl |
Classes | |
| struct | ArrayT |
| struct | Bond |
| struct | EnergyAndVirialReducer |
| struct | Histogram |
| struct | MPIInfo |
| struct | MultiHistogram |
| struct | Subdomain |
| |X|O|OOOOOOOOOO |X|O|OOOOOOOOOO |X|O+-------— <– minInnerCorner |X|OOOOOOOOOOOO |X+---------— <– minCorner |XXXXXXXXXXXXXX +-----------— <– minGhostCorner More... | |
Typedefs | |
| using | HostAtoms = impl::GeneralAtoms< HostType, false > |
| atoms with memory allocated on host | |
| using | DeviceAtoms = impl::GeneralAtoms< DeviceType, true > |
| atoms with memory allocated on device | |
| using | Atoms = DeviceAtoms |
| using | BondView = Kokkos::View< Bond * > |
| using | HostMolecules = impl::GeneralMolecules< HostType, false > |
| using | DeviceMolecules = impl::GeneralMolecules< DeviceType, true > |
| using | Molecules = DeviceMolecules |
| using mrmd::data::BondView = typedef Kokkos::View<Bond*> |
atoms with memory allocated on device
atoms with memory allocated on host
| ScalarView mrmd::data::createGrid | ( | const MultiHistogram & | input | ) |
| data::Molecules mrmd::data::createMoleculeForEachAtom | ( | data::Atoms & | atoms | ) |
| void mrmd::data::cumulativeMovingAverage | ( | data::MultiHistogram & | average, |
| const data::MultiHistogram & | current, | ||
| const real_t | movingAverageFactor = 10_r |
||
| ) |
Add new item to the comulative moving average.
| average | averaged histogram (output) |
| current | current value |
| movingAverageFactor | new value = (n * average + current) / (n + 1) |
| void mrmd::data::deep_copy | ( | impl::GeneralAtoms< DEVICE_TYPE_A, DEVICE_A > & | dst, |
| const impl::GeneralAtoms< DEVICE_TYPE_B, DEVICE_B > & | src | ||
| ) |
| void mrmd::data::deep_copy | ( | impl::GeneralMolecules< DEVICE_TYPE_A, DEVICE_A > & | dst, |
| const impl::GeneralMolecules< DEVICE_TYPE_B, DEVICE_B > & | src | ||
| ) |
| data::Histogram mrmd::data::gradient | ( | const data::Histogram & | input | ) |
| data::MultiHistogram mrmd::data::gradient | ( | const data::MultiHistogram & | input, |
| const bool | periodic = false |
||
| ) |
Calculates the gradient of the histogram.
Uses central difference for all inner values and one-sided/central difference for boundary values depending on periodicity.
| input | input histogram |
| periodic | treat boundaries as periodic |
| std::ostream & mrmd::data::operator<< | ( | std::ostream & | os, |
| const data::Histogram & | hist | ||
| ) |
Overload for writing to console/files.
| void mrmd::data::replace_if_bin_position | ( | MultiHistogram & | hist, |
| const Pred & | pred, | ||
| real_t | newValue | ||
| ) |
Replaces histogram values with a new value if the bin position satisfies a predicate.
| hist | The MultiHistogram object whose values will be conditionally replaced. |
| pred | A unary predicate function that is evaluated for each bin position. If it returns true for a bin position, all histogram values at that bin are replaced with newValue. |
| newValue | The value to assign to histogram entries whose bin position satisfies the predicate. |
| data::MultiHistogram mrmd::data::smoothen | ( | data::MultiHistogram & | input, |
| const real_t & | sigma, | ||
| const real_t & | range, | ||
| const bool | periodic = false |
||
| ) |
Smoothen a histogram using gaussian convolution.
| input | input histogram |
| sigma | sigma of the gaussian convolution |
| range | calculation range in multiples of sigma |
| periodic | treat boundaries as periodic |
how many neighboring bins are affected
| void mrmd::data::transform | ( | const MultiHistogram & | input1, |
| const MultiHistogram & | input2, | ||
| MultiHistogram & | output, | ||
| const BinaryOp & | binary_op | ||
| ) |
Applies a binary operation to corresponding elements of two input MultiHistograms and stores the result in an output MultiHistogram.
| BinaryOp | The type of the binary operation to be applied. |
| input1 | The first input MultiHistogram. |
| input2 | The second input MultiHistogram. |
| output | The MultiHistogram where the result of the binary operation will be stored. |
| binary_op | The binary operation to apply to the elements of input1 and input2. |