After additional insight from Ghaem and looking at the files, it looks like the example was not quite finished when it was added to the workshop materials. I have provided Qaem additional guidance, and we'll probably have the example updated after that.
**
It sounds like you should use the model.put command to put a bunch of a particular species at the bottom layer using a loop. See here:
https://kmcos.readthedocs.io/en/latest/tutorials/index.html#introductionI’m surprised the growth.py does not do so:
https://github.com/kmcos/intro2kmcos/blob/master/solutions/SOSadsdes_local_smart/growth.pySo it sounds like you should use put command for bottom layer in growth.py.
When I look at this process:
<process enabled="True" name="Ads_sub" rate_constant="kads">
<condition coord_layer="default" coord_name="sc" coord_offset="0 0 0" species="empty"/>
<condition coord_layer="default" coord_name="sc" coord_offset="0 0 -1" species="sub"/>
<action coord_layer="default" coord_name="sc" coord_offset="0 0 0" species="Pt"/>
That process does require a “sub” species. So I think the growth.py file needs to be changed to first put “sub” at the bottom of the cell.
Looking at the SOS files, it looks like “sub” is currently defined as a Pd atom. So it looks like that exercise is supposed to involve first putting a layer of sub species (which are Pd atoms) at the bottom.
So you should add a loop of “put” before the steps occur in growth.py, then when you get it working we can update in the repository.
it looks like Growth.py runs several separate model instances. So you’d have to add the put command below this line, so that the put occurs each time.
model = KMC_Model(banner=False,
size = size,
random_seed = random_seed)
I guess Juan didn’t really complete this example when he added it to intro2kmcos. But now you can!
We should also explain the “put” command in the intro2kmcos word doc, in the section for this exercise. It’s good to have the put command in intro2kmcos anyway.
***
Qaem plans to provide the updated materials once Qaem gets them working.