synd
deepdrivewe.simulation.synd ¶
Run a SynD simulation.
For more information, see the SynD documentation at: https://github.com/jdrusso/SynD/tree/main
SynDConfig ¶
SynDSimulation ¶
Run a SynD simulation.
Source code in deepdrivewe/simulation/synd.py
34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 | |
__init__ ¶
Initialize the SynD simulation.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
synd_model_file
|
Path
|
The path to the SynD model (pkl) file. |
required |
n_steps
|
int
|
The number of steps to run the simulation. |
required |
Source code in deepdrivewe/simulation/synd.py
run ¶
Run a SynD simulation.
Source code in deepdrivewe/simulation/synd.py
SynDTrajAnalyzer ¶
Strategy for analyzing SynD trajectories.
Source code in deepdrivewe/simulation/synd.py
get_pcoords ¶
Get the progress coordinate from the trajectory.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
sim
|
SynDSimulation
|
The simulation to analyze. |
required |
Returns:
| Type | Description |
|---|---|
ndarray
|
The progress coordinate from the trajectory (n_steps, pcoord_dim). |
Source code in deepdrivewe/simulation/synd.py
get_coords ¶
Get the atomic coordinates from the aligned trajectory.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
sim
|
SynDSimulation
|
The simulation to analyze. |
required |
Returns:
| Type | Description |
|---|---|
ndarray
|
The atomic coordinates from the aligned trajectory (n_steps, n_atoms, 3). |
Source code in deepdrivewe/simulation/synd.py
SynDBasisStateInitializer ¶
SynD basis state initialization.
Source code in deepdrivewe/simulation/synd.py
__init__ ¶
Initialize the basis state initializer.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
config
|
SynDConfig
|
The SynD configuration. |
required |
extra_pcoord_dims
|
int
|
The number of extra progress coordinate dimensions. Useful for adding additional progress coordinate dimensions that are not part of the SynD model but are added during the analysis of the trajectory, defaults to 0. |
0
|
Source code in deepdrivewe/simulation/synd.py
__call__ ¶
Initialize the basis state parent coordinates.
Source code in deepdrivewe/simulation/synd.py
run_simulation ¶
Run a simulation and return the pcoord and coordinates.
Source code in deepdrivewe/simulation/synd.py
generate_basis_states ¶
Generate the basis state files for the SynD simulation.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
state_indices
|
list[int]
|
The state indices to use as basis states. |
required |
output_dir
|
Path
|
The output directory to store the basis states. |
required |