Photochemistry

From Planets
Revision as of 17:28, 12 May 2023 by Maxime Maurice (talk | contribs) (Created page with "= Photochemistry = == Generic Model == === Compilation === Photochemistry in the generic model is largely independent of the and does not require to recompile it (just make...")

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

Photochemistry

Generic Model

Compilation

Photochemistry in the generic model is largely independent of the and does not require to recompile it (just make sure that you have linked the LAPACK and BLAS libraries).

Reaction network

Besides the species- and reaction_specific data files (see below), you need one file: reactfile (located in the chemnetwork folder) for the reaction network. The syntax of the reactfile is as follows:

reactfile 

For each line, the first 50 characters are reserved for reactants. Their names must match those given traceurs.def (which needs to follow the modern layout). Reactant species must be separated by any number of blank spaces. The 50 next characters are reserved for products, with the same rules applying. Notice that in the case of a third body reaction, the third body appears only with the reactants.

Data for photolysis reaction

Photolysis reactions need two types of files:

  1. cross sections
  2. yield rates

Reaction rate formula

There are three different formula for the reaction rate:

  1. the simple
  2. the strange
  3. the stranger