A Stoichiometry Water Model |
A basic model to show the stoichiometry of the decomposition of water.
This model teaches the basic concepts which are used in later models.
moles_hydrogen(t) = moles_hydrogen(t - dt) + (hydrogen_production) * dt INIT moles_hydrogen = 0 hydrogen_production(o) = 1 moles_oxygen(t) = moles_oxygen(t - dt) + (oxygen_production) * dt INIT moles_oxygen = 0 oxygen_production(o) = .5 moles_water(t) = moles_water(t - dt) + (- hydrogen_production - oxygen_production) * dt INIT moles_water = 20 hydrogen_production(o) = 1 oxygen_production(o) = .5 mass_hydrogen = moles_hydrogen*2 mass_oxygen = moles_oxygen*32 mass_water = moles_water*18 total_mass = mass_water+mass_hydrogen+mass_oxygen Total_moles = moles_hydrogen+moles_oxygen+moles_water Time SpecsStandard: Range:0-12 , dT = 0.25 , Integration Method = Euler's |
|