Predefined Variables
The PREFEKO language includes a number of predefined variables. Generally, these variables remain constant but may be overwritten by re-assignments.
Name | Value | Description |
---|---|---|
#pi |
3.14159265358979... | The constant π |
#esp0 |
8.85418781761⋅10−7 | Dielectric constant ε0 of free space. |
#mu0 |
4π⋅10−7 | Dielectric constant μ0 of free space. |
#c0 |
1√μ0ε0 | The speed of light in free space. |
#zf0 |
√μ0ε0 | The intrinsic impedance of free space. |
#true |
1 | Used for logical true. |
#false
|
0 | Used for logical false. |
PREFEKO also supports a logical function DEFINED(#variable) which returns TRUE if the variable #variable has been defined, and FALSE if not. This is useful in .pre files used for OPTFEKO or ADAPTFEKO runs. These two components insert variables at the top of the file, but it may be required to define the variable in the file for preview purposes.
For example, if a .pre file is used
for optimisation with respect to the variable #a, this variable
could be defined as
follows:
!!if (not(defined(#a))) then
#a = 200.0e-3
!!endif