Valor de

From StarLogo Nova Wiki
Revision as of 20:07, 14 August 2023 by FuzzyBot (talk | contribs) (Updating to match new version of source page)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Other languages:
The Value Of Block

Returns the value of a selected variable.

Syntax

Inputs in this block:

  1. a variable from the dropdown menu

Example

This model demonstrates the change in pH of a solution as base is added. Since each H+ agent represents one millionth of a mol of H+, so the ‘count H+ within 200 steps’ block is being multiplied by 0.000001. The ‘count water within 200 steps’ has been divided by 560 because each water molecule represents a tenth of a mole, of which there are approximately 56 in a one liter solution. (The solution is one liter at the start of the model, but gains volume as more acid is added to it.) Variables have been utilized in this simulation to keep track of the amount of H+ in the solution and also the total liters of liquid in the solution. This increases the readability of the pH equation.

Related Blocks