This page's content applies to older versions of PATMO. Please wait for updates.
This page's content applies to older versions of PATMO. Please wait for updates.
In PATMO internal common variables are accessible. We decided not to use any prefix patmo_, and sure we will regret this, since they might conflict with variable names in your framework code. Only species names have a prefix.
Note that these variables are all parameters.
reactionsNumber: number of all the reactions (gas chemistry + photochemistry + reverse)
chemReactionsNumber: number of the gas reactions (no reverse, no photochemistry)
photoReactionsNumber: number of the photochemistry reactions (no gas chemistry, no reverse)
reverseReactionsNumber: number of the reverse reactions (no gas chemistry, no photochemistry)
chemSpeciesNumber: number of gas chemistry species (no Tgas, no dummy)
speciesNumber: number of all species (including Tgas and dummy)
positionTgas: position of Tgas in the variable array
positionDummy: position of dummy in the variable array
cellsNumber: number of atmosphere layers
photoBinsNumber: number of photobins
patmo_idx_[species]: position of a given [species], e.g. CH4 is patmo_idx_CH4.
chemReactionsOffset: offset in the array of the reactions, i.e. where gas chemistry reactions begin, chemReactionsOffset+1 is the first gas chemistry reaction
photoReactionsOffset: offset in the array of the reactions, i.e. where photochemistry reactions begin, photoReactionsOffset+1 is the first photochemical reaction
reverseReactionsOffset: offset in the array of the reactions, i.e. where reverse reactions begin, reverseReactionsOffset+1 is the first reverse reaction
neqAll: number of all the differential equations, i.e. speciesNumber*cellsNumber
maxNameLength: maximum number of a string for the species names (not useful for you)
indexReactants*: an array containing the indexes of the reactants with position , i.e. indexReactants2* is the second reactant.
indexProducts*: same as above, but for products.