-
Notifications
You must be signed in to change notification settings - Fork 17
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
version used in the Pichelstorfer autoCONSTRAINT description paper
- Loading branch information
Showing
1,286 changed files
with
157,390 additions
and
343,531 deletions.
There are no files selected for viewing
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,2 @@ | ||
exclude __pycache__ | ||
exclude umansysprop | ||
include README.md |
Binary file not shown.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,86 @@ | ||
########################################################################################## | ||
# # | ||
# Copyright (C) 2018-2022 Simon O'Meara : simon.omeara@manchester.ac.uk # | ||
# # | ||
# All Rights Reserved. # | ||
# This file is part of PyCHAM # | ||
# # | ||
# PyCHAM is free software: you can redistribute it and/or modify it under # | ||
# the terms of the GNU General Public License as published by the Free Software # | ||
# Foundation, either version 3 of the License, or (at your option) any later # | ||
# version. # | ||
# # | ||
# PyCHAM is distributed in the hope that it will be useful, but WITHOUT # | ||
# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS # | ||
# FOR A PARTICULAR PURPOSE. See the GNU General Public License for more # | ||
# details. # | ||
# # | ||
# You should have received a copy of the GNU General Public License along with # | ||
# PyCHAM. If not, see <http://www.gnu.org/licenses/>. # | ||
# # | ||
########################################################################################## | ||
'''generates an array of component indices for the components that constitute a particular component type''' | ||
# for peroxy radicals makes a two column array, with the first column giving the index of components | ||
# included in the peroxy radical list and the | ||
# second column containing the index based on where the RO2 occurs in comp_namelist (i.e., relative | ||
# to all other components from the chemical scheme) | ||
|
||
import numpy as np | ||
|
||
def RO2_indices(RO2_names, self): | ||
|
||
# inputs: ----------------------------------------------------------------------------------------- | ||
# self.comp_namelist - all chemical scheme names | ||
# RO2_names - all RO2 (non-HOM) names | ||
# self - reference to PyCHAM | ||
# --------------------------------------------------------------------------------------------------- | ||
|
||
# store the names of RO2 species which are present in the equation file | ||
# get a list of INDICES of RO2 that present in the equation file | ||
# (or total species dict) | ||
# empty list for RO2_indices | ||
RO2_indices0 = [] | ||
self.RO2_indices = [] | ||
|
||
for name in RO2_names: | ||
|
||
if (name in self.comp_namelist): | ||
# get the RO2 index | ||
index0 = RO2_names.index(name) | ||
RO2_indices0.append(index0) | ||
# get the self.comp_namelist index for this RO2 species | ||
index1 = self.comp_namelist.index(name) | ||
self.RO2_indices.append(index1) | ||
|
||
# ensure elements in RO2_indices are integer (iterable) | ||
RO2_indices0 = (np.asarray(RO2_indices0, dtype=int)).reshape(-1, 1) | ||
self.RO2_indices = (np.asarray(self.RO2_indices, dtype=int)).reshape(-1, 1) | ||
self.RO2_indices = np.hstack((RO2_indices0, self.RO2_indices)) | ||
|
||
return(self) | ||
|
||
def HOMRO2_indices(self): | ||
|
||
# inputs: ----------------------------------------------------------------------------------------- | ||
# self.comp_namelist - all chemical scheme names | ||
# --------------------------------------------------------------------------------------------------- | ||
|
||
# store the names of HOMRO2 species which are present in the equation file | ||
# get a list of INDICES of RO2 that present in the equation file | ||
# (or total species dict) | ||
# empty list for HOMRO2 indices | ||
self.HOMRO2_indices = [] | ||
|
||
cin = 0 # count on components | ||
for name in self.comp_namelist: # loop through names of all components | ||
|
||
if ('API_' in name) or ('api_' in name): | ||
if ('RO2 in name'): | ||
# store the HOMRO2 index | ||
self.HOMRO2_indices.append(cin) | ||
|
||
cin += 1 # count on components | ||
# ensure elements in HOMRO2_indices are integer (iterable) | ||
self.HOMRO2_indices = (np.asarray(self.HOMRO2_indices, dtype=int)).reshape(-1, 1) | ||
|
||
return(self) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file renamed
BIN
+10.5 KB
PyCHAM_lite/__pycache__/coag.cpython-39.pyc → PyCHAM/__pycache__/coag.cpython-310.pyc
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file renamed
BIN
+528 Bytes
...ite/__pycache__/compl_evap.cpython-39.pyc → ...AM/__pycache__/compl_evap.cpython-310.pyc
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file renamed
BIN
+1.75 KB
...e/__pycache__/diff_vol_est.cpython-39.pyc → .../__pycache__/diff_vol_est.cpython-310.pyc
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file renamed
BIN
+978 Bytes
.../__pycache__/fl_reg_determ.cpython-39.pyc → ...__pycache__/fl_reg_determ.cpython-310.pyc
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file renamed
BIN
+1.17 KB
...M_lite/__pycache__/fullmov.cpython-39.pyc → PyCHAM/__pycache__/fullmov.cpython-310.pyc
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file renamed
BIN
+2.4 KB
...AM_lite/__pycache__/jac_up.cpython-37.pyc → PyCHAM/__pycache__/jac_up.cpython-310.pyc
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file renamed
BIN
+5.92 KB
...ite/__pycache__/mod_var_up.cpython-37.pyc → ...AM/__pycache__/mod_var_up.cpython-310.pyc
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file renamed
BIN
+1.61 KB
...pycache__/mov_cen_water_eq.cpython-39.pyc → ...ycache__/mov_cen_water_eq.cpython-310.pyc
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file renamed
BIN
+1.51 KB
PyCHAM/__pycache__/mzres.cpython-39.pyc → PyCHAM/__pycache__/mzres.cpython-310.pyc
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file renamed
BIN
+5.95 KB
...pycache__/ode_brk_err_mess.cpython-37.pyc → ...ycache__/ode_brk_err_mess.cpython-310.pyc
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file renamed
BIN
+720 Bytes
...lite/__pycache__/part_prop.cpython-39.pyc → PyCHAM/__pycache__/part_prop.cpython-310.pyc
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file renamed
BIN
+2.86 KB
..._pycache__/photolysisRates.cpython-37.pyc → ...pycache__/photolysisRates.cpython-310.pyc
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file renamed
BIN
+12 KB
...M_lite/__pycache__/plotter.cpython-39.pyc → PyCHAM/__pycache__/plotter.cpython-310.pyc
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file renamed
BIN
+3.01 KB
...pycache__/plotter_cham_env.cpython-37.pyc → ...ycache__/plotter_cham_env.cpython-310.pyc
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file renamed
BIN
+9.01 KB
PyCHAM_lite/__pycache__/save.cpython-37.pyc → PyCHAM/__pycache__/save.cpython-310.pyc
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file renamed
BIN
+927 Bytes
...M_lite/__pycache__/sens2mm.cpython-37.pyc → PyCHAM/__pycache__/sens2mm.cpython-310.pyc
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file renamed
BIN
+18.8 KB
..._lite/__pycache__/ui_check.cpython-37.pyc → PyCHAM/__pycache__/ui_check.cpython-310.pyc
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file renamed
BIN
+3.21 KB
...ite/__pycache__/user_input.cpython-37.pyc → ...AM/__pycache__/user_input.cpython-310.pyc
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file renamed
BIN
+625 Bytes
...ite/__pycache__/water_calc.cpython-39.pyc → ...AM/__pycache__/water_calc.cpython-310.pyc
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file renamed
BIN
+2.58 KB
...AM_lite/__pycache__/wk_int.cpython-39.pyc → PyCHAM/__pycache__/wk_int.cpython-310.pyc
Binary file not shown.
Binary file not shown.
Binary file not shown.
Oops, something went wrong.