Home Download Help Forum Resources Extensions FAQ NetLogo Publications Contact Us Donate Models: Library Community Modeling Commons Beginners Interactive NetLogo Dictionary (BIND) NetLogo Dictionary User Manuals: Web Printable Chinese Czech Farsi / Persian Japanese Spanish
|
NetLogo Models Library: |
If you download the NetLogo application, this model is included. You can also Try running it in NetLogo Web |
This model simulates the production of hydrogen gas through the reaction of zinc metal with hydrochloric acid.
Zinc metal (non-moving gray circles) sits at the bottom of a flask (outlined in white) filled with an aqueous solution of hydrochloric acid (HCl). Since HCl is a relatively strong acid, in solution it dissociates into Chloride Cl<sup>-</sup> ions (not shown) and hydrogen ions which each join a water molecule to form a hydronium H<sub>3</sub>O<sup>+</sup> ion (green circles). When two of these ions encounter a zinc atom, they react to produce a ZnCl<sub>2</sub> molecule and a hydrogen H<sub>2</sub> molecule (yellow circles). The ZnCl<sub>2</sub> in solution breaks down into zinc ions (small moving gray circles) and Chloride ions (not shown). The hydrogen molecules escape the solution and begin to exert pressure on a balloon attached to the flask’s top (outlined in orange). Based on the pressure in the balloon, its size will increase or decrease.
The full reaction is normally written as follows: > Zn(s) + 2HCl(aq) → ZnCl<sub>2</sub>(aq) + H<sub>2</sub>(g)
We can also write it with HCl and ZnCl<sub>2</sub> split into the ions they form in solution:
> Zn(s) + 2H<sub>3</sub>O<sup>+</sup>(aq) + 2Cl<sup>-</sup>(aq) → Zn<sup>2+</sup>(aq) + 2Cl<sup>-</sup>(aq) + H<sub>2</sub>(g)
Note that the Cl<sup>-</sup> ions don't change, which is why they aren't visualized in the model.
Note: the balloon size fluctuates a lot in the model. This is due to the very small number of hydrogen molecules in the model. Due to the small number, random fluctuations can change the instantaneous pressure on the balloon by a lot. In a real balloon, the number of hydrogen molecules is so huge that the fluctuations in pressure are negligible.
SETUP
: Creates the flask, balloon, and all of the molecules in them.
GO
: Starts the simulation, allowing the molecules to move and react.
NUM-ZN
: Determines the number of zinc metal atoms in the flask at the start of the simulation.
NUM-HCL
: Determines the number of hydrochloric acid molecules in the flask at the start of the simulation.
H2 MOLECULES
: Displays the number of hydrogen gas molecules that have been produced.
GAS PRODUCED
: Plots the amount of hydrogen gas in the balloon over time.
BALLOON SIZE
: Plots the height of the balloon over time.
Pay attention to how the different molecules move. Do some molecules move faster than others? Do all of the molecules move in straight lines? Try to explain each of these observations and how they relate to reality.
Adjust the sliders for NUM-ZN
and NUM-HCL
. Pay attention to the amount of hydrogen gas produced. Can you work out how the values for NUM-ZN
and NUM-HCL
affect the amount of gas?
Observe the model to see where the reaction is taking place. Why isn’t it happening in other places?
The current implementation of the balloon is not very mechanistically realistic. Try to improve this by adding a gas surrounding the balloon to balance the pressure from the gas inside of it.
This model uses partial ticks and the tick-advance
primitive to ensure that molecules never move more than one patch per update. This makes sure they can't skip through the walls of the flask or balloon.
This model also uses a global variable as a slider parameter, in this case using zn-increment
as the slider increment for the MOLS-ZN
slider. The model uses the startup
procedure to ensure that this is properly initialized as soon as the model loads.
This model is similar to several of the GasLab and Connected Chemistry models in the Models Library, particularly the GasLab Adiabatic Piston model.
If you mention this model or the NetLogo software in a publication, we ask that you include the citations below.
For the model itself:
Please cite the NetLogo software as:
Copyright 2022 Uri Wilensky.
This work is licensed under the Creative Commons Attribution-NonCommercial-ShareAlike 3.0 License. To view a copy of this license, visit https://creativecommons.org/licenses/by-nc-sa/3.0/ or send a letter to Creative Commons, 559 Nathan Abbott Way, Stanford, California 94305, USA.
Commercial licenses are also available. To inquire about commercial licenses, please contact Uri Wilensky at uri@northwestern.edu.
(back to the NetLogo Models Library)