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 = 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.OutputDesorptionTrajectoryMethod
`OutputDesorptionTrajectory(indices; surface_normal = [0,0,1], surface_distance_threshold = 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

Internals