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
kernel_dtype = 'float64'
class-attribute
instance-attribute
¶
Precision of the pair kernels and Ewald structure factors; energies are summed in float64.
EwaldConfig
¶
LJConfig
¶
Bases: BaseModel
Lennard-Jones potential configuration.
Source code in src/kups/application/simulations/mcmc_rigid.py
make_parameters(labels)
¶
Mix only types present in hosts or insertable molecule templates.
Source code in src/kups/application/simulations/mcmc_rigid.py
MCMCState
¶
Bases: MCMCStateBase
Rigid-body MCMC state with an initialized persistent pair cache.
Source code in src/kups/application/simulations/mcmc_rigid.py
MCMCStateBase
¶
Shared state for rigid-body MCMC and Widom simulations.
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
move_capacity
property
¶
Maximum number of particles per motif (move buffer size).
MCMCStateUpdate
¶
Proposed particle and group changes for an MCMC move.
Calling an instance applies the update conditionally on accept.
With positions_only, only particle positions are written.
Source code in src/kups/application/simulations/mcmc_rigid.py
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 particle and group updates from exchange changes.
Source code in src/kups/application/simulations/mcmc_rigid.py
init_cell_tables(particles, motifs, systems, lj_parameters, ewald_parameters, dtype=jnp.float64)
¶
Initialize the shared pair cache from the simulation's input data.
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
429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 | |
make_guest_stress(state)
¶
Build guest-only stress tensor function from MCMCState.
Source code in src/kups/application/simulations/mcmc_rigid.py
make_propagator(state, config)
¶
Build MCMC initialization and cycles.