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 |
Dielectric constant of free space. | |
#mu0 |
Dielectric constant of free space. | |
#c0 |
The speed of light in free space. | |
#zf0 |
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