Reading/writing Zacros input/output¶
-
class
IO_data.
ClusterIn
[source]¶ Handles data from energetics_input.dat
-
FindCluster
(Cluster_Num)[source]¶ Method finds the Cluster and Variant index of the nth Cluster-Variant where n is specified by Cluster_Num and the indices are returned as C.index (Cluster) and V.index (Variant) such that Cluster[C_index].variant_name[V_index] represents the name of the nth Cluster-Variant
-
-
class
IO_data.
MechanismIn
[source]¶ Handles input from mechanism_input.dat
-
CalcThermo
(fldr, T)[source]¶ Calculate the forward activation energy, forward and reverse pre-exponential factors and the PE-ratio for each reaction described in Mechanism_input.dat using an input file with energies and vibrational frequencies for all species and transition states
Assumes that each reaction has only 1 variant (MPN)
-
FindReaction
(Reaction_Num)[source]¶ Method finds the Reaction and Variant index of the nth Reaction-Variant where n is specified by Cluster_Num and the indices are returned as R.index (Reaction) and V.index (Variant) such that Reaction[R_index].variant_name[V_index] represents the name of the nth Reaction-Variant
-
-
IO_data.
Read_propensities
(path, nRxn)[source]¶ Read propenisty data from output files. The initial time point: At t = 0 or after 0 events is wrong because it is recorded before the first propensities are calculated. Instead, they are erroneously all zeros and should not be used for averaging. The rest are correct.
Parameters: Mode – 0 - Read Prop_output.bin, instantaneous propensities 1 - Read PropCounter_output.bin, time integrated propensities used for accurate time averages Returns: Matrix of time integrated surface species populations
-
IO_data.
Read_time_integrated_propensities
(path, nRxn)[source]¶ Read propenisty data from output files. The initial time point: At t = 0 or after 0 events is wrong because it is recorded before the first propensities are calculated. Instead, they are erroneously all zeros and should not be used for averaging. The rest are correct.
Parameters: Mode – 0 - Read Prop_output.bin, instantaneous propensities 1 - Read PropCounter_output.bin, time integrated propensities used for accurate time averages Returns: Matrix of time integrated surface species populations
-
IO_data.
Read_time_integrated_site_props
(path, nSites, nRxn, nSnaps)[source]¶ Read time integrated site propensities
Returns: List of [nSites x nRxn] matrices, one for each snapshot
-
IO_data.
Read_time_integrated_species
(path, n_surf_specs)[source]¶ Read time integrated species counts
Returns: Matrix of time integrated surface species populations
-
IO_data.
Read_trajectory_derivatives
(path, nRxn)[source]¶ Read SA_output.bin - get trajectory derivatives for use in likelihood ratio sensitivity analysis
Returns: Matrix of trajectory derivatives