Difference between revisions of "UKCA & UMUI Tutorial 9"

From UKCA
Line 14: Line 14:
 
(/'<span style="color:purple">Species</span>/<span style="color:blue">Reactant 1</span>','<span style="color:blue">Reactant 2</span>'/), &
 
(/'<span style="color:purple">Species</span>/<span style="color:blue">Reactant 1</span>','<span style="color:blue">Reactant 2</span>'/), &
 
(/'<span style="color:green">Product 1</span>','<span style="color:green">Product 2</span>','<span style="color:green">Product 3</span>','<span style="color:green">Product 4</span>'/)), &
 
(/'<span style="color:green">Product 1</span>','<span style="color:green">Product 2</span>','<span style="color:green">Product 3</span>','<span style="color:green">Product 4</span>'/)), &
  +
  +
Which have the following meaning:
  +
  +
===Diagnostic Type===
  +
  +
This is a three character string which defines what type of diagnostic is being requested. This can take the values
  +
  +
* '''RXN'''
  +
* '''DEP'''
  +
* '''EMS'''
  +
* '''NET'''
  +
* '''STE'''
  +
* '''MAS'''
  +
* '''PSC'''
  +
* '''TPM'''
  +
* '''OUT'''
  +
* '''RTE'''
  +
* '''LIN'''
  +
* '''LGT'''
  +
  +
===Stash Code===
  +
  +
===Diagnostic Specification===
  +
  +
* ''RXN''
  +
** '''B'''
  +
** '''T'''
  +
** '''H'''
  +
** '''J'''
  +
* ''DEP''
  +
** '''D'''
  +
** '''W'''
  +
* ''EMS''
  +
** '''S'''
  +
** '''A'''
  +
** '''L'''
  +
** '''V'''
  +
** '''T'''
  +
* ''NET''
  +
* ''STE''
  +
* ''MAS''
  +
* ''PSC''
  +
** '''1'''
  +
** '''2'''
  +
* ''TPM''
  +
* ''OUT''
  +
* ''RTE''
  +
** '''B'''
  +
** '''T'''
  +
** '''H'''
  +
** '''J'''
  +
* ''LIN''
  +
* ''LGT''
  +
** '''T'''
  +
** '''G'''
  +
** '''C'''
  +
** '''N'''
  +
  +
   
   

Revision as of 10:17, 26 June 2013

Back to UKCA & UMUI Tutorials

Adding New Diagnostics

If you are using one of the chemistry schemes that uses ASAD (e.g. CheT/TropIsop, CheS/Strat, CheST/StratTrop) then you can make use of the ASAD Reaction Flux Diagnostics module (held in asad_chem_flux_diags.F90). These allow you to straight-forwardly out new reaction and deposition fluxes.

To output new diagnostics you will first need to define them in the asad_flux_dat.F90 module, and then create a new STASHmaster file for them.

Flux Definitions in asad_flux_dat.F90

Within the asad_flux_dat.F90 module the diagnostics are defined in blocks with the format

      asad_flux_defn('Diagnostic type',Stash code,'Diagnostic specification',Mask,Reaction number,Number of species, &
      (/'Species/Reactant 1','Reactant 2'/),                                                                         &
      (/'Product 1','Product 2','Product 3','Product 4'/)),                                                          &

Which have the following meaning:

Diagnostic Type

This is a three character string which defines what type of diagnostic is being requested. This can take the values

  • RXN
  • DEP
  • EMS
  • NET
  • STE
  • MAS
  • PSC
  • TPM
  • OUT
  • RTE
  • LIN
  • LGT

Stash Code

Diagnostic Specification

  • RXN
    • B
    • T
    • H
    • J
  • DEP
    • D
    • W
  • EMS
    • S
    • A
    • L
    • V
    • T
  • NET
  • STE
  • MAS
  • PSC
    • 1
    • 2
  • TPM
  • OUT
  • RTE
    • B
    • T
    • H
    • J
  • LIN
  • LGT
    • T
    • G
    • C
    • N




Written by Luke Abraham 2013