Objects Mixture Species Molecule Manifold <Prev Next>

Custom Population Functions

As an alternative to the built in Boltzmann population distributions, or specifying a population for each state individually (see Non-Boltzmann Populations), a function can be given in terms of various standard state properties instead. This is done by creating a "Custom Population Function" object under the appropriate Manifold object. The standard mathematical operators are available, and possible functions might include:

exp(-E/(kB*T)) The standard Boltzmann equation. PGOPHER uses an equation close to this, providing Tvib and Tspin are set to their default values (-1).(T is automatically created as a parameter here.)
exp(-(E-EB)/(kB*T)) Population equation actually used by PGOPHER if Tvib and Tspin are set to their default values (-1).
Population equation actually used by PGOPHER if Tvib is not the default, but Tspin is.
A Gaussian distribution in J, centered on Jcentre. (Jcentre is automatically created as a parameter here .)
Standard distribution, but discarding all states above Emax. The comparison operators evaluate to 1 if the comparison is true, and 0 for false allowing simple if...then...else logic. (Emax is automatically created as a parameter.)
A statistical distribution with a cut off energy of Emax. (Emax is automatically created as a parameter.)
Standard distribution, but scaling levels with J divisible by 3 by 3.


Built In Variables

The population PGOPHER would use if Active is set to false
The state energy
The Boltzmann constant in the current energy units/K. (Note k will be taken as a quantum number)
J for the state
The symmetry number of the state
The eigenvalue number of the state
MJ for the state - only set if external fields are present
The origin of the vibronic state. This is normally the value of the Origin parameter for the state, but for linear molecules a correction is applied so that the value is approximately the  energy of the lowest rotational level. (A similar offset is applied in the vibrational structure mode.)
The AssumedOrigin for the molecule (if not set to the default) or else the lowest vibronic state origin (defined as above), considering only states for which Initial = True.
The calculated width for the state

Additional quantum numbers are also available, depending on the molecule type. They are based on the dominant basis state, so may not be exact for strongly mixed states.

For asymmetric tops the standard quantum numbers Ka and Kc are available.

For linear molecules:
The Omega quantum number
Fn The spin component, 1 for F1, 2 for F2, etc.
Note that for versions before 8.0.171 the values were divided by 2.

For symmetric tops:
The absolute value of K
Kl The sign of Kl but separably degenerate point groups have additional in this variable.

For vibrating molecules:
v1, v2, ...
Vibrational quantum numbers
l1, l2, ...
Vibrational angular momentum quantum number, for degenerate modes only.
Electronic orbital angular momentum, Λ.
Electronic angular momentum, Ω.

In addition any parameter can be referred to by giving the name in dotted notation. For example the current value of Tvib can be referred to using Simulation.Tvib.


Active Set true to use the function provided to calculate the population
nDebug If non zero, write the values of all the variables and the value of the function on each evaluation to the log window. See debugging for options on the output. To see any output the expression must not be blank - simply set to "Value" to see the defaults in action.