DynamicsOutputs

Here are all the functions that you can specify in the output tuple when using run_dynamics. To add more, simply add a new function in the DynamicsOutputs module.

NQCDynamics.DynamicsOutputs.OutputDesorptionAngleMethod
OutputDesorptionAngle(indices; surface_normal=[0, 0, 1], surface_distance_threshold=austrip(5.0u"Å"))

Outputs the desorption angle in degrees (relative to the surface normal) if a desorption event is detected. Use surface_normal to define the direction "away" from the surface. Most commonly, this would be in positive z direction.

A desorption is detected if the centre of mass of the molecule defined with indices is above surface_distance_threshold from the closest surface atom. This is calculated with respect to surface_normal and will take into account periodic boundary conditions.

source
NQCDynamics.DynamicsOutputs.OutputDesorptionSnapshotMethod
OutputDesorptionSnapshot(indices; surface_normal=[0, 0, 1], surface_distance_threshold=austrip(5.0u"Å"))

Save DynamicsVariables where desorption starts. (Same conditions as for OutputDesorptionTrajectory)

Use surface_normal to define the direction "away" from the surface. Most commonly, this would be in positive z direction.

Use extra_frames to save additional steps before the desorption event begins.

A desorption is detected if the centre of mass of the molecule defined with indices is above surface_distance_threshold from the closest surface atom. This is calculated with respect to surface_normal and will take into account periodic boundary conditions.

source
NQCDynamics.DynamicsOutputs.OutputDesorptionTrajectoryMethod
OutputDesorptionTrajectory(indices; surface_normal=[0, 0, 1], surface_distance_threshold=austrip(5.0u"Å"), extra_frames=0)

Like OutputDynamicsVariables, but only saves parts of the trajectory where desorption is occurring.

Use surface_normal to define the direction "away" from the surface. Most commonly, this would be in positive z direction.

Use extra_frames to save additional steps before the desorption event begins.

A desorption is detected if the centre of mass of the molecule defined with indices is above surface_distance_threshold from the closest surface atom. This is calculated with respect to surface_normal and will take into account periodic boundary conditions.

source
NQCDynamics.DynamicsOutputs.OutputKineticTemperatureType

Outputs the instantaneous temperature of the selected atoms in K in the system at every save point.

Invoke with OutputKineticTemperature(:) for the entire system, or with OutputKineticTemperature([1,2,3...]) for a subset of atoms.

source
NQCDynamics.DynamicsOutputs.OutputEverythingMethod
OutputEverything(sol,i)

Outputs the full DifferentialEquations solution object.

Storing this to disk is inefficient, but allows for full post-processing with any of the functions defined in this module.

source
NQCDynamics.DynamicsOutputs.OutputNoiseMethod
OutputNoise(sol, i)

Outputs the noise generated by the integrator at each time step in the trajectory.

Note: This requires using the run_dynamics command with save_noise=true, otherwise noise won't be accessible to this output function.

source

Internals