MATLAB code for simplifying development of global (volume-averaged) plasma chemistry models
Author: Thomas Body. Contact [email protected] Requires MATLAB R2015B or later.
- Copy
GlobalModel.m
and the foldersClasses
,Core
andExternal methods for GUI_control
into a single directory. - Open a MATLAB terminal
- Use
pathtool
to add the directory to your MATLAB path. Ensure that the current directory is the same as the directory of the MATLAB code. Make sure a folder titledResults
is in the current directory. - Initiate GUI with the command
Controller = GlobalModel
. This calls the constructor function for the GUI_Control class, and saves the resulting object to the MATLAB workspace asController
. Methods of the Controller object (some of which are saved as external files) act as a pipe between the GUI and the MATLAB worker. - Use the GUI to build, evaluate and export the results of your system of chemical kinetic balance equations.
A file README_local
outlines a method for running scans and plotting graphs, which is used for the publication-quality plotting.
Reaction codes may be supplied individually (A1, A2, A3, ...) or as a range (A[1-3],...)
Once reactions are defined, their characteristics will be saved to a DATABASE_C object ReactionDB_MAIN.
Reaction characteristics may be retrieved from ReactionDB_MAIN via the above calling methods, or via a \*
token. As such A* will call all reactions A1, A2, A3, ... that are already saved in the database
Species involved in each reaction should be supplied as a comma-separated list. Multiples may be entered either as 2*X or X,X
For implicit reference use \<ControllerProperty.Property\>
or \<ControllerProperty:DB_Key.Property\>
Controller properties should be abbreviated according to the following
G->Global, R->Reactor, E->Experiment,RR->ReactionDB, S->SpeciesDB, C->CrosssectionDB
As such \<S:H+.u_Bohm\>
will be interpreted as Controller.SpeciesDB.Key(
H+).u_Bohm
(i.e. the Bohm velocity for the H+/free proton species).
N.b. Te (electron temperature) and Tg (gas temperature) dependencies do not require implicit references