kups.application.simulations.mcmc_rigid
¶
Rigid-body grand-canonical Monte Carlo simulation entry point.
Config
¶
Bases: BaseModel
Top-level configuration for rigid-body MCMC simulations.
Source code in src/kups/application/simulations/mcmc_rigid.py
EwaldConfig
¶
LJConfig
¶
Bases: BaseModel
Lennard-Jones potential configuration.
Source code in src/kups/application/simulations/mcmc_rigid.py
MCMCState
¶
Full state for a rigid-body grand-canonical MCMC simulation.
Holds buffered particle/group arrays, motif templates, system thermodynamic data, neighbor lists, potential parameters with caches, and per-move adaptive step-size schedulers.
Source code in src/kups/application/simulations/mcmc_rigid.py
MCMCStateUpdate
¶
Proposed MCMC state change with pre-computed neighbor lists.
Stores the proposed particle and group modifications together with neighbor-list edges computed before and after the change, so that energy differences can be evaluated without rebuilding the full neighbor list.
Calling an instance applies the update conditionally on accept.
Source code in src/kups/application/simulations/mcmc_rigid.py
183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 | |
neighborlist_after
property
¶
Neighbor list for the proposed (post-move) configuration.
neighborlist_before
property
¶
Neighbor list for the current (pre-move) configuration.
particles
property
¶
Proposed particle data (without the buffer wrapper).
__call__(state, accept)
¶
Apply the update to state, conditional on accept.
Source code in src/kups/application/simulations/mcmc_rigid.py
from_changes(key, state, proposal)
staticmethod
¶
Build an update from exchange changes.
Source code in src/kups/application/simulations/mcmc_rigid.py
init_state(key, config)
¶
Initialize the full MCMC state from configuration.
Source code in src/kups/application/simulations/mcmc_rigid.py
make_guest_stress()
¶
Build guest-only stress tensor function from MCMCState.