Value Of/es: Difference between revisions

From StarLogo Nova Wiki
(Updating to match new version of source page)
(Updating to match new version of source page)
 
(One intermediate revision by the same user not shown)
Line 1: Line 1:
<languages/>
<languages/>


<div class="mw-translate-fuzzy">
<div lang="en" dir="ltr" class="mw-content-ltr">
<section begin="image"/>[[File:value_of.png|alt=The Value Of Block|thumb]]<section end="image"/>
</div>
 
<div lang="en" dir="ltr" class="mw-content-ltr">
==Usage==
</div>
 
<div lang="en" dir="ltr" class="mw-content-ltr">
<p id="tooltip">Returns the value of a selected variable.</p>
</div>
 
<div lang="en" dir="ltr" class="mw-content-ltr">
==Syntax==
</div>
 
<div lang="en" dir="ltr" class="mw-content-ltr">
Inputs in this block:
#a variable from the dropdown menu
</div>
 
<div lang="en" dir="ltr" class="mw-content-ltr">
==Example==
</div>
 
<div lang="en" dir="ltr" class="mw-content-ltr">
[[File:value_of_example.gif|alt=Value Of example gif|thumb]]
[[File:value_of_example.png|alt=Value Of example code|thumb]]
</div>
 
<div lang="en" dir="ltr" class="mw-content-ltr">
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 [[Special:MyLanguage/Count Within Steps|‘count H+ within 200 steps’]] block is being multiplied by 0.000001. The [[Special:MyLanguage/Count Within Steps|‘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.
</div>
 
<div lang="en" dir="ltr" class="mw-content-ltr">
==Related Blocks==
</div>
 
<div lang="en" dir="ltr" class="mw-content-ltr">
*[[Special:MyLanguage/Var is|Variable Block]]
</div>
 
<div lang="en" dir="ltr" class="mw-content-ltr">
[[Category:Variables]]
[[Category:Variables]]
[[Category:Code Block]]
[[Category:Code Block]]
</div>
</div>

Latest revision as of 20:07, 14 August 2023

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