torchsim
TorchSim molecular dynamics module.
TorchSimMolecularDynamics
dataclass
Bases: PymatGenMaker[InputType, OutputType], MolecularDynamics
flowchart TD
jfchemistry.molecular_dynamics.torchsim.TorchSimMolecularDynamics[TorchSimMolecularDynamics]
jfchemistry.core.makers.pymatgen_maker.PymatGenMaker[PymatGenMaker]
jfchemistry.core.makers.jfchem_maker.JFChemMaker[JFChemMaker]
jfchemistry.core.makers.core_maker.CoreMaker[CoreMaker]
jfchemistry.molecular_dynamics.base.MolecularDynamics[MolecularDynamics]
jfchemistry.core.makers.pymatgen_maker.PymatGenMaker --> jfchemistry.molecular_dynamics.torchsim.TorchSimMolecularDynamics
jfchemistry.core.makers.jfchem_maker.JFChemMaker --> jfchemistry.core.makers.pymatgen_maker.PymatGenMaker
jfchemistry.core.makers.core_maker.CoreMaker --> jfchemistry.core.makers.jfchem_maker.JFChemMaker
jfchemistry.molecular_dynamics.base.MolecularDynamics --> jfchemistry.molecular_dynamics.torchsim.TorchSimMolecularDynamics
click jfchemistry.molecular_dynamics.torchsim.TorchSimMolecularDynamics href "" "jfchemistry.molecular_dynamics.torchsim.TorchSimMolecularDynamics"
click jfchemistry.core.makers.pymatgen_maker.PymatGenMaker href "" "jfchemistry.core.makers.pymatgen_maker.PymatGenMaker"
click jfchemistry.core.makers.jfchem_maker.JFChemMaker href "" "jfchemistry.core.makers.jfchem_maker.JFChemMaker"
click jfchemistry.core.makers.core_maker.CoreMaker href "" "jfchemistry.core.makers.core_maker.CoreMaker"
click jfchemistry.molecular_dynamics.base.MolecularDynamics href "" "jfchemistry.molecular_dynamics.base.MolecularDynamics"
Base class for molecular dynamics using TorchSim calculators.
Combines molecular dynamics with TorchSim calculator interfaces. This class provides the framework for running MD simulations of a structure using various TorchSim calculators (neural networks, machine learning, semi-empirical, etc.).
Units
Pass a float in the listed unit or a pint Quantity (e.g. jfchemistry.ureg
or jfchemistry.Q_):
- duration: [fs]
- timestep: [fs]
- log_interval: [fs]
- temperature: [K]
| ATTRIBUTE | DESCRIPTION |
|---|---|
name |
Name of the calculator (default: "TorchSim Molecular Dynamics").
TYPE:
|
calculator |
The calculator to use for the calculation.
TYPE:
|
integrator |
The integrator to use for the simulation.
TYPE:
|
duration |
The duration of the simulation [fs]. Accepts float or pint Quantity.
TYPE:
|
timestep |
The timestep of the simulation [fs]. Accepts float or pint Quantity.
TYPE:
|
temperature |
The temperature of the simulation [K]. Accepts float or pint Quantity.
TYPE:
|
autobatcher |
Whether to enable autobatching.
TYPE:
|
logfile |
The filename prefix to log the trajectory of the simulation.
TYPE:
|
progress_bar |
Whether to show a progress bar in the simulation.
TYPE:
|
log_interval |
The interval at which to log the simulation [fs]. Accepts float or pint Quantity.
TYPE:
|
log_potential_energy |
Whether to log the potential energy in the simulation.
TYPE:
|
log_kinetic_energy |
Whether to log the kinetic energy in the simulation.
TYPE:
|
log_temperature |
Whether to log the temperature in the simulation.
TYPE:
|
log_pressure |
Whether to log the pressure in the simulation.
TYPE:
|
log_volume |
Whether to log the volume in the simulation.
TYPE:
|
log_trajectory |
Whether to log the trajectory in the simulation.
TYPE:
|
Source code in jfchemistry/molecular_dynamics/torchsim/base.py
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 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 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 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 | |
make
make(input: InputType | list[InputType], **kwargs) -> Response[_output_model]
Create a workflow job for processing structure(s).
Automatically handles job distribution for lists of structures. Each structure in a list is processed as a separate job for parallel execution.
| PARAMETER | DESCRIPTION |
|---|---|
input
|
Single Pymatgen SiteCollection or list of SiteCollections.
TYPE:
|
**kwargs
|
Additional kwargs to pass to the operation.
DEFAULT:
|
| RETURNS | DESCRIPTION |
|---|---|
Response[_output_model]
|
Response containing: - structure: Processed structure(s) - files: XYZ format file(s) of the structure(s) - properties: Computed properties from the operation |
Examples:
>>> from jfchemistry.conformers import CRESTConformers
>>> from pymatgen.core import Molecule
>>> molecule = Molecule.from_ase_atoms(molecule("C2H6"))
>>> # Generate conformers
>>> conformer_gen = CRESTConformers(ewin=6.0)
>>> job = conformer_gen.make(input)
Source code in jfchemistry/core/makers/jfchem_maker.py
111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 | |
TorchSimMolecularDynamicsNPTLangevin
dataclass
Bases: TorchSimMolecularDynamics
flowchart TD
jfchemistry.molecular_dynamics.torchsim.TorchSimMolecularDynamicsNPTLangevin[TorchSimMolecularDynamicsNPTLangevin]
jfchemistry.molecular_dynamics.torchsim.base.TorchSimMolecularDynamics[TorchSimMolecularDynamics]
jfchemistry.core.makers.pymatgen_maker.PymatGenMaker[PymatGenMaker]
jfchemistry.core.makers.jfchem_maker.JFChemMaker[JFChemMaker]
jfchemistry.core.makers.core_maker.CoreMaker[CoreMaker]
jfchemistry.molecular_dynamics.base.MolecularDynamics[MolecularDynamics]
jfchemistry.molecular_dynamics.torchsim.base.TorchSimMolecularDynamics --> jfchemistry.molecular_dynamics.torchsim.TorchSimMolecularDynamicsNPTLangevin
jfchemistry.core.makers.pymatgen_maker.PymatGenMaker --> jfchemistry.molecular_dynamics.torchsim.base.TorchSimMolecularDynamics
jfchemistry.core.makers.jfchem_maker.JFChemMaker --> jfchemistry.core.makers.pymatgen_maker.PymatGenMaker
jfchemistry.core.makers.core_maker.CoreMaker --> jfchemistry.core.makers.jfchem_maker.JFChemMaker
jfchemistry.molecular_dynamics.base.MolecularDynamics --> jfchemistry.molecular_dynamics.torchsim.base.TorchSimMolecularDynamics
click jfchemistry.molecular_dynamics.torchsim.TorchSimMolecularDynamicsNPTLangevin href "" "jfchemistry.molecular_dynamics.torchsim.TorchSimMolecularDynamicsNPTLangevin"
click jfchemistry.molecular_dynamics.torchsim.base.TorchSimMolecularDynamics href "" "jfchemistry.molecular_dynamics.torchsim.base.TorchSimMolecularDynamics"
click jfchemistry.core.makers.pymatgen_maker.PymatGenMaker href "" "jfchemistry.core.makers.pymatgen_maker.PymatGenMaker"
click jfchemistry.core.makers.jfchem_maker.JFChemMaker href "" "jfchemistry.core.makers.jfchem_maker.JFChemMaker"
click jfchemistry.core.makers.core_maker.CoreMaker href "" "jfchemistry.core.makers.core_maker.CoreMaker"
click jfchemistry.molecular_dynamics.base.MolecularDynamics href "" "jfchemistry.molecular_dynamics.base.MolecularDynamics"
Run a molecular dynamics simulation using TorchSim in NVE ensemble.
Inherits all attributes from TorchSimMolecularDynamics.
| ATTRIBUTE | DESCRIPTION |
|---|---|
name |
Name of the calculator (default: "TorchSim Molecular Dynamics NPT Langevin").
TYPE:
|
alpha |
Atom friction coefficient controlling noise strength.
TYPE:
|
cell_alpha |
Cell friction coefficient controlling noise strength.
TYPE:
|
b_tau |
Barostat time constant controlling how quickly the system responds to pressure differences.
TYPE:
|
external_pressure |
External pressure applied to the system [atm] (default: 1 atm).
TYPE:
|
Source code in jfchemistry/molecular_dynamics/torchsim/npt/npt_langevin.py
17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 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 | |
make
make(input: InputType | list[InputType], **kwargs) -> Response[_output_model]
Create a workflow job for processing structure(s).
Automatically handles job distribution for lists of structures. Each structure in a list is processed as a separate job for parallel execution.
| PARAMETER | DESCRIPTION |
|---|---|
input
|
Single Pymatgen SiteCollection or list of SiteCollections.
TYPE:
|
**kwargs
|
Additional kwargs to pass to the operation.
DEFAULT:
|
| RETURNS | DESCRIPTION |
|---|---|
Response[_output_model]
|
Response containing: - structure: Processed structure(s) - files: XYZ format file(s) of the structure(s) - properties: Computed properties from the operation |
Examples:
>>> from jfchemistry.conformers import CRESTConformers
>>> from pymatgen.core import Molecule
>>> molecule = Molecule.from_ase_atoms(molecule("C2H6"))
>>> # Generate conformers
>>> conformer_gen = CRESTConformers(ewin=6.0)
>>> job = conformer_gen.make(input)
Source code in jfchemistry/core/makers/jfchem_maker.py
111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 | |
TorchSimMolecularDynamicsNPTNoseHoover
dataclass
Bases: TorchSimMolecularDynamics
flowchart TD
jfchemistry.molecular_dynamics.torchsim.TorchSimMolecularDynamicsNPTNoseHoover[TorchSimMolecularDynamicsNPTNoseHoover]
jfchemistry.molecular_dynamics.torchsim.base.TorchSimMolecularDynamics[TorchSimMolecularDynamics]
jfchemistry.core.makers.pymatgen_maker.PymatGenMaker[PymatGenMaker]
jfchemistry.core.makers.jfchem_maker.JFChemMaker[JFChemMaker]
jfchemistry.core.makers.core_maker.CoreMaker[CoreMaker]
jfchemistry.molecular_dynamics.base.MolecularDynamics[MolecularDynamics]
jfchemistry.molecular_dynamics.torchsim.base.TorchSimMolecularDynamics --> jfchemistry.molecular_dynamics.torchsim.TorchSimMolecularDynamicsNPTNoseHoover
jfchemistry.core.makers.pymatgen_maker.PymatGenMaker --> jfchemistry.molecular_dynamics.torchsim.base.TorchSimMolecularDynamics
jfchemistry.core.makers.jfchem_maker.JFChemMaker --> jfchemistry.core.makers.pymatgen_maker.PymatGenMaker
jfchemistry.core.makers.core_maker.CoreMaker --> jfchemistry.core.makers.jfchem_maker.JFChemMaker
jfchemistry.molecular_dynamics.base.MolecularDynamics --> jfchemistry.molecular_dynamics.torchsim.base.TorchSimMolecularDynamics
click jfchemistry.molecular_dynamics.torchsim.TorchSimMolecularDynamicsNPTNoseHoover href "" "jfchemistry.molecular_dynamics.torchsim.TorchSimMolecularDynamicsNPTNoseHoover"
click jfchemistry.molecular_dynamics.torchsim.base.TorchSimMolecularDynamics href "" "jfchemistry.molecular_dynamics.torchsim.base.TorchSimMolecularDynamics"
click jfchemistry.core.makers.pymatgen_maker.PymatGenMaker href "" "jfchemistry.core.makers.pymatgen_maker.PymatGenMaker"
click jfchemistry.core.makers.jfchem_maker.JFChemMaker href "" "jfchemistry.core.makers.jfchem_maker.JFChemMaker"
click jfchemistry.core.makers.core_maker.CoreMaker href "" "jfchemistry.core.makers.core_maker.CoreMaker"
click jfchemistry.molecular_dynamics.base.MolecularDynamics href "" "jfchemistry.molecular_dynamics.base.MolecularDynamics"
Run a molecular dynamics simulation using TorchSim in NVE ensemble.
Inherits all attributes from TorchSimMolecularDynamics.
| ATTRIBUTE | DESCRIPTION |
|---|---|
name |
Name of the calculator (default: "FairChem TorchSim Single Point Calculator").
TYPE:
|
b_tau |
Barostat time constant controlling how quickly the system responds to pressure differences.
TYPE:
|
t_tau |
Thermostat time constant controlling how quickly the system responds to temperature differences.
TYPE:
|
external_pressure |
External pressure applied to the system [atm] (default: 1 atm).
TYPE:
|
chain_length |
Number of Nose-Hoover chains.
TYPE:
|
chain_steps |
Number of steps per chain.
TYPE:
|
sy_steps |
Number of Suzuki-Yoshida steps.
TYPE:
|
Source code in jfchemistry/molecular_dynamics/torchsim/npt/npt_nose_hoover.py
17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 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 | |
make
make(input: InputType | list[InputType], **kwargs) -> Response[_output_model]
Create a workflow job for processing structure(s).
Automatically handles job distribution for lists of structures. Each structure in a list is processed as a separate job for parallel execution.
| PARAMETER | DESCRIPTION |
|---|---|
input
|
Single Pymatgen SiteCollection or list of SiteCollections.
TYPE:
|
**kwargs
|
Additional kwargs to pass to the operation.
DEFAULT:
|
| RETURNS | DESCRIPTION |
|---|---|
Response[_output_model]
|
Response containing: - structure: Processed structure(s) - files: XYZ format file(s) of the structure(s) - properties: Computed properties from the operation |
Examples:
>>> from jfchemistry.conformers import CRESTConformers
>>> from pymatgen.core import Molecule
>>> molecule = Molecule.from_ase_atoms(molecule("C2H6"))
>>> # Generate conformers
>>> conformer_gen = CRESTConformers(ewin=6.0)
>>> job = conformer_gen.make(input)
Source code in jfchemistry/core/makers/jfchem_maker.py
111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 | |
TorchSimMolecularDynamicsNVE
dataclass
Bases: TorchSimMolecularDynamics
flowchart TD
jfchemistry.molecular_dynamics.torchsim.TorchSimMolecularDynamicsNVE[TorchSimMolecularDynamicsNVE]
jfchemistry.molecular_dynamics.torchsim.base.TorchSimMolecularDynamics[TorchSimMolecularDynamics]
jfchemistry.core.makers.pymatgen_maker.PymatGenMaker[PymatGenMaker]
jfchemistry.core.makers.jfchem_maker.JFChemMaker[JFChemMaker]
jfchemistry.core.makers.core_maker.CoreMaker[CoreMaker]
jfchemistry.molecular_dynamics.base.MolecularDynamics[MolecularDynamics]
jfchemistry.molecular_dynamics.torchsim.base.TorchSimMolecularDynamics --> jfchemistry.molecular_dynamics.torchsim.TorchSimMolecularDynamicsNVE
jfchemistry.core.makers.pymatgen_maker.PymatGenMaker --> jfchemistry.molecular_dynamics.torchsim.base.TorchSimMolecularDynamics
jfchemistry.core.makers.jfchem_maker.JFChemMaker --> jfchemistry.core.makers.pymatgen_maker.PymatGenMaker
jfchemistry.core.makers.core_maker.CoreMaker --> jfchemistry.core.makers.jfchem_maker.JFChemMaker
jfchemistry.molecular_dynamics.base.MolecularDynamics --> jfchemistry.molecular_dynamics.torchsim.base.TorchSimMolecularDynamics
click jfchemistry.molecular_dynamics.torchsim.TorchSimMolecularDynamicsNVE href "" "jfchemistry.molecular_dynamics.torchsim.TorchSimMolecularDynamicsNVE"
click jfchemistry.molecular_dynamics.torchsim.base.TorchSimMolecularDynamics href "" "jfchemistry.molecular_dynamics.torchsim.base.TorchSimMolecularDynamics"
click jfchemistry.core.makers.pymatgen_maker.PymatGenMaker href "" "jfchemistry.core.makers.pymatgen_maker.PymatGenMaker"
click jfchemistry.core.makers.jfchem_maker.JFChemMaker href "" "jfchemistry.core.makers.jfchem_maker.JFChemMaker"
click jfchemistry.core.makers.core_maker.CoreMaker href "" "jfchemistry.core.makers.core_maker.CoreMaker"
click jfchemistry.molecular_dynamics.base.MolecularDynamics href "" "jfchemistry.molecular_dynamics.base.MolecularDynamics"
Run a molecular dynamics simulation using TorchSim in NVE ensemble.
Inherits all attributes from TorchSimMolecularDynamics.
| ATTRIBUTE | DESCRIPTION |
|---|---|
name |
Name of the calculator (default: "TorchSim Molecular Dynamics NVE").
TYPE:
|
Examples:
>>> from ase.build import molecule
>>> from pymatgen.core import Molecule
>>> from jfchemistry.optimizers import AimNet2Optimizer
>>> molecule = Molecule.from_ase_atoms(molecule("CCH"))
>>>
>>> # Fast optimization for screening
>>> opt_fast = AimNet2Optimizer(
... optimizer="LBFGS",
... fmax=0.1, # Looser convergence
... steps=500
... )
>>> job = opt_fast.make(molecule)
>>>
>>> # Tight optimization
>>> opt_tight = AimNet2Optimizer(
... optimizer="LBFGS",
... fmax=0.01,
... charge=-1,
... multiplicity=1
... )
>>> job = opt_tight.make(molecule)
>>> optimized = job.output["structure"]
>>> energy = job.output["properties"]["Global"]["Total Energy [eV]"]
Source code in jfchemistry/molecular_dynamics/torchsim/nve/nve.py
12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 | |
make
make(input: InputType | list[InputType], **kwargs) -> Response[_output_model]
Create a workflow job for processing structure(s).
Automatically handles job distribution for lists of structures. Each structure in a list is processed as a separate job for parallel execution.
| PARAMETER | DESCRIPTION |
|---|---|
input
|
Single Pymatgen SiteCollection or list of SiteCollections.
TYPE:
|
**kwargs
|
Additional kwargs to pass to the operation.
DEFAULT:
|
| RETURNS | DESCRIPTION |
|---|---|
Response[_output_model]
|
Response containing: - structure: Processed structure(s) - files: XYZ format file(s) of the structure(s) - properties: Computed properties from the operation |
Examples:
>>> from jfchemistry.conformers import CRESTConformers
>>> from pymatgen.core import Molecule
>>> molecule = Molecule.from_ase_atoms(molecule("C2H6"))
>>> # Generate conformers
>>> conformer_gen = CRESTConformers(ewin=6.0)
>>> job = conformer_gen.make(input)
Source code in jfchemistry/core/makers/jfchem_maker.py
111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 | |
TorchSimMolecularDynamicsNVTLangevin
dataclass
Bases: TorchSimMolecularDynamics
flowchart TD
jfchemistry.molecular_dynamics.torchsim.TorchSimMolecularDynamicsNVTLangevin[TorchSimMolecularDynamicsNVTLangevin]
jfchemistry.molecular_dynamics.torchsim.base.TorchSimMolecularDynamics[TorchSimMolecularDynamics]
jfchemistry.core.makers.pymatgen_maker.PymatGenMaker[PymatGenMaker]
jfchemistry.core.makers.jfchem_maker.JFChemMaker[JFChemMaker]
jfchemistry.core.makers.core_maker.CoreMaker[CoreMaker]
jfchemistry.molecular_dynamics.base.MolecularDynamics[MolecularDynamics]
jfchemistry.molecular_dynamics.torchsim.base.TorchSimMolecularDynamics --> jfchemistry.molecular_dynamics.torchsim.TorchSimMolecularDynamicsNVTLangevin
jfchemistry.core.makers.pymatgen_maker.PymatGenMaker --> jfchemistry.molecular_dynamics.torchsim.base.TorchSimMolecularDynamics
jfchemistry.core.makers.jfchem_maker.JFChemMaker --> jfchemistry.core.makers.pymatgen_maker.PymatGenMaker
jfchemistry.core.makers.core_maker.CoreMaker --> jfchemistry.core.makers.jfchem_maker.JFChemMaker
jfchemistry.molecular_dynamics.base.MolecularDynamics --> jfchemistry.molecular_dynamics.torchsim.base.TorchSimMolecularDynamics
click jfchemistry.molecular_dynamics.torchsim.TorchSimMolecularDynamicsNVTLangevin href "" "jfchemistry.molecular_dynamics.torchsim.TorchSimMolecularDynamicsNVTLangevin"
click jfchemistry.molecular_dynamics.torchsim.base.TorchSimMolecularDynamics href "" "jfchemistry.molecular_dynamics.torchsim.base.TorchSimMolecularDynamics"
click jfchemistry.core.makers.pymatgen_maker.PymatGenMaker href "" "jfchemistry.core.makers.pymatgen_maker.PymatGenMaker"
click jfchemistry.core.makers.jfchem_maker.JFChemMaker href "" "jfchemistry.core.makers.jfchem_maker.JFChemMaker"
click jfchemistry.core.makers.core_maker.CoreMaker href "" "jfchemistry.core.makers.core_maker.CoreMaker"
click jfchemistry.molecular_dynamics.base.MolecularDynamics href "" "jfchemistry.molecular_dynamics.base.MolecularDynamics"
Run a molecular dynamics simulation using TorchSim in NVE ensemble.
Inherits all attributes from TorchSimMolecularDynamics.
| ATTRIBUTE | DESCRIPTION |
|---|---|
name |
Name of the calculator (default: "TorchSim Molecular Dynamics NVT Langevin").
TYPE:
|
gamma |
Friction coefficient controlling noise strength.
TYPE:
|
Source code in jfchemistry/molecular_dynamics/torchsim/nvt/nvt_langevin.py
15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 | |
make
make(input: InputType | list[InputType], **kwargs) -> Response[_output_model]
Create a workflow job for processing structure(s).
Automatically handles job distribution for lists of structures. Each structure in a list is processed as a separate job for parallel execution.
| PARAMETER | DESCRIPTION |
|---|---|
input
|
Single Pymatgen SiteCollection or list of SiteCollections.
TYPE:
|
**kwargs
|
Additional kwargs to pass to the operation.
DEFAULT:
|
| RETURNS | DESCRIPTION |
|---|---|
Response[_output_model]
|
Response containing: - structure: Processed structure(s) - files: XYZ format file(s) of the structure(s) - properties: Computed properties from the operation |
Examples:
>>> from jfchemistry.conformers import CRESTConformers
>>> from pymatgen.core import Molecule
>>> molecule = Molecule.from_ase_atoms(molecule("C2H6"))
>>> # Generate conformers
>>> conformer_gen = CRESTConformers(ewin=6.0)
>>> job = conformer_gen.make(input)
Source code in jfchemistry/core/makers/jfchem_maker.py
111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 | |
TorchSimMolecularDynamicsNVTNoseHoover
dataclass
Bases: TorchSimMolecularDynamics
flowchart TD
jfchemistry.molecular_dynamics.torchsim.TorchSimMolecularDynamicsNVTNoseHoover[TorchSimMolecularDynamicsNVTNoseHoover]
jfchemistry.molecular_dynamics.torchsim.base.TorchSimMolecularDynamics[TorchSimMolecularDynamics]
jfchemistry.core.makers.pymatgen_maker.PymatGenMaker[PymatGenMaker]
jfchemistry.core.makers.jfchem_maker.JFChemMaker[JFChemMaker]
jfchemistry.core.makers.core_maker.CoreMaker[CoreMaker]
jfchemistry.molecular_dynamics.base.MolecularDynamics[MolecularDynamics]
jfchemistry.molecular_dynamics.torchsim.base.TorchSimMolecularDynamics --> jfchemistry.molecular_dynamics.torchsim.TorchSimMolecularDynamicsNVTNoseHoover
jfchemistry.core.makers.pymatgen_maker.PymatGenMaker --> jfchemistry.molecular_dynamics.torchsim.base.TorchSimMolecularDynamics
jfchemistry.core.makers.jfchem_maker.JFChemMaker --> jfchemistry.core.makers.pymatgen_maker.PymatGenMaker
jfchemistry.core.makers.core_maker.CoreMaker --> jfchemistry.core.makers.jfchem_maker.JFChemMaker
jfchemistry.molecular_dynamics.base.MolecularDynamics --> jfchemistry.molecular_dynamics.torchsim.base.TorchSimMolecularDynamics
click jfchemistry.molecular_dynamics.torchsim.TorchSimMolecularDynamicsNVTNoseHoover href "" "jfchemistry.molecular_dynamics.torchsim.TorchSimMolecularDynamicsNVTNoseHoover"
click jfchemistry.molecular_dynamics.torchsim.base.TorchSimMolecularDynamics href "" "jfchemistry.molecular_dynamics.torchsim.base.TorchSimMolecularDynamics"
click jfchemistry.core.makers.pymatgen_maker.PymatGenMaker href "" "jfchemistry.core.makers.pymatgen_maker.PymatGenMaker"
click jfchemistry.core.makers.jfchem_maker.JFChemMaker href "" "jfchemistry.core.makers.jfchem_maker.JFChemMaker"
click jfchemistry.core.makers.core_maker.CoreMaker href "" "jfchemistry.core.makers.core_maker.CoreMaker"
click jfchemistry.molecular_dynamics.base.MolecularDynamics href "" "jfchemistry.molecular_dynamics.base.MolecularDynamics"
Run a molecular dynamics simulation using TorchSim in NVE ensemble.
Inherits all attributes from TorchSimMolecularDynamics.
| ATTRIBUTE | DESCRIPTION |
|---|---|
name |
Name of the calculator (default: "TorchSim Molecular Dynamics NVT Nose-Hoover").
TYPE:
|
tau |
Thermostat relaxation time, defaults to 100*timestep
TYPE:
|
chain_length |
Number of Nose-Hoover chains
TYPE:
|
chain_steps |
Number of steps per chain
TYPE:
|
sy_steps |
Number of Suzuki-Yoshida steps
TYPE:
|
Source code in jfchemistry/molecular_dynamics/torchsim/nvt/nvt_nose_hoover.py
16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 | |
make
make(input: InputType | list[InputType], **kwargs) -> Response[_output_model]
Create a workflow job for processing structure(s).
Automatically handles job distribution for lists of structures. Each structure in a list is processed as a separate job for parallel execution.
| PARAMETER | DESCRIPTION |
|---|---|
input
|
Single Pymatgen SiteCollection or list of SiteCollections.
TYPE:
|
**kwargs
|
Additional kwargs to pass to the operation.
DEFAULT:
|
| RETURNS | DESCRIPTION |
|---|---|
Response[_output_model]
|
Response containing: - structure: Processed structure(s) - files: XYZ format file(s) of the structure(s) - properties: Computed properties from the operation |
Examples:
>>> from jfchemistry.conformers import CRESTConformers
>>> from pymatgen.core import Molecule
>>> molecule = Molecule.from_ase_atoms(molecule("C2H6"))
>>> # Generate conformers
>>> conformer_gen = CRESTConformers(ewin=6.0)
>>> job = conformer_gen.make(input)
Source code in jfchemistry/core/makers/jfchem_maker.py
111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 | |