kups.application.mcmc.logging
¶
Logging for rigid-body MCMC simulations.
IsMCMCState
¶
Bases: Protocol
Protocol for states compatible with MCMC logging.
Source code in src/kups/application/mcmc/logging.py
MCMCFixedData
¶
Immutable data logged once at the start of the simulation.
Contains the host framework particles (which never change) and system-level thermodynamic state.
Source code in src/kups/application/mcmc/logging.py
MCMCLoggedData
¶
HDF5 writer group layout: one-shot host data + per-cycle adsorbate data.
Source code in src/kups/application/mcmc/logging.py
MCMCStepData
¶
Per-cycle MCMC data: adsorbate positions, energies, and move statistics.
Source code in src/kups/application/mcmc/logging.py
MCMCSystemStepData
¶
Per-system, per-cycle data: energies, move statistics, and stress.
Source code in src/kups/application/mcmc/logging.py
make_mcmc_logged_data(state, stress_fn=None)
¶
Create MCMC logging config that logs host particles once and adsorbate buffer per step.
Host particles are identified by having out-of-bounds group indices (they belong to no molecular group). This works for any number of host systems regardless of how particles are interleaved in the buffer.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
state
|
S
|
The initial MCMC state (after padding). |
required |
stress_fn
|
StateProperty[S, Table[SystemId, StressResult]] | None
|
Optional stress tensor function. When provided, the guest stress tensor is logged each cycle. |
None
|
Returns:
| Type | Description |
|---|---|
MCMCLoggedData
|
Configured logging data with host/adsorbate split. |
Source code in src/kups/application/mcmc/logging.py
117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 | |