Constants
The Constants element contains a set of pre-defined physical constants that can be used in other elements
of the simulation. Constants are just a number. You may add new constants by clicking the Add button under
the Elements Tree while the Constants element (in the Elements Tree) is highlighted. For information on the
Elements Tree, see the images in the
VSim User Guide: Setup Window for Visual-setup Simulations page.
kind (not editable)
The kind of constant; either a built-in kind or a User Defined kind.
description (only for User Defined constants)
A descriptive name of the constant.
value
The value of the constant. This is the user-supplied value of the
constant if kind = User Defined
. Otherwise it is a non-editable value
supplied by VSim.
Built-In Constants:
- PI: The ratio of the circumference of a circle to its diameter.
- PIO2: \(\pi\) divided by two.
- TWOPI: \(\pi\) multiplied by two.
- LIGHTSPEED: The speed of light in vacuum (in meters/second).
- MU0: The permeability of free space (in newtons/amp^2 or (tesla meters)/amp) .
- ELEMCHARGE: The fundamental unit of charge (in coulombs).
- ELECMASS: The mass of an electron (in kilograms).
- PROTMASS: The mass of a proton (in kilograms).
- MUONMASS: The mass of a muon (in kilograms).
- KB: Boltzmann’s constant in (joules/kelvin)
- EPSILON0: The permittivity of free space (in farads/meters or (amps^2 seconds^4)/(meters^3 kilograms)).
- C2: The speed of light squared (in meters^2/seconds^2).
- ELECCHARGE: The charge of an electron (in coulombs).
- ELECMASSEV: The mass of an electron (in eV/c^2).