Skip to content

Commit

Permalink
Merge branch 'fix/parsing-lattice-file' of github.com:simphony/reaxpr…
Browse files Browse the repository at this point in the history
…o-wrappers into fix/parsing-lattice-file
  • Loading branch information
MBueschelberger committed Sep 28, 2023
2 parents 52c0373 + 718fbc5 commit 4b22df8
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 3 deletions.
6 changes: 3 additions & 3 deletions examples/CO+Pt111_models.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,14 +36,14 @@
"n_gas_species": 1,
"gas_specs_names": ["CO"],
"gas_molar_fracs": [0.1],
"snapshots": ["on time", 3.5],
"snapshots": ["on logtime", 1e-8, 3.5],
"species_numbers": ["on time", 3.5],
"process_statistics": ["on time", 3.5],
"max_time": 0.00001,
},
"adp": {
"min": 0.2,
"max": 0.8,
"min": 0.001,
"max": 0.999,
"num": 5
}
}
Expand Down
Binary file added examples/apd.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
16 changes: 16 additions & 0 deletions examples/plot.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
import numpy as np
import adaptiveDesignProcedure as adp
import matplotlib.pyplot as plt

path = "plams_workdir/adp.results/"

x_CO_model = np.linspace(0.001,0.999,201)
TOF_CO2_model, = adp.predict( x_CO_model.reshape(-1,1), path ).T

ax = plt.axes()
ax.set_xlabel('Molar Fraction CO', fontsize=14)
ax.set_ylabel("TOF (mol/s/site)", fontsize=14)
ax.plot(x_CO_model, TOF_CO2_model, color='red', linestyle='-', lw=2, zorder=0)
plt.tight_layout()
plt.savefig("apd.png")

0 comments on commit 4b22df8

Please sign in to comment.