The help that EQS 0.2.1 shows inside the program, on one page: the tutorial, every function with its parameters and an example, the statements and settings of the language, and every menu command. In EQS the same text appears when you hover a function name, in Help → Reference, and in Help → Tutorial.
Each step is one idea and a model to try: in EQS, Help → Tutorial loads the same model into the editor; press F2 to solve it.
Type equations, one per line, in whatever order you think of them. EQS works out which ones must be solved together and solves them. Names are case-insensitive. Two slashes start a comment: // like this. Load this step, press F2, and look at the Solution tab.
// A rectangle with a known area and aspect ratio area = 12 w = 1.5 * h area = w * h perimeter = 2 * (w + h)
Write the unit after a number: m = 0.5 kg/s. The unit of a computed variable goes in brackets after its equation: Q = m*cp*dT [kW]. EQS then checks every equation: if the two sides disagree you get a warning with the line number, and the solve still runs. A bare number takes the unit of what it is added to.
m = 0.5 kg/s cp = 4.18 kJ/(kg*K) dT = 30 K Q = m * cp * dT [kW] bad = Q + m [kW] // this line gets a warning
Nonlinear equations start from a guess of 1 unless you say otherwise. A guess line sets the start value, and a comparison line such as 0.005 <= f <= 0.1 keeps a variable inside bounds. EQS also improves the default guesses on its own, so you rarely need many.
// Colebrook: an implicit equation for the friction factor Re = 500000 eps_D = 0.0015 1 / sqrt(f) = -2 * log10(eps_D / 3.7 + 2.51 / (Re * sqrt(f))) guess f = 0.02 0.005 <= f <= 0.1
A state line names one state of a fluid: the fluid first, then two inputs as name=value. Its properties are then members: vap.h, vap.s, vap.T. For one property alone, the property functions (enthalpy, density …) take the same arguments. The units line sets the units of every property; the default is SI, °C, kPa, kJ. Type 'enth' in the editor and the autocomplete shows the signatures.
units SI °C kPa kJ P = 800 // saturated R134a vapour: one state, its properties as members vap = state(R134a, P=P, x=1) h_g = vap.h s_g = vap.s T_sat = vap.T // one property: the function form rho = density(Water, T=25, P=101.325)
State points named T_1 s_1, T_2 s_2 ... or T[1] s[1] are found automatically by the Property plot tab: draw the T-s diagram of this refrigeration cycle after solving it.
units SI °C kPa kJ P_evap = 140 ; P_cond = 800 h[1] = enthalpy(R134a, P=P_evap, x=1) ; s[1] = entropy(R134a, P=P_evap, x=1) ; T[1] = t_sat(R134a, P=P_evap) s[2] = s[1] ; h[2] = enthalpy(R134a, P=P_cond, s=s[2]) ; T[2] = temperature(R134a, P=P_cond, s=s[2]) h[3] = enthalpy(R134a, P=P_cond, x=0) ; s[3] = entropy(R134a, P=P_cond, x=0) ; T[3] = t_sat(R134a, P=P_cond) h[4] = h[3] ; s[4] = entropy(R134a, P=P_evap, h=h[4]) ; T[4] = T[1] COP = (h[1] - h[4]) / (h[2] - h[1])
Any variable set as 'name = number' can be swept. Open the Parametric table tab, vary P_cond from 600 to 1200 in 7 rows, run, and plot COP against it. The same study can live in the file: sweep P_cond from 600 to 1200 step 100, then plot COP vs P_cond.
The same 'name = number' variables can be optimised or carry an uncertainty. Either use the Optimise / Uncertainty tab, or put the request in the file (maximize … over …, uncertainty of … given …) so it runs after every solve.
x = 0 y = 0 f = 10 - (x - 1)^2 - 2 * (y + 2)^2 maximize f over x in -5..5, y in -5..5 uncertainty of f given x ± 0.1, y ± 0.1
Write your own functions: the lines of a function run in order, = assigns, return gives the result, and if … then … else … end and repeat … until choose and loop. A function with -> (…) gives several results, called as (t, d) = stats(3, 8). A for loop writes many equations at once, with arrays, and sum(… for …) adds them.
function area(w, h)
return w * h
end
function stats(a, b) -> (total, diff)
total = a + b
if a > b then
diff = a - b
else
diff = b - a
end
end
A = area(3, 4)
(t, d) = stats(3, 8)
N = 5
for i in 1..N
sq[i] = i^2
end
total_sq = sum(sq[i] for i in 1..N)A time problem is written with der(): der(T) is the rate of change of T. An initial line gives the start value, and simulate sets the time range, the step and the variables to record; the trajectory appears in the Integral table, plotted. Names ignore letter case, so the time is called time here: t would be T.
// A tank cooling towards the room: dT/dtime = -(T - T_amb) / tau T_amb = 20 ; tau = 600 der(T) = -(T - T_amb) / tau initial T = 90 simulate time from 0 to 3600 step 60 record T
The line complex on makes every variable complex. Write 4i or j for the imaginary unit, polar(r, angle) for a phasor; abs and angle give magnitude and phase, conj the conjugate. Results show both forms. Load this series RL circuit and solve.
complex on units SI degrees V = polar(230, 0) Z = 12 + j * 2 * pi * 50 * 0.04 I = V / Z I_rms = abs(I) phi = angle(Z) S = V * conj(I) P = real(S) ; Q = imag(S)
The Parametric table tab is an editable grid: add columns, type values (they turn blue), Alter values fills a column, Run (F3) solves every row. The Plots tab draws any columns against each other, overlays curves, fits them. The Diagram tab is the front panel: in development mode add input fields bound to variables and output fields, switch to application mode (Ctrl+D), type values and press Calculate. A default line gives an input its value until the table or the diagram gives another. Load this file, then set P_cond from the table or the diagram.
units SI °C kPa kJ default P_cond = 800 default P_evap = 140 s1 = state(R134a, P=P_evap, x=1) s2 = state(R134a, P=P_cond, s=s1.s) s3 = state(R134a, P=P_cond, x=0) COP = (s1.h - s3.h) / (s2.h - s1.h) key COP 'coefficient of performance'
Equations over a grid are still equations: this 12 x 12 conduction field is 144 unknowns in one block. Larger fields (10,000 unknowns) take under a minute. For flow, the Flow tab has a live 2-D solver: draw walls with the mouse.
N = 12 ; M = 12
G = 2 ; h = 5 ; T_amb = 20 ; q = 500
for i in 1..N
for j in 1..M
G*(T[max(i-1,1),j] - T[i,j]) + G*(T[min(i+1,N),j] - T[i,j]) + G*(T[i,max(j-1,1)] - T[i,j]) + G*(T[i,min(j+1,M)] - T[i,j]) + q * (if j > 6 then 0.5 else 1.5) - h*(T[i,j] - T_amb) = 0
end
end
T_hot = T[6,1] ; T_cold = T[6,12]A use line loads a library of routines into the model: the shipped heat_transfer library has fins, Nusselt correlations, effectiveness-NTU and radiation. Strings hold fluid names and units (Concat$, Uppercase$, a unit taken from a string as in h = 850 U$), and brines take a C= concentration in per cent. Load, press F2, then open Properties → Function Info to browse what is available.
use heat_transfer units SI °C kPa kJ fluid$ = 'EG' U$ = 'W/(m^2*K)' rho = density(fluid$, T=20, P=100, C=40) // 40 % ethylene glycol brine h = 850 U$ eta = eta_fin_straight(h, 237, 0.003, 0.05) eps = effectiveness_counterflow(2, 0.5)
Tables → New Parametric Table with a column for x (Alter Values 0 to 4), then in the Min/Max window choose f, vary y:-5:5 and press Min/Max Table (F5): every row gets its optimum. Uncertainty Table does the same for x:5% and shows value ± sigma with error bars in plots. A 2-D array T[i,j] plots as a contour: Plots → New Plot, kind contour, source 2-D arrays.
x = 1
y = 0
f = (x - 2)^2 + (y + 1)^2 + 3
for i in 1..12
for j in 1..8
T[i,j] = 20 + 60 * exp(-((i - 5)^2 + (j - 4)^2) / 6)
end
endThe short guide of Help → EQS for Excel Users.
In Excel, C1 = A1 + B1 always computes C1 from the cells it points at. In EQS you write equations with names, and EQS finds which variable each one gives: y = x + 1 can just as well give x when y is known. The order of the lines does not matter, and there are no cell references to keep straight. Load this step: the values appear at the end of each line, as a sheet shows its results.
// Excel would need x first; EQS solves the line for whichever is unknown y = 10 y = x + 1 z = 2*x
Lines that set a variable to a number are the inputs, like the cells you type into. Analyze → Inputs and Results (the ⊞ button) shows them as editable cells with their units, and every result beside them. Type a new value and press Enter: the line changes and everything is solved again, as a sheet recalculates.
// A pipe: pressure drop from flow, diameter and length Q = 0.01 m^3/s // flow D = 0.05 m // diameter L = 100 m // length f = 0.02 // friction factor rho = 1000 kg/m^3 v = Q/(pi*D^2/4) dP = f*(L/D)*rho*v^2/2
EQS solves again by itself when you stop typing, and shows each result at the end of its line (View → Live Solve). F2 is the full solve, with the Solution window, plots and the files a model writes; it is EQS's F9. A line that cannot be solved shows why, in red, where a sheet would show #VALUE!.
a = 3 b = 4 c = sqrt(a^2 + b^2) // try b = -4 and then sqrt(a - 5): the reason shows on the line
Write a unit after a number: m = 2 kg/s. Results take their units from the equations, and Model → Check Units warns when the two sides of an equation disagree, a mistake a sheet never notices. Model → Unit System sets the units of property functions (C or K, kPa or bar …).
m = 2 kg/s cp = 4.18 kJ/(kg*K) dT = 15 K Q = m*cp*dT
Tables → New Parametric Table makes a grid of runs: each column a variable, each row one calculation. Type values in an input column and the row is solved at once. Select two cells and drag the small square at the corner down to continue the series, as Excel's fill handle does. Ctrl+Z undoes, Ctrl+C copies a block for your spreadsheet, and Paste takes a range from it.
// Make a table with the columns D and dP, type diameters, drag the fill handle Q = 0.01 L = 100 f = 0.02 rho = 1000 D = 0.05 v = Q/(pi*D^2/4) dP = f*(L/D)*rho*v^2/2
Paste a copied range into the parametric table (a first row of names chooses the columns). Lookup tables open .xlsx workbooks, one table per sheet, for Interpolate and Lookup in the equations. Save Table writes .xlsx or .csv, and Copy CSV (Solution, tables, the property calculator) puts results on the clipboard for a sheet.
Most sheet functions have the same name: sqrt, exp, ln, log10, abs, min, max, sum, average, round, pi. IF(test; a; b) is if test then a else b. Arguments are separated by commas. Hover a function name for its help, or type two letters for the list.
x = 7 r = sqrt(x) big = if x > 5 then 1 else 0 m = max(x, 10) avg = average(2, 4, 9)
In Excel you ask Goal Seek to change a cell until another reaches a target. In EQS you write the target as an equation and leave the cell out: EQS solves for it. For the best value of something, Analyze → Min/Max does what Solver does.
// Which diameter gives a pressure drop of 20 kPa? Q = 0.01 L = 100 f = 0.02 rho = 1000 dP = 20000 v = Q/(pi*D^2/4) dP = f*(L/D)*rho*v^2/2
Analyze → What Drives This Result? ranks every input by its effect on a result (a tornado chart), and a Monte Carlo run gives the spread of the result when the inputs are uncertain: the questions a sheet answers with data tables and copied formulas.
Q = 0.01 L = 100 f = 0.02 rho = 1000 D = 0.05 v = Q/(pi*D^2/4) dP = f*(L/D)*rho*v^2/2
View → Simple Mode keeps the everyday menus and buttons; switch it off to see every menu (macros, the grader, distributables …). Properties → Property Calculator gives every property of a fluid from two values, and Help → Help Index lists the functions, units and constants.
377 functions, as EQS computes them. Property results and inputs follow the file's units line
(default °C, kPa, kJ, per kg); trigonometry works in degrees unless the units line says radians. A routine with several
outputs is written as it is called: (x, y) = name(a, b). Type a word to filter every table on this page.
| Function | What it does, its parameters, an example |
|---|---|
pi | The constant π = 3.14159…, unless the file defines a variable named pi. Example: A = pi*D^2/4 |
sqrt(x) | Square root; with complex on the principal complex root.
Example: r = sqrt(A/pi) |
abs(x) | Absolute value; with complex on the magnitude |z|.
Example: dT = abs(T_1 - T_2) |
exp(x) | e raised to the power x (the complex exponential with complex on).
Example: y = exp(-t/tau) |
ln(x) | Natural logarithm (principal complex logarithm with complex on).
Example: s = cp*ln(T_2/T_1) |
log10(x) | Base-10 logarithm.
Example: pH = -log10(c_H) |
log(x) | Base-10 logarithm in EQS, the same as log10 (use ln for the natural logarithm).
Example: dB = 10*log(P/P_ref) |
pow(x, y) | x raised to the power y, the same as x^y.
Example: V = pow(r, 3)*4/3*pi |
sign(x) | 1 for x ≥ 0 (zero included), -1 for x < 0. A step: the solver sees no derivative through it.
Example: F = -sign(v)*F_friction |
floor(x) | Largest integer ≤ x. A step: no derivative for the solver.
Example: n = floor(L/pitch) |
ceil(x) | Smallest integer ≥ x. A step: no derivative for the solver.
Example: N_tubes = ceil(A/A_tube) |
round(x, m) | Nearest integer (halves away from zero); with a second argument the nearest multiple of m. No derivative for the solver.
Example: D_std = round(D, 0.005) |
trunc(x) | Integer part of x, towards zero. No derivative for the solver.
Example: k = trunc(t/period) |
gcd(a, b) | Greatest common divisor of two whole numbers (rounded first). No derivative for the solver.
Example: g = gcd(84, 36) |
lcm(a, b) | Least common multiple of two whole numbers (rounded first). No derivative for the solver.
Example: lcd = lcm(12, 18) |
mod(x, y) | Remainder of x/y with the sign of x (x - y*trunc(x/y)). No derivative for the solver.
Example: phase = mod(t, period) |
min(a, b, ...) | Smallest of the arguments (any number of them).
Example: dT_min = min(T_h_in - T_c_out, T_h_out - T_c_in) |
max(a, b, ...) | Largest of the arguments (any number of them).
Example: Q_max = max(Q_1, Q_2, Q_3) |
sum(a, b, ...) | Sum of the arguments; an array range A[1..N] counts as its elements. Indexed form: sum(expr for j in lo..hi) adds expr for j = lo … hi (constant bounds).
Example: m_total = sum(m[j] for j in 1..N) |
product(a, b, ...) | Product of the arguments; indexed form product(expr for j in lo..hi) multiplies expr for j = lo … hi (constant bounds).
Example: eta = product(eta[j] for j in 1..3) |
average(a, b, ...) | Arithmetic mean of the arguments; an array range A[1..N] counts as its elements.
Example: T_avg = average(T[1..N]) |
stddev(a, b, ...) | Sample standard deviation of the arguments (divides by n - 1).
Example: s_T = stddev(T[1..N]) |
lmtd(dT_1, dT_2) | Log-mean temperature difference (dT_1 - dT_2)/ln(dT_1/dT_2); the arithmetic mean when the two are equal. Both must have the same sign.
Example: Q = U*A*lmtd(T_h_in - T_c_out, T_h_out - T_c_in) |
lmtd_f(dT_1, dT_2) | The same as lmtd: log-mean temperature difference of the two end differences.
Example: dT_lm = lmtd_f(dT_a, dT_b) |
heaviside(x) | Unit step: 1 for x ≥ 0, else 0. No derivative for the solver.
Example: Q = Q_0*heaviside(t - t_on) |
step(x) | Unit step, the same as heaviside: 1 for x ≥ 0, else 0.
Example: P = P_max*step(t - 10) |
squarewave(t, period, v1, v2, duty) | v1 for the first duty fraction of each period and v2 for the rest; duty is 0.5 when left out.
Example: Q_in = squarewave(time, 3600, 5, 0, 0.25) |
convert(From, To, x) | With x: the value x in unit From converted to unit To, the same for every unit; between temperature scales (C, K, F, R) it adds the offset, convert(C, K, 25) = 298.15. Without x: the factor from From to To, convert(kPa, Pa) = 1000. Between C, F and K a factor could mean a temperature or a difference, so it needs x for a temperature, and DELTAC, DELTAF, DELTAK for a difference: convert(DELTAC, DELTAF) = 1.8. Units may be written bare or quoted.
Example: T_K = convert(C, K, T_1) |
| Function | What it does, its parameters, an example |
|---|---|
sin(angle) | Sine of an angle in degrees, or radians when the units line says radians (complex with complex on).
Example: F_y = F*sin(theta) |
cos(angle) | Cosine of an angle in degrees, or radians when the units line says radians (complex with complex on).
Example: F_x = F*cos(theta) |
tan(angle) | Tangent of an angle in degrees, or radians when the units line says radians.
Example: h = L*tan(alpha) |
arcsin(x) | Inverse sine, in degrees (radians when the units line says radians).
Example: theta = arcsin(n_1/n_2*sin(phi)) |
asin(x) | Inverse sine, the same as arcsin: in degrees (radians when the units line says radians).
Example: theta = asin(0.5) |
arccos(x) | Inverse cosine, in degrees (radians when the units line says radians).
Example: phi = arccos(PF) |
acos(x) | Inverse cosine, the same as arccos: in degrees (radians when the units line says radians).
Example: phi = acos(PF) |
arctan(x) | Inverse tangent, -90 … 90 degrees (radians when the units line says radians).
Example: alpha = arctan(h/L) |
atan(x) | Inverse tangent, the same as arctan: in degrees (radians when the units line says radians).
Example: alpha = atan(h/L) |
atan2(y, x) | Angle of the point (x, y) from the +x axis, -180 … 180 degrees (-π … π when the units line says radians). Note the order: y first.
Example: theta = atan2(F_y, F_x) |
arctan2(y, x) | The same as atan2: angle of the point (x, y) from +x, y first.
Example: theta = arctan2(F_y, F_x) |
sinh(x) | Hyperbolic sine (eˣ - e⁻ˣ)/2.
Example: y = a*sinh(x/a) |
cosh(x) | Hyperbolic cosine (eˣ + e⁻ˣ)/2.
Example: y = a*cosh(x/a) |
tanh(x) | Hyperbolic tangent.
Example: eta_fin = tanh(m*L)/(m*L) |
arcsinh(x) | Inverse hyperbolic sine ln(x + √(x²+1)).
Example: u = arcsinh(x/a) |
asinh(x) | Inverse hyperbolic sine, the same as arcsinh.
Example: u = asinh(x/a) |
arccosh(x) | Inverse hyperbolic cosine ln(x + √(x²-1)).
Example: u = arccosh(y/a) |
acosh(x) | Inverse hyperbolic cosine, the same as arccosh.
Example: u = acosh(y/a) |
arctanh(x) | Inverse hyperbolic tangent ½ ln((1+x)/(1-x)).
Example: u = arctanh(v/c) |
atanh(x) | Inverse hyperbolic tangent, the same as arctanh.
Example: u = atanh(v/c) |
| Function | What it does, its parameters, an example |
|---|---|
erf(x) | Error function (2/√π)∫₀ˣ e^(-t²) dt.
Example: theta = erf(x/(2*sqrt(alpha*t))) |
hypot(x, y) | √(x² + y²) without overflow or underflow; the result has the unit of x.
Example: v = hypot(v_x, v_y) |
log2(x) | Logarithm to base 2.
Example: bits = log2(N_levels) |
log1p(x) | ln(1 + x), exact also when x is very small (ln(1 + x) would lose the digits).
Example: r_cont = log1p(i_annual) |
expm1(x) | eˣ − 1, exact also when x is very small.
Example: dV_V = expm1(beta_T*dT) |
clamp(x, lo, hi) | x kept between lo and hi: lo when x < lo, hi when x > hi, else x.
Example: eta_used = clamp(eta, 0, 1) |
LambertW(x) | Lambert's W, the principal branch W₀: the w ≥ −1 with w·eʷ = x, for x ≥ −1/e. Gives the Colebrook friction factor in closed form.
Example: w = LambertW(exp(b/(a*c))/(a*c)) |
LambertW_m1(x) | Lambert's W, the lower branch W₋₁: the w ≤ −1 with w·eʷ = x, for −1/e ≤ x < 0.
Example: w = LambertW_m1(-0.2) |
erfinv(x) | Inverse error function: the w with erf(w) = x.
Example: z = sqrt(2)*erfinv(2*p - 1) |
erfcinv(x) | Inverse complementary error function: the w with erfc(w) = x, precise for tiny x.
Example: eta = erfcinv(theta) |
lngamma(x) | ln Γ(x), for arguments where Γ itself would overflow (x > 171).
Example: lnN = lngamma(N + 1) |
beta(a, b) | The beta function B(a, b) = Γ(a) Γ(b) / Γ(a + b).
Example: B = beta(2.5, 3.5) |
betainc(x, a, b) | The regularized incomplete beta function I_x(a, b) (SciPy's betainc(a, b, x)).
Example: F = betainc(0.3, 2, 5) |
gammainc(a, x) | The regularized lower incomplete gamma function P(a, x).
Example: P = gammainc(2.5, 1.5) |
gammaincc(a, x) | The regularized upper incomplete gamma function Q(a, x) = 1 − P(a, x), precise in the tail.
Example: Q = gammaincc(2.5, 30) |
erfc(x) | Complementary error function 1 - erf(x), accurate far into the tail.
Example: T = T_s + (T_i - T_s)*erfc(x/(2*sqrt(alpha*t))) |
gamma_(x) | Gamma function Γ(x); Γ(n) = (n-1)! for whole n.
Example: G = gamma_(1.5) |
gamma(x) | Gamma function Γ(x), the same as gamma_. With a fluid and named state inputs, gamma(CO2, T=300) is the specific-heat ratio cp/cv instead, as SpecHeatRatio.
Example: G = gamma(2.5) |
factorial(n) | n! of round(n); 1 for n ≤ 1. No derivative for the solver.
Example: C = factorial(N)/(factorial(k)*factorial(N - k)) |
besselj(n, x) | Bessel function of the first kind Jₙ(x) of integer order n.
Example: J = besselj(2, 3.5) |
bessely(n, x) | Bessel function of the second kind Yₙ(x) of integer order n.
Example: Y = bessely(1, r*m) |
besseli(n, x) | Modified Bessel function of the first kind Iₙ(x) of integer order n.
Example: I = besseli(0, m*r) |
besselk(n, x) | Modified Bessel function of the second kind Kₙ(x) of integer order n.
Example: K = besselk(1, m*r_2) |
bessel_j0(x) | Bessel function of the first kind, order 0: J₀(x).
Example: J0 = bessel_j0(2.405) |
bessel_j1(x) | Bessel function of the first kind, order 1: J₁(x).
Example: J1 = bessel_j1(lambda) |
bessel_y0(x) | Bessel function of the second kind, order 0: Y₀(x).
Example: Y0 = bessel_y0(x) |
bessel_y1(x) | Bessel function of the second kind, order 1: Y₁(x).
Example: Y1 = bessel_y1(x) |
bessel_i0(x) | Modified Bessel function of the first kind, order 0: I₀(x).
Example: I0 = bessel_i0(m*r_1) |
bessel_i1(x) | Modified Bessel function of the first kind, order 1: I₁(x).
Example: I1 = bessel_i1(m*r_1) |
bessel_k0(x) | Modified Bessel function of the second kind, order 0: K₀(x).
Example: K0 = bessel_k0(m*r_2) |
bessel_k1(x) | Modified Bessel function of the second kind, order 1: K₁(x).
Example: K1 = bessel_k1(m*r_2) |
Kelvin_ber(x) | Kelvin function ber(x), the real part of J₀(x e^(3πi/4)); power series, accurate to about x = 10. ber(0) = 1.
Example: b = Kelvin_ber(2) |
Kelvin_bei(x) | Kelvin function bei(x), the imaginary part of J₀(x e^(3πi/4)). bei(0) = 0.
Example: b = Kelvin_bei(2) |
Kelvin_ker(x) | Kelvin function ker(x), the real part of K₀(x e^(πi/4)); infinite at x = 0.
Example: k = Kelvin_ker(2) |
Kelvin_kei(x) | Kelvin function kei(x), the imaginary part of K₀(x e^(πi/4)); -π/4 at x = 0.
Example: k = Kelvin_kei(2) |
| Function | What it does, its parameters, an example |
|---|---|
probability(x1, x2, mean, sd) | Chance that a normally distributed variable lies between x1 and x2.
Example: P_ok = probability(9.9, 10.1, D_mean, sigma_D) |
students_t(t, dof) | Two-sided confidence that a Student-t variable lies within ±t: P(|T| < t).
Example: conf = students_t(2.228, 10) |
chi_square(x, k) | Cumulative chi-square distribution with k degrees of freedom: P(X < x).
Example: p = chi_square(18.3, 10) |
random(a, b, seed) | Uniform random number between a and b, drawn once per solve (a fixed number while the equations are solved). A positive constant seed makes it repeatable.
Example: T_amb = random(15, 25) |
randg(mean, sd, seed) | Normally distributed random number, drawn once per solve. A positive constant seed makes it repeatable.
Example: D = randg(0.025, 0.0001) |
| Function | What it does, its parameters, an example |
|---|---|
median(a, b, ...) | The median: the middle value, or the mean of the two middle values; an array range X[1..N] counts as its elements. Keeps the unit of the data.
Example: T_med = median(T[1..N]) |
percentile(p, a, b, ...) | The p-th percentile (p in %), linear between the sorted values (NumPy's default, R type 7); an array range counts as its elements.
Example: P_95 = percentile(95, P[1..N]) |
variance(a, b, ...) | The sample variance (divides by n − 1), the square of stddev; the unit is the data's squared.
Example: s2 = variance(D[1..N]) |
correlation(X[1..N], Y[1..N]) | Pearson's correlation coefficient r of two data arrays of the same length (−1 … 1).
Example: r = correlation(T[1..N], Q[1..N]) |
NormalCDF(x, mean, sd) | The normal distribution: the probability that a normal variable is below x.
Example: P_below = NormalCDF(9.95, D_mean, sigma_D) |
NormalPDF(x, mean, sd) | The normal density at x (unit: 1 over the unit of x).
Example: f = NormalPDF(x, 0, 1) |
NormalInv(p, mean, sd) | The normal quantile: the x below which a normal variable lies with probability p (R's qnorm).
Example: D_max = NormalInv(0.999, D_mean, sigma_D) |
TCDF(t, dof) | Student's t, one-sided: P(T ≤ t) (R's pt). Students_T is the two-sided form.
Example: p = TCDF(2.228, 10) |
TInv(p, dof) | Student's t quantile: the t with P(T ≤ t) = p (R's qt); TInv(0.975, N-1) is the t of a 95 % two-sided interval.
Example: t_95 = TInv(0.975, N - 1) |
ChiSquareInv(p, dof) | The χ² quantile: the x with Chi_Square(x, dof) = p.
Example: chi2_crit = ChiSquareInv(0.95, 3) |
FCDF(F, d1, d2) | The F distribution: P(X ≤ F) with d1 and d2 degrees of freedom.
Example: p = FCDF(F_ratio, 3, 10) |
FInv(p, d1, d2) | The F quantile: the F with FCDF(F, d1, d2) = p.
Example: F_crit = FInv(0.95, 3, 10) |
WeibullCDF(x, k, lambda) | The Weibull distribution (fatigue, failure): 1 − exp(−(x/λ)^k) for x ≥ 0.
Example: F_fail = WeibullCDF(t_op, 1.8, 12000) |
WeibullInv(p, k, lambda) | The Weibull quantile λ (−ln(1 − p))^(1/k); keeps the unit of λ. WeibullInv(0.1, k, λ) is the B10 life.
Example: L_10 = WeibullInv(0.1, 1.5, 20000) |
LognormalCDF(x, mu, sigma) | The lognormal distribution Φ((ln x − μ)/σ); μ and σ are the mean and standard deviation of ln x.
Example: F = LognormalCDF(d, ln(50), 0.4) |
LognormalInv(p, mu, sigma) | The lognormal quantile exp(μ + σ Φ⁻¹(p)).
Example: d_90 = LognormalInv(0.9, ln(50), 0.4) |
(low, high) = ConfidenceInterval(level, X[1..N]) | The confidence interval mean ± t·s/√N of the mean of X at a level in % (Student's t with N − 1 degrees of freedom, as R's t.test). low and high keep the unit of X.
Example: (eta_lo, eta_hi) = ConfidenceInterval(95, eta[1..10]) |
| Function | What it does, its parameters, an example |
|---|---|
Trapz(Y[1..N], X[1..N]) | ∫ y dx of tabulated data by the trapezoid rule (numpy.trapezoid); the steps may be uneven. The unit is the unit of Y times the unit of X: the energy of a power log.
Example: E = Trapz(P[1..N], t[1..N]) |
Simpson(Y[1..N], X[1..N]) | ∫ y dx of tabulated data by Simpson's rule for uneven steps, with Cartwright's correction for the last interval when N is even (scipy.integrate.simpson).
Example: E = Simpson(P[1..N], t[1..N]) |
(I[1..N]) = CumTrapz(Y[1..N], X[1..N]) | The running trapezoid integral, I[1] = 0 and I[N] = Trapz(Y, X) (scipy.integrate.cumulative_trapezoid).
Example: (E[1..N]) = CumTrapz(P[1..N], t[1..N]) |
(dY[1..N]) = Gradient(Y[1..N], X[1..N]) | dy/dx at each point, second-order central differences for uneven steps and one-sided differences at the two ends (numpy.gradient). The unit is the unit of Y over the unit of X.
Example: (dTdt[1..N]) = Gradient(T[1..N], t[1..N]) |
IntegralLookup('Table', 'x', 'y', x1, x2) | ∫ y dx from x1 to x2 over two columns of a lookup table: linear between the rows (the trapezoid rule), extended linearly beyond the table with a warning.
Example: E = IntegralLookup('PowerLog', 't', 'P', 0, 3600) |
| Function | What it does, its parameters, an example |
|---|---|
LinInterp(X[1..N], Y[1..N], x) | Linear interpolation in arrays (numpy.interp): straight lines between the points, X increasing. Outside the data the end value is kept, with a warning.
Example: H = LinInterp(Q[1..N], H_data[1..N], Q_op) |
Spline(X[1..N], Y[1..N], x) | The natural cubic spline through the points (SciPy's CubicSpline with natural ends): smooth, with a continuous curvature. Beyond the data the end polynomial is extended, with a warning.
Example: c_p = Spline(T[1..N], cp_data[1..N], T_mean) |
SplineDeriv(X[1..N], Y[1..N], x) | The slope dy/dx of the natural cubic spline at x; the unit is the unit of Y over the unit of X.
Example: dHdQ = SplineDeriv(Q[1..N], H[1..N], Q_op) |
Pchip(X[1..N], Y[1..N], x) | The monotone piecewise cubic (SciPy's PchipInterpolator): smooth, and never above or below the data between two points, so a monotone curve stays monotone.
Example: eta = Pchip(load[1..N], eta_data[1..N], load_op) |
| Function | What it does, its parameters, an example |
|---|---|
PolyVal(a[0..n], x) | The polynomial a[0] + a[1]·x + … + a[n]·xⁿ by Horner's rule; the coefficients go lowest power first, as the curve fits give them.
Example: cp = PolyVal(c[0..3], T) |
(re[1..n], im[1..n]) = PolyRoots(a[0..n]) | All n roots of a[0] + a[1]·x + … + a[n]·xⁿ, real parts then imaginary parts, sorted by real part (the eigenvalues of the companion matrix, as numpy.roots). With complex on it may give complex variables: (z[1..n]) = PolyRoots(a[0..n]).
Example: (re[1..3], im[1..3]) = PolyRoots(a[0..3]) |
(r[1..n], count) = PolyRealRoots(a[0..n]) | The real roots of the polynomial in ascending order, the remaining places 0, and how many there are.
Example: (Z[1..3], n_real) = PolyRealRoots(a[0..3]) |
| Function | What it does, its parameters, an example |
|---|---|
(x[1..n]) = MatrixSolve(A[1..n, 1..n], b[1..n]) | x with A·x = b, by LU decomposition with partial pivoting (numpy.linalg.solve); b may be an n×k matrix. Unknowns may be inside A and b. An error names the pivot when A is singular.
Example: (x[1..3]) = MatrixSolve(A[1..3, 1..3], b[1..3]) |
(B[1..n, 1..n]) = MatrixInverse(A[1..n, 1..n]) | The inverse matrix A⁻¹ (numpy.linalg.inv). To solve A·x = b, MatrixSolve is faster and more precise.
Example: (C[1..3, 1..3]) = MatrixInverse(K[1..3, 1..3]) |
(C[1..n, 1..p]) = MatrixMultiply(A[1..n, 1..m], B[1..m, 1..p]) | The product A·B; B may be a vector B[1..m], then C is C[1..n].
Example: (F[1..3]) = MatrixMultiply(K[1..3, 1..3], u[1..3]) |
(B[1..m, 1..n]) = MatrixTranspose(A[1..n, 1..m]) | The transpose Aᵀ.
Example: (At[1..3, 1..2]) = MatrixTranspose(A[1..2, 1..3]) |
Determinant(A[1..n, 1..n]) | The determinant det A, from the LU decomposition (numpy.linalg.det); 0 for a singular matrix.
Example: D = Determinant(K[1..3, 1..3]) |
Trace(A[1..n, 1..n]) | The sum of the diagonal of a square matrix.
Example: tr = Trace(S[1..3, 1..3]) |
Norm(x[1..n]) | The Euclidean length √(Σ x²) of a vector of any size, without overflow (of a matrix: the Frobenius norm). Keeps the unit of x.
Example: F_res = Norm(F[1..3]) |
(lambda[1..n], V[1..n, 1..n]) = EigenSym(A[1..n, 1..n]) | The eigenvalues of a symmetric matrix, ascending, and its unit eigenvectors as the columns of V, each with its largest component positive (Jacobi's method; numpy.linalg.eigh). V may be left out. The vibration modes: the eigenvalues of M^(-1/2) K M^(-1/2) are ω².
Example: (lambda[1..3], V[1..3, 1..3]) = EigenSym(S[1..3, 1..3]) |
(re[1..n], im[1..n]) = Eigen(A[1..n, 1..n]) | The eigenvalues of any real square matrix, real parts then imaginary parts, sorted by real part (Francis QR; numpy.linalg.eigvals). With complex on it may give complex variables: (z[1..n]) = Eigen(A[1..n, 1..n]).
Example: (re[1..4], im[1..4]) = Eigen(J[1..4, 1..4]) |
| Function | What it does, its parameters, an example |
|---|---|
(S[1..N]) = MovingAverage(Y[1..N], w) | The centred moving average over w samples (w odd); near the ends the window holds only the samples there are (pandas rolling mean, center=True).
Example: (T_s[1..N]) = MovingAverage(T[1..N], 5) |
(S[1..N]) = SavGol(Y[1..N], w, order) | Savitzky–Golay smoothing: a least-squares polynomial of the given order through each window of w samples (w odd, order < w ≤ N); the end windows are fitted as a whole (scipy.signal.savgol_filter).
Example: (T_s[1..N]) = SavGol(T[1..N], 9, 3) |
(f[1..M], A[1..M]) = Spectrum(Y[1..N], dt) | The one-sided amplitude spectrum of N samples taken every dt, M = N/2 + 1 (rounded down): f from 0 to the Nyquist frequency and A the amplitude of the sine at each (FFT; Bluestein's algorithm when N is not a power of 2).
Example: (f[1..129], A[1..129]) = Spectrum(a[1..256], 0.001) |
| Function | What it does, its parameters, an example |
|---|---|
(x[1..n], f) = LinProg(c[1..n], A[1..m, 1..n], b[1..m], lo[1..n], hi[1..n]) | The linear program min cᵀx with A·x ≤ b and lo ≤ x ≤ hi, by the revised simplex method (two phases, Bland's rule). A bound of 1e20 or more means none; maximise by minimising −cᵀx; an equality is two rows. Errors say when the problem is infeasible or unbounded.
Example: (x[1..2], f) = LinProg(c[1..2], A[1..3, 1..2], b[1..3], lo[1..2], hi[1..2]) |
(x[1..n], f) = LinProgInt(c[1..n], A[1..m, 1..n], b[1..m], lo[1..n], hi[1..n], isInt[1..n]) | LinProg with the variables whose isInt is not 0 kept whole numbers, by branch and bound over the linear relaxations (scipy.optimize.milp).
Example: (x[1..3], f) = LinProgInt(c[1..3], A[1..2, 1..3], b[1..2], lo[1..3], hi[1..3], isInt[1..3]) |
| Function | What it does, its parameters, an example |
|---|---|
UncertaintyOf(x) | The standard uncertainty σ of x after an uncertainty propagation (uncertainty of …); 0 in a plain solve.
Example: sigma_eta = UncertaintyOf(eta) |
Uncert_ParDif(y, x) | The partial derivative ∂y/∂x from the uncertainty propagation; 0 in a plain solve.
Example: dEta_dT = Uncert_ParDif(eta, T_1) |
Uncert_Percent(y, x) | The share (%) of y's variance that comes from the uncertainty of x; 0 in a plain solve.
Example: share_T = Uncert_Percent(eta, T_1) |
| Function | What it does, its parameters, an example |
|---|---|
(z1, z2, z3) = RealCubicRoots(a2, a1, a0) | The real roots of z³ + a2 z² + a1 z + a0 = 0; with one real root, z2 and z3 are 0.
Example: (z1, z2, z3) = RealCubicRoots(-4, -3, 6) |
(P, T) = StdAtm_1976(Z) | Pressure and temperature of the 1976 U.S. Standard Atmosphere at altitude Z (m, ft in English units), valid -5 … 86 km; results in the file's units.
Example: (P_amb, T_amb) = StdAtm_1976(2000) |
(P, T) = StandardAtmosphere_1976(Z) | The same as StdAtm_1976: the 1976 Standard Atmosphere at altitude Z.
Example: (P, T) = StandardAtmosphere_1976(z) |
StdAtm_1976_P(Z) | Pressure of the 1976 U.S. Standard Atmosphere at altitude Z, in the file's pressure unit (the P output of StdAtm_1976).
Example: P_amb = StdAtm_1976_P(1500) |
StdAtm_1976_T(Z) | Temperature of the 1976 U.S. Standard Atmosphere at altitude Z, in the file's temperature unit (the T output of StdAtm_1976).
Example: T_amb = StdAtm_1976_T(1500) |
BarometricPressure(z) | Standard-atmosphere pressure at elevation z, 101325 (1 - 2.25577e-5 z)^5.25588 Pa, in the file's pressure unit.
Example: P_atm = BarometricPressure(450) |
VoltTC(Type$, T) | Thermocouple voltage in mV at T (C) with the reference junction at 0 C, from the NIST ITS-90 reference functions; an error outside the type's range.
Example: E_mV = VoltTC('K', T_gas) |
RGB(r, g, b) | Colour number r + 256 g + 65536 b (each rounded and clamped to 0 … 255), as the plot and diagram colours use.
Example: c = RGB(255, 128, 0) |
Compress(Tr, Pr, w) | Compressibility factor Z from the generalised Redlich-Kwong-Soave equation (GEN_EOS), vapour-like root.
Example: Z = Compress(T/T_c, P/P_c, 0.011) |
EnthDep(Tr, Pr, w) | Enthalpy departure (h_ideal - h)/(R Tc) from the generalised Redlich-Kwong-Soave equation.
Example: h = h_ig - R*T_c*EnthDep(T_r, P_r, omega) |
EntrDep(Tr, Pr, w) | Entropy departure (s_ideal - s)/R from the generalised Redlich-Kwong-Soave equation.
Example: s = s_ig - R*EntrDep(T_r, P_r, omega) |
FugCoef(Tr, Pr, w) | Fugacity coefficient f/P from the generalised Redlich-Kwong-Soave equation.
Example: f = P*FugCoef(T_r, P_r, omega) |
| Function | What it does, its parameters, an example |
|---|---|
PWF(N, i, d) | Present worth of N yearly payments that start at 1 and inflate at rate i, discounted at rate d; N/(1+i) when i = d.
Example: LCC = C_0 + C_fuel*PWF(20, 0.03, 0.07) |
P_1f(N, i, d, c, t_bar) | Ratio of life-cycle fuel savings to first-year fuel savings: (1 - c t_bar) PWF(N, i, d).
Example: P_1 = P_1f(20, 0.04, 0.08, 0, 0.3) |
P_2f(c, d, DD, i, m, M_s, N, N_L, N_D, p, R_v, t_bar, V) | Ratio of the life-cycle expenses caused by the extra investment to the investment: down payment, mortgage and its interest deduction, maintenance, property tax, depreciation, resale value.
Example: P_2 = P_2f(0, 0.1, 0.2, 0.035, 0.065, 0.01, 10, 10, 10, 0.035, 0, 0.35, 1) |
| Function | What it does, its parameters, an example |
|---|---|
Interpolate(Table$, xcol, ycol, x) | Cubic interpolation of column ycol at x in column xcol of a lookup table; the order Interpolate(Table$, ycol, xcol, xcol=x) works too. Extrapolates past the ends with a warning; two more arguments FirstRow, LastRow limit the rows. A last word 'spline' takes the natural cubic spline through all the rows, 'pchip' the monotone cubic (no overshoot).
Example: k = Interpolate('Conductivity', 'T', 'k', T_avg) |
Interpolate1(Table$, xcol, ycol, x) | Linear interpolation between the two nearest rows of a lookup table (same arguments as Interpolate).
Example: cp = Interpolate1('Oil', 'T', 'cp', T) |
Interpolate2(Table$, xcol, ycol, x) | Quadratic interpolation through the three nearest rows of a lookup table (same arguments as Interpolate).
Example: eta = Interpolate2('Pump', 'Q', 'eta', Q) |
Interpolate3(Table$, xcol, ycol, x) | The same as Interpolate: cubic interpolation in a lookup table.
Example: H = Interpolate3('Pump', 'Q', 'H', Q) |
Differentiate(Table$, ycol, xcol, xcol=x) | dy/dx at x from the cubic through the nearest four rows of a lookup table; the order (Table$, xcol, ycol, x) works too. Linear slope past the ends. A last word 'spline' or 'pchip' differentiates that curve instead.
Example: dkdT = Differentiate('Lookup 1', k, T, T=550) |
Differentiate1(Table$, ycol, xcol, xcol=x) | The same as Differentiate in EQS (the same fitted curve).
Example: s = Differentiate1('Data', y, x, x=2) |
Differentiate2(Table$, ycol, xcol, xcol=x) | The same as Differentiate in EQS (the same fitted curve).
Example: s = Differentiate2('Data', y, x, x=2) |
Interpolate2D(Table$, X, Y, Z, X=x, Y=y) | Column Z at the point (x, y) from scattered rows: a quadratic surface fitted to the nearest rows (a plane with fewer than six). The two columns named in the X=, Y= arguments are the independent ones.
Example: P = Interpolate2D('Map', T_cond, T_evap, P, T_cond=40, T_evap=-5) |
Interpolate2DM(Table$, x, y) | Bilinear interpolation in a matrix table: x values in the header row (from column 2), y values in the first column, z in the body; clamped outside.
Example: eta = Interpolate2DM('Efficiency', N, Q) |
Lookup(Table$, row, col) | A cell of a lookup table by 1-based row and column (number or name); a fractional row or column interpolates linearly. On the left of a line, Lookup(…) = expr writes the cell after the solve.
Example: T_1 = Lookup('Data', 3, 'T') |
TableValue(row, column) | A cell of the Parametric table being solved (rows solved so far); TableValue(Table$, row, col) with three arguments reads a lookup table like Lookup.
Example: T_prev = TableValue(table_run - 1, 'T') |
LookupCellEmpty(Table$, row, col) | 1 when the cell holds a value, 0 when it is empty: the opposite of what the name suggests (0 if the cell is empty, 1 if it contains a value).
Example: has = LookupCellEmpty('Data', i, 'T') |
LookupRow(Table$, col, value) | The (fractional) row at which column col takes the value: the inverse of Lookup, linear between rows, clamped at the ends.
Example: r = LookupRow('Data', 'T', 350) |
LookupRow1(Table$, col, value) | As LookupRow, leaving out the first row.
Example: r = LookupRow1('Map', 1, 350) |
LookupCol(Table$, row, value) | The (fractional) column in which the row takes the value, linear between columns. LookupCol(Table$, 'name') with two arguments is the column number of a named column.
Example: c = LookupCol('Map', 1, 2.5) |
LookupCol1(Table$, row, value) | As LookupCol, leaving out the first column (for Interpolate2DM-style tables).
Example: c = LookupCol1('Map', 1, 2.5) |
LookupColNumber(Table$, col$) | The 1-based number of a named column.
Example: k = LookupColNumber('Data', 'T') |
NLookupRows(Table$) | Number of rows of a lookup table.
Example: N = NLookupRows('Data') |
NLookupColumns(Table$) | Number of columns of a lookup table.
Example: M = NLookupColumns('Data') |
SumLookup(Table$, col, row1, row2) | Sum of a column of a lookup table; rows row1 … row2 when given.
Example: E = SumLookup('Hourly', 'Q') |
AvgLookup(Table$, col, row1, row2) | Mean of a column of a lookup table; rows row1 … row2 when given.
Example: T_mean = AvgLookup('Hourly', 'T') |
MaxLookup(Table$, col, row1, row2) | Largest value of a column of a lookup table; rows row1 … row2 when given.
Example: Q_peak = MaxLookup('Hourly', 'Q') |
MinLookup(Table$, col, row1, row2) | Smallest value of a column of a lookup table; rows row1 … row2 when given.
Example: T_low = MinLookup('Hourly', 'T') |
StdDevLookup(Table$, col, row1, row2) | Sample standard deviation of a column of a lookup table; rows row1 … row2 when given.
Example: s = StdDevLookup('Data', 'T') |
SumParametric(Table$, col, row1, row2) | Sum of a column of a solved Parametric table; rows row1 … row2 when given.
Example: W_total = SumParametric('Table 1', 'W') |
AvgParametric(Table$, col, row1, row2) | Mean of a column of a solved Parametric table.
Example: eta_avg = AvgParametric('Table 1', 'eta') |
MaxParametric(Table$, col, row1, row2) | Largest value of a column of a solved Parametric table.
Example: T_max = MaxParametric('Table 1', 'T') |
MinParametric(Table$, col, row1, row2) | Smallest value of a column of a solved Parametric table.
Example: T_min = MinParametric('Table 1', 'T') |
StdDevParametric(Table$, col, row1, row2) | Sample standard deviation of a column of a solved Parametric table.
Example: s = StdDevParametric('Table 1', 'eta') |
NParametricRows(Table$) | Number of rows of a Parametric table.
Example: N = NParametricRows('Table 1') |
NParametricColumns(Table$) | Number of columns of a Parametric table.
Example: M = NParametricColumns('Table 1') |
NArrayRows(Table$) | Rows of the Arrays table of the main program ('Main'): the largest first index of any array; 0 for another table.
Example: N = NArrayRows('Main') |
NArrayColumns(Table$) | Columns of the Arrays table of the main program ('Main'): the number of arrays; 0 for another table.
Example: M = NArrayColumns('Main') |
| Function | What it does, its parameters, an example |
|---|---|
Integral(f, t, t0, t1, step) | ∫ f dt from t0 to t1, marched in steps with the other equations solved at each one (integraltable and integralautostep set the output and the step); inside another Integral a Simpson quadrature. Integral(f, t) with two arguments accumulates down the rows of a Parametric table.
Example: T = T_0 + Integral(dTdt, time, 0, 3600) |
IntegralValue(t, Name$) | A variable's value at an earlier time t of the integration (only inside an Integral problem).
Example: y_delay = IntegralValue(time - 1, 'y') |
MinIntegral(Name$) | The smallest value of a variable over the integration steps so far (0 before the first).
Example: T_low = MinIntegral('T') |
MaxIntegral(Name$) | The largest value of a variable over the integration steps so far (0 before the first).
Example: T_high = MaxIntegral('T') |
der(x) | Time derivative of the state x in a time problem (simulate, with start values from initial): write der(x) = f(x, t).
Example: der(T) = -h*A*(T - T_inf)/(m*c) |
SUM2D(A[], row1, rowN, col1, colM) | Sum of the elements A[i,j] of a two-dimensional array over rows row1 … rowN and columns col1 … colM (constant limits).
Example: Q_total = SUM2D(Q[], 1, 10, 1, 5) |
| Function | What it does, its parameters, an example |
|---|---|
StringLen(s$) | Number of characters in the text.
Example: n = StringLen(name$) |
StringPos(find$, in$) | 1-based position of the first find$ in in$ (case ignored); 0 when absent.
Example: k = StringPos('_', name$) |
StringVal(s$) | The number written in the text; an error when it is not a number.
Example: N = StringVal(Copy$(id$, 2, 3)) |
UnitSystem(Word$) | 1 when the file's units line uses the word (e.g. 'SI', 'Eng', 'C', 'K', 'kPa', 'Rad', 'Molar'), else 0.
Example: g = if UnitSystem('SI') = 1 then 9.81 else 32.174 |
| Function | What it does, its parameters, an example |
|---|---|
Date(Text$) | A date as a serial number: days since 30 Dec 1899, the fraction the time of day. Accepts 'March 15, 2022', '15-Mar-2022', '3/15/2022' (month/day), '2022-03-15', optionally with a time.
Example: days = Date('2026-10-02') - Date('2026-01-01') |
Time(Text$) | A time of day as hours since midnight: '14:30', '14:30:15', '2:30 PM', '14h30'.
Example: t_start = Time('7:30 AM') |
TimeStamp(File$) | When the file was last changed, as a serial date number; 0 when there is no such file.
Example: t = TimeStamp('data.csv') |
FileExists(File$) | 1 when the file exists, else 0 (relative names are in the model's folder).
Example: has_data = FileExists('data.csv') |
NFileRows(File$) | Number of lines in a text file; 0 when it does not exist.
Example: N = NFileRows('data.txt') |
GetWindowInfo(Window$, Item$) | Position and size of an app window; EQS answers for a nominal 1000 x 700 window at the origin.
Example: W = GetWindowInfo('Diagram', 'Width') |
GetDiagramAttribute(Name$) | An attribute of a Diagram window object, 'Object.attribute'; -9999 when not found.
Example: x = GetDiagramAttribute('Text1.Left') |
GetAttribute(Name$) | The same as GetDiagramAttribute: a Diagram object attribute, -9999 when not found.
Example: x = GetAttribute('Text1.Left') |
diagram_width(Window$) | Width in pixels of a Diagram window (the main one when no name is given; 1000 when unknown).
Example: W = diagram_width() |
diagram_height(Window$) | Height in pixels of a Diagram window (the main one when no name is given; 700 when unknown).
Example: H = diagram_height() |
| Function | What it does, its parameters, an example |
|---|---|
VectorAssign(x, y, z) | A vector from its components (leave out z for 2-D).
Example: F = VectorAssign(10, 0, -5) |
VectorAssignPolar(r, angle_x, angle_y) | A vector from its magnitude and the angle from +x (2-D); in 3-D the second angle is from +y (direction cosines).
Example: V = VectorAssignPolar(25, 30) |
VectorZeros | The zero vector, sized like the vector it is used with (written with or without ()). Example: F_net = VectorZeros |
VectorUnit_i | The unit vector along x. Example: F = 20*VectorUnit_i |
VectorUnit_j | The unit vector along y. Example: F = 20*VectorUnit_j |
VectorUnit_k | The unit vector along z (3-D). Example: M = 5*VectorUnit_k |
VectorDot(A, B) | Dot product A·B of two declared vectors; also VectorDot(A[1..3], B[1..3]) on three-element arrays.
Example: W = VectorDot(F, d) |
VectorMag(A) | Magnitude |A|; also VectorMag(A[1..3]) on a three-element array.
Example: F_mag = VectorMag(F) |
VectorCross(A, B) | Cross product A×B: a vector in 3-D, the scalar z component in 2-D. Array form VectorCross(A[1..3], B[1..3], k) gives component k.
Example: M = VectorCross(r, F) |
VectorCross_i(A, B) | The x component of A×B.
Example: M_x = VectorCross_i(r, F) |
VectorCross_j(A, B) | The y component of A×B.
Example: M_y = VectorCross_j(r, F) |
VectorCross_k(A, B) | The z component of A×B.
Example: M_z = VectorCross_k(r, F) |
VectorAngle_x(A) | Angle between A and the +x axis, arccos(A_x/|A|), in the file's angle unit.
Example: alpha = VectorAngle_x(F) |
VectorAngle_y(A) | Angle between A and the +y axis, arccos(A_y/|A|).
Example: beta = VectorAngle_y(F) |
VectorAngle_z(A) | Angle between A and the +z axis, arccos(A_z/|A|).
Example: gamma_z = VectorAngle_z(F) |
VectorPolarAngle(A) | Angle of a 2-D vector from +x, atan2(A_y, A_x).
Example: theta = VectorPolarAngle(V) |
VectorAngle(A[1..3], B[1..3]) | Angle between two three-element arrays, arccos(A·B/(|A||B|)), in the file's angle unit.
Example: phi = VectorAngle(A[1..3], B[1..3]) |
dot(A[1..3], B[1..3]) | Dot product of two three-element arrays (as VectorDot).
Example: W = dot(F[1..3], d[1..3]) |
cross(A[1..3], B[1..3], k) | Component k (1, 2, 3) of the cross product of two three-element arrays.
Example: M[3] = cross(r[1..3], F[1..3], 3) |
magnitude3(A[1..3]) | Magnitude of a three-element array (as VectorMag).
Example: F_mag = magnitude3(F[1..3]) |
| Function | What it does, its parameters, an example |
|---|---|
real(z) | Real part of a complex number (complex on only).
Example: R = real(Z) |
imag(z) | Imaginary part of a complex number (complex on only).
Example: X = imag(Z) |
conj(z) | Complex conjugate (complex on only).
Example: S = V*conj(I) |
magnitude(z) | Magnitude |z| of a complex number, the same as abs (complex on only).
Example: Z_mag = magnitude(Z) |
angle(z) | Argument of a complex number in the file's angle unit (complex on only).
Example: phi = angle(Z) |
arg(z) | Argument of a complex number, the same as angle (complex on only).
Example: phi = arg(Z) |
angleRad(z) | Argument of a complex number in radians, whatever the unit system (complex on only).
Example: phi_r = angleRad(Z) |
angleDeg(z) | Argument of a complex number in degrees, whatever the unit system (complex on only).
Example: phi_d = angleDeg(Z) |
polar(r, angle) | The complex number r(cos angle + i sin angle), angle in the file's angle unit (complex on only).
Example: V = polar(230, -30) |
cis(angle) | cos angle + i sin angle, the same as polar(1, angle) (complex on only).
Example: a = cis(120) |
PolarToRect(r, angle) | The same as polar: r at the given angle as a complex number (complex on only).
Example: V = PolarToRect(230, -30) |
| Function | What it does, its parameters, an example |
|---|---|
(a_0, a_1, rms, bias, R2) = CurveFit1D(Form$, X[1..N], Y[1..N]) | Least-squares fit of Y on X. Outputs: the coefficients (as many as the form has), then rms, bias, R² in %, then the coefficients' standard errors. Forms: 'Linear', 'Polynomial2' … 'Polynomial6', 'Exponential', 'Power', 'Logarithmic'.
Example: (a_0, a_1, rms, bias, R2) = CurveFit1D('Linear', X[1..10], Y[1..10]) |
(a_0, a_1, rms, bias, R2) = CurveFit(Form$, X[1..N], Y[1..N]) | The same as CurveFit1D.
Example: (a_0, a_1, rms, bias, R2) = CurveFit('Linear', X[1..10], Y[1..10]) |
(a_0, a_1, rms, bias, R2) = CurveFit1DT(Form$, Table$, xcol$, ycol$, row1, rowN) | CurveFit1D on two columns of a lookup table, rows row1 … rowN.
Example: (a_0, a_1, rms, bias, R2) = CurveFit1DT('Linear', 'Data', 'T', 'k', 1, 20) |
(a[0..NInd], rms, bias, R2, StdErr[0..NInd]) = LinearRegression(Table$, Row1, RowN, DepVar$, NInd, Names$[1..NInd], Exclude0) | Multiple linear regression of one column on NInd others, on the 'Arrays' table or a lookup table. Outputs the coefficients (a[0] = 0 when the constant is excluded), rms, bias, R² in %, then standard errors.
Example: (a[0..2], rms, bias, R2, se[0..2]) = LinearRegression('Arrays', 1, N, 'y', 2, Names$[1..2], false) |
| Function | What it does, its parameters, an example |
|---|---|
Enthalpy(Fluid, T=, P=) | Specific enthalpy in the file's units (kJ/kg by default; per kmol with Molar), on the fluid's usual reference state. AirH2O: per kg of dry air.
Example: h_1 = Enthalpy(Water, T=T_1, P=P_1) |
Entropy(Fluid, T=, P=) | Specific entropy (kJ/(kg*K) by default), on the fluid's usual reference state.
Example: s_1 = Entropy(R134a, P=P_1, x=1) |
IntEnergy(Fluid, T=, P=) | Specific internal energy (kJ/kg by default).
Example: u_2 = IntEnergy(Air, T=T_2) |
Temperature(Fluid, P=, h=) | Temperature in the file's unit (C by default) from two other properties.
Example: T_2 = Temperature(Water, P=P_2, h=h_2) |
Pressure(Fluid, T=, s=) | Pressure in the file's unit (kPa by default) from two other properties.
Example: P_2 = Pressure(Water, T=T_2, s=s_1) |
Density(Fluid, T=, P=) | Density (kg/m³ in SI; kmol/m³ with Molar). AirH2O: mass of air and vapour over volume.
Example: rho = Density(Water, T=25, P=101.325) |
Volume(Fluid, T=, P=) | Specific volume 1/density (m³/kg in SI). AirH2O: per kg of dry air.
Example: v_1 = Volume(Air, T=T_1, P=P_1) |
Quality(Fluid, P=, h=) | Vapour quality 0..1 inside the dome; -100 for a subcooled liquid, 100 for a superheated vapour or supercritical fluid.
Example: x_4 = Quality(R134a, P=P_4, h=h_4) |
Cp(Fluid, T=, P=) | Specific heat at constant pressure (kJ/(kg*K) by default).
Example: c_p = Cp(Air, T=T_avg) |
SpecHeat(Fluid, T=, P=) | Specific heat, the same as Cp (for solids and liquids T= alone is enough).
Example: c = SpecHeat(Copper, T=T_avg) |
Cv(Fluid, T=, P=) | Specific heat at constant volume (kJ/(kg*K) by default).
Example: c_v = Cv(CO2, T=500) |
SpecHeatRatio(Fluid, T=) | cp/cv at the state: of an ideal gas (CO2, N2, Air, a mixture of the file (mixture m = …) …) from T alone, of a real fluid (Water, R134a …) from two state inputs. gamma(Fluid, …) is the same.
Example: k = SpecHeatRatio(Air, T=T_1) |
Viscosity(Fluid, T=, P=) | Dynamic viscosity (Pa*s in SI). Ideal-gas names (N2, CO2 …) use the built-in gas tables; real-fluid names (Nitrogen) use CoolProp.
Example: mu = Viscosity(Water, T=T_m, P=P) |
Conductivity(Fluid, T=, P=) | Thermal conductivity (W/(m*K) in SI); solids and liquids need only T=. k(…) is the same.
Example: k = Conductivity(Air, T=T_film, P=101.325) |
k(Fluid, T=, P=) | Thermal conductivity, the short name of Conductivity (for every fluid; the specific-heat ratio is gamma or SpecHeatRatio). The result carries no unit label; Conductivity's does.
Example: k_w = k(Water, T=T_1, P=P_1) |
mu(Fluid, T=, P=) | Dynamic viscosity, the short name of Viscosity. The result carries no unit label; Viscosity's does.
Example: mu_air = mu(Air, T=T_1) |
Prandtl(Fluid, T=, P=) | Prandtl number μ cp / k.
Example: Pr = Prandtl(Air, T=T_film) |
KinematicViscosity(Fluid, T=, P=) | Kinematic viscosity μ/ρ in m²/s (ft²/s in English units).
Example: nu = KinematicViscosity(Air, T=T_f, P=P_atm) |
ThermalDiffusivity(Fluid, T=, P=) | Thermal diffusivity k/(ρ cp) in m²/s (ft²/s in English units).
Example: alpha = ThermalDiffusivity(Water, T=T_f, P=P) |
SoundSpeed(Fluid, T=, P=) | Speed of sound in m/s (ft/s in English units); √(k R T) for ideal gases.
Example: c = SoundSpeed(Air, T=T_1) |
SurfaceTension(Fluid, T=) | Surface tension in N/m of the saturated liquid at T.
Example: sigma = SurfaceTension(Water, T=100) |
CompressibilityFactor(Fluid, T=, P=) | Compressibility factor Z = Pv/(RT) of a real fluid (1 for AirH2O).
Example: Z = CompressibilityFactor(CO2, T=T_1, P=P_1) |
VolExpCoef(Fluid, T=, P=) | Volumetric expansion coefficient β = (1/v)(∂v/∂T)ₚ per degree of the file's temperature unit.
Example: beta = VolExpCoef(Water, T=T_f, P=101.325) |
IsothermalCompressibility(Fluid, T=, P=) | Isothermal compressibility -(1/v)(∂v/∂P)ₜ per unit of the file's pressure.
Example: kappa = IsothermalCompressibility(Water, T=20, P=100) |
IsothermalCompress(Fluid, T=, P=) | The same as IsothermalCompressibility.
Example: kappa = IsothermalCompress(Water, T=20, P=100) |
IsentropicExponent(Fluid, T=, P=) | Isentropic exponent -(v/P)(∂P/∂v)ₛ; cp/cv for an ideal gas.
Example: n = IsentropicExponent(Steam, T=300, P=1000) |
JouleThomson(Fluid, T=, P=) | Joule-Thomson coefficient (∂T/∂P) at constant enthalpy, in the file's temperature per pressure unit.
Example: mu_JT = JouleThomson(Nitrogen, T=T_1, P=P_1) |
JouleThomsonCoef(Fluid, T=, P=) | The same as JouleThomson: (∂T/∂P) at constant enthalpy.
Example: mu_JT = JouleThomsonCoef(CO2, T=T_1, P=P_1) |
Fugacity(Fluid, T=, P=) | Fugacity in the file's pressure unit, from the equation of state's residual Helmholtz energy.
Example: f = Fugacity(CO2, T=T_1, P=P_1) |
Gibbs(Fluid, T=, P=) | Specific Gibbs free energy g = h - T s (kJ/kg by default).
Example: g_1 = Gibbs(Water, T=T_1, P=P_1) |
GibbsFreeEnergy(Fluid, T=, P=) | The same as Gibbs: g = h - T s.
Example: g_CO2 = GibbsFreeEnergy(CO2, T=T, P=P_o) |
Helmholtz(Fluid, T=, P=) | Specific Helmholtz free energy a = u - T s (real fluids).
Example: a_1 = Helmholtz(Water, T=T_1, P=P_1) |
HelmholtzFreeEnergy(Fluid, T=, P=) | The same as Helmholtz: a = u - T s.
Example: a_1 = HelmholtzFreeEnergy(Water, T=T_1, P=P_1) |
T_sat(Fluid, P=) | Saturation temperature at pressure P.
Example: T_evap = T_sat(R134a, P=P_low) |
Tsat(Fluid, P=) | The same as T_sat: saturation temperature at P.
Example: T_b = Tsat(Water, P=101.325) |
P_sat(Fluid, T=) | Saturation (vapour) pressure at temperature T.
Example: P_v = P_sat(Water, T=T_w) |
Psat(Fluid, T=) | The same as P_sat: saturation pressure at T.
Example: P_v = Psat(Water, T=T_w) |
Enthalpy_vaporization(Fluid, T=) | Latent heat h_g - h_f at saturation temperature T= or pressure P= (one of them alone).
Example: h_fg = Enthalpy_vaporization(Water, T=100) |
Enthalpy_vaporisation(Fluid, T=) | The same as Enthalpy_vaporization: h_g - h_f at T= or P=.
Example: h_fg = Enthalpy_vaporisation(Water, P=200) |
Enthalpy_fusion(Fluid) | Latent heat of melting at the normal melting point, from the built-in data, per kg (per kmol with Molar).
Example: h_sf = Enthalpy_fusion(Water) |
NormalBoilingPt(Fluid) | Saturation temperature at 1 atm (101.325 kPa).
Example: T_nb = NormalBoilingPt(Ammonia) |
FreezingPt(Brine, C=) | Freezing temperature of a solution (EG, PG, NaCl, CaCl2 …) at mass concentration C %.
Example: T_f = FreezingPt(EG, C=30) |
MolarMass(Fluid) | Molar mass in kg/kmol (also of a mixture of the file (mixture m = …)).
Example: M = MolarMass(CO2) |
MolarMass_soln(Brine, C=) | Molar mass of a brine solution (kg/kmol) at mass concentration C %.
Example: M_s = MolarMass_soln(NaCl, C=20) |
IsIdealGas(Fluid) | Kind code of a fluid: 1 ideal gas, 0 real fluid, -1 incompressible/solid, -2 brine, -3 NH3H2O, -4 AirH2O.
Example: ig = IsIdealGas(F$) |
MassFraction(NH3H2O, T=, P=, Q=) | Ammonia mass fraction of an ammonia-water state; NH3H2O takes three of T=, P=, x=, h=, s=, u=, v=, Q=.
Example: x_l = MassFraction(NH3H2O, T=T_g, P=P_h, Q=0) |
T_crit(Fluid) | Critical temperature.
Example: T_c = T_crit(CO2) |
P_crit(Fluid) | Critical pressure.
Example: P_c = P_crit(CO2) |
V_crit(Fluid) | Critical specific volume.
Example: v_c = V_crit(Water) |
T_triple(Fluid) | Triple-point temperature.
Example: T_tp = T_triple(CO2) |
P_triple(Fluid) | Triple-point pressure.
Example: P_tp = P_triple(CO2) |
AcentricFactor(Fluid) | Pitzer acentric factor ω.
Example: omega = AcentricFactor(Propane) |
Dipole(Fluid) | Molecular dipole moment in debye (built-in data).
Example: mu_d = Dipole(Ammonia) |
EOS_Tmin(Fluid) | Lowest temperature of the fluid's equation of state.
Example: T_lo = EOS_Tmin(R134a) |
EOS_Tmax(Fluid) | Highest temperature of the fluid's equation of state.
Example: T_hi = EOS_Tmax(R134a) |
EOS_Pmax(Fluid) | Highest pressure of the fluid's equation of state.
Example: P_hi = EOS_Pmax(R134a) |
T_min(Fluid) | The same as EOS_Tmin: lowest temperature of the equation of state.
Example: T_lo = T_min(Water) |
T_max(Fluid) | The same as EOS_Tmax: highest temperature of the equation of state.
Example: T_hi = T_max(Water) |
P_max(Fluid) | The same as EOS_Pmax: highest pressure of the equation of state.
Example: P_hi = P_max(Water) |
GWP(Fluid) | Global warming potential over 100 years.
Example: gwp_r = GWP(R410A) |
GWP100(Fluid) | The same as GWP: 100-year global warming potential.
Example: gwp_r = GWP100(R32) |
ODP(Fluid) | Ozone depletion potential.
Example: odp_r = ODP(R22) |
T_melting(Fluid, P=) | Melting temperature of ice Ih at pressure P (IAPWS R14-08); water only (Ice, Water, Steam).
Example: T_m = T_melting(Water, P=50000) |
P_melting(Fluid, T=) | Melting pressure of ice Ih at temperature T (IAPWS R14-08); water only, 251.165 … 273.16 K.
Example: P_m = P_melting(Water, T=-5) |
Sigma_LJ(Gas) | Lennard-Jones collision diameter σ in m (ft in English units), built-in data.
Example: sigma = Sigma_LJ(N2) |
EK_LJ(Gas) | Lennard-Jones energy parameter ε/k in K (R in English units), built-in data.
Example: eps_k = EK_LJ(N2) |
LowerHeatingValue(Fuel) | Lower heating value at 25 C per kg (per kmol with Molar): built-in data, or from ideal-gas enthalpies of a C-H-O formula; mixtures by mole fraction.
Example: LHV = LowerHeatingValue(CH4) |
HigherHeatingValue(Fuel) | Higher heating value at 25 C (water condensed) per kg (per kmol with Molar).
Example: HHV = HigherHeatingValue(C3H8) |
| Function | What it does, its parameters, an example |
|---|---|
IntK(Material, T=) | Integral of the conductivity over temperature (W/m), for conduction with temperature-dependent k.
Example: Q = 2*pi*L*(IntK(Copper, T=T_1) - IntK(Copper, T=T_2))/ln(r_2/r_1) |
LinearExpCoef(Material, T=) | Linear thermal expansion coefficient, 1/K.
Example: alpha_L = LinearExpCoef(Aluminum, T=T) |
TotalThermalExp(Material, T=) | Total thermal expansion ΔL/L relative to 293 K.
Example: dLL = TotalThermalExp(Copper, T=T) |
TotalThermExp(Material, T=) | The same as TotalThermalExp: ΔL/L relative to 293 K.
Example: dLL = TotalThermExp(Copper, T=T) |
YoungsModulus(Material, T=) | Young's modulus in GPa (built-in mechanical data).
Example: E = YoungsModulus(Aluminum_alloy_6061T6, T=T) |
ModulusOfRigidity(Material, T=) | Shear modulus in GPa.
Example: G = ModulusOfRigidity(Aluminum_alloy_6061T6, T=T) |
PoissonsRatio(Material, T=) | Poisson's ratio.
Example: nu = PoissonsRatio(Aluminum_alloy_6061T6, T=T) |
Ductility(Material, T=) | Ductility (percent elongation), from the built-in data.
Example: el = Ductility(Aluminum_alloy_6061T6, T=T) |
ElectricalResistivity(Material, T=) | Electrical resistivity, from the built-in data.
Example: rho_e = ElectricalResistivity(Copper, T=T) |
UltimateStress(Material, T=) | Ultimate tensile stress in MPa.
Example: S_u = UltimateStress(Aluminum_alloy_6061T6, T=T) |
UltimateStressComp(Material, T=) | Ultimate compressive stress in MPa.
Example: S_uc = UltimateStressComp(Aluminum_alloy_6061T6, T=T) |
UltimateStressShear(Material, T=) | Ultimate shear stress in MPa.
Example: S_us = UltimateStressShear(Aluminum_alloy_6061T6, T=T) |
YieldStress(Material, T=) | Yield stress in MPa.
Example: S_y = YieldStress(Aluminum_alloy_6061T6, T=T) |
YieldStressShear(Material, T=) | Shear yield stress in MPa.
Example: S_ys = YieldStressShear(Aluminum_alloy_6061T6, T=T) |
VaporPressure(Fluid, T=) | Vapour pressure of a liquid of the Incompressible library at T, in the file's pressure unit.
Example: P_v = VaporPressure(Therminol_66, T=T) |
| Function | What it does, its parameters, an example |
|---|---|
HumRat(AirH2O, T=, P=, R=) | Humidity ratio w, kg water per kg dry air.
Example: w_1 = HumRat(AirH2O, T=T_1, P=P_atm, R=0.5) |
RelHum(AirH2O, T=, P=, w=) | Relative humidity, 0..1.
Example: phi_2 = RelHum(AirH2O, T=T_2, P=P_atm, w=w_1) |
WetBulb(AirH2O, T=, P=, R=) | Thermodynamic wet-bulb temperature.
Example: T_wb = WetBulb(AirH2O, T=30, P=101.325, R=0.4) |
DewPoint(AirH2O, T=, P=, R=) | Dew-point temperature.
Example: T_dp = DewPoint(AirH2O, T=T_1, P=P_atm, w=w_1) |
(T, v, h, s, u, w, R, B, D) = PsychProps(AirH2O, T=, P=, R=) | Every psychrometric property of a moist-air state at once; AirH2O may be left out. Empty output places are skipped.
Example: (T, v, h, s, u, w, R, B, D) = PsychProps(AirH2O, T=25, P=101.325, R=0.5) |
| Function | What it does, its parameters, an example |
|---|---|
(T, P, v, h, s, u, x) = RealThermoProps(Fluid$, T=, P=) | The thermodynamic properties of a real-fluid state at once; an output that is also an input is not set again.
Example: (T, P, v_1, h_1, s_1, u_1, x_1) = RealThermoProps(Water, T=T_1, P=P_1) |
(T, P, v, h, s, u) = IdealGasThermoProps(Fluid$, T=, P=) | The thermodynamic properties of an ideal-gas state at once.
Example: (T, P, v_1, h_1, s_1, u_1) = IdealGasThermoProps(CO2, T=T_1, P=P_1) |
(cp, h, s) = NASA(Name$, T) | NASA polynomial data of a species, T in K and molar SI results (kJ/(kmol*K), kJ/kmol) whatever the unit system.
Example: (cp, h, s) = NASA('CO2', 1500) |
(cp, h, s) = NASA_Units(Name$, T) | As NASA, with T and the results in the file's units.
Example: (cp, h, s) = NASA_Units('H2O', T_g) |
| Function | What it does, its parameters, an example |
|---|---|
X_LiBr('SI', T, P) | Equilibrium LiBr mass fraction (%) of the solution at T (C) and P (kPa).
Example: X_strong = X_LiBr('SI', T_gen, P_high) |
T_LiBr('SI', P, X) | Equilibrium solution temperature (C) at P (kPa) and X (% LiBr), Dühring relation.
Example: T_abs = T_LiBr('SI', P_low, X_weak) |
P_LiBr('SI', T, X) | Equilibrium vapour pressure (kPa) at T (C) and X (% LiBr).
Example: P_g = P_LiBr('SI', T_gen, X_strong) |
H_LiBr('SI', T, X) | Solution enthalpy (kJ/kg) at T (C) and X (% LiBr), ASHRAE polynomial.
Example: h_5 = H_LiBr('SI', T_5, X_strong) |
Cp_LiBr('SI', T, X) | Solution specific heat (kJ/(kg*K)) at T (C) and X (% LiBr).
Example: c_sol = Cp_LiBr('SI', T, X) |
S_LiBr('SI', T, X) | Solution entropy (kJ/(kg*K)) at T (C) and X (% LiBr); only differences are meaningful.
Example: s_5 = S_LiBr('SI', T_5, X_strong) |
V_LiBr('SI', T, X) | Solution specific volume (m³/kg) at T (C) and X (% LiBr).
Example: v_sol = V_LiBr('SI', T, X) |
| Function | What it does, its parameters, an example |
|---|---|
EqMoleFraction(Reactants$, Species, T=, P=) | Mole fraction of a product species in the equilibrium mixture at T and P; h= instead of T= gives the adiabatic state.
Example: y_CO = EqMoleFraction('CH4:1 O2:2 N2:7.52', CO, T=2000, P=101.325) |
EqTemperature(Reactants$, h=, P=) | Temperature of the equilibrium mixture with enthalpy h (per kg): the adiabatic flame temperature when h is the reactants' enthalpy.
Example: T_ad = EqTemperature(R$, h=ReactantEnthalpy(R$, T=25), P=101.325) |
EqEnthalpy(Reactants$, T=, P=) | Enthalpy per kg of the equilibrium mixture at T and P.
Example: h_prod = EqEnthalpy('CH4:1 O2:2 N2:7.52', T=1500, P=101.325) |
ReactantEnthalpy(Reactants$, T=) | Enthalpy per kg of the unreacted mixture at T.
Example: h_react = ReactantEnthalpy('CH4:1 O2:2 N2:7.52', T=25) |
| Function | What it does, its parameters, an example |
|---|---|
(a_post, b_post, mean, low, high) = BetaUpdate(a, b, successes, trials, level) | A beta(a, b) prior on a probability updated by binomial counts: beta(a + successes, b + trials − successes), its mean and the equal-tailed credible interval at level %.
Example: (a_p, b_p, p_fail, p_lo, p_hi) = BetaUpdate(1, 1, 3, 20, 95) |
(mu_post, sd_post, low, high) = NormalUpdate(mu0, sd0, xbar, sd, n, level) | A normal prior on a mean updated by n measurements of known sd averaging xbar (the precisions 1/sd² add), with the credible interval at level %.
Example: (mu, sd, lo, hi) = NormalUpdate(50, 10, 47.3, 2, 8, 95) |
(shape_post, rate_post, mean, low, high) = GammaPoissonUpdate(shape, rate, events, exposure, level) | A rate (events per hour, per km …) with a gamma(shape, rate) prior updated by a count of events over an exposure: gamma(shape + events, rate + exposure), its mean and the credible interval at level %.
Example: (k, r, lambda, lo, hi) = GammaPoissonUpdate(2, 1000, 4, 3500, 95) |
| Function | What it does, its parameters, an example |
|---|---|
ChangeFileDir$(Path$, Dir$) | The file of the path moved into folder Dir$.
Example: f$ = ChangeFileDir$('run.csv', ModelFileDir$) |
ChangeFileExt$(Path$, Ext$) | The path with its extension replaced by Ext$ (give the dot).
Example: csv$ = ChangeFileExt$(ModelFileName$, '.csv') |
Chr$(code) | The character with this code (0 … 255).
Example: deg$ = Chr$(176) |
Concat$(a$, b$, ...) | The texts joined together (any number of them).
Example: F$ = Concat$('R', '134a') |
Copy$(s$, start, count) | Part of the text: count characters from the 1-based start (to the end when count is left out).
Example: y$ = Copy$(date$, 7, 4) |
Date$ | Today's date as mm/dd/yyyy (UTC), the order Date() reads back. Example: today$ = Date$ |
DateTime$ | Date and time now, 'mm/dd/yyyy hh:mm:ss' (UTC). Example: stamp$ = DateTime$ |
Delete$(s$, start, count) | The text with count characters removed from the 1-based start.
Example: s$ = Delete$('R-134a', 2, 1) |
FluidType$(Fluid) | The kind of fluid: 'Ideal', 'Real', 'Incompressible', 'Brine', 'Mixture' (NH3H2O) or 'Psychrometric' (AirH2O).
Example: k$ = FluidType$(F$) |
Insert$(a$, s$, pos) | a$ inserted into s$ before the 1-based position pos.
Example: s$ = Insert$('-', 'R134a', 2) |
Kelvin_bei`(x) | Derivative d bei(x)/dx of the Kelvin function bei.
Example: db = Kelvin_bei`(2) |
Kelvin_ber`(x) | Derivative d ber(x)/dx of the Kelvin function ber (Kelvin_ber'(x) is accepted too).
Example: db = Kelvin_ber`(2) |
Kelvin_kei`(x) | Derivative d kei(x)/dx of the Kelvin function kei.
Example: dk = Kelvin_kei`(2) |
Kelvin_ker`(x) | Derivative d ker(x)/dx of the Kelvin function ker.
Example: dk = Kelvin_ker`(2) |
Lookup$(Table$, row, col) | The text of a lookup-table cell ('' when empty).
Example: F$ = Lookup$('Fuels', 2, 'Name') |
Lookup$Row(Table$, col, s$) | The 1-based row whose cell in column col holds the text s$ (case ignored); 0 when none.
Example: r = Lookup$Row('Fuels', 'Name', 'Methane') |
LookupColName$(Table$, col) | The name of a lookup-table column ('??' when there is none).
Example: c$ = LookupColName$('Data', 2) |
LookupColUnits$(Table$, col) | The unit of a lookup-table column ('??' when there is no such column).
Example: u$ = LookupColUnits$('Data', 'T') |
LookupTabName$(n) | The name of the n-th lookup table ('' when there are fewer).
Example: t$ = LookupTabName$(1) |
LowerCase$(s$) | The text in lower case.
Example: L$ = LowerCase$(name$) |
ModelFileDir$ | The model file's folder, ending in a separator. Example: out$ = Concat$(ModelFileDir$, 'results.csv') |
ModelFileName$ | The full path of the model file. Example: f$ = ModelFileName$ |
Phase$(Fluid, T=, P=) | The phase of a state as text: 'supercritical', 'superheated', 'saturated', 'liquid', 'solid', 'ideal gas', 'incompressible solid' or 'incompressible liquid'.
Example: ph$ = Phase$(Water, T=T_1, P=P_1) |
Replace$(a$, b$, s$) | s$ with its first occurrence of a$ (case ignored) replaced by b$.
Example: f$ = Replace$('.csv', '.txt', file$) |
ShortFileName$(Path$) | The file name of a path without its folder.
Example: n$ = ShortFileName$(ModelFileName$) |
String$(x, format$) | A number as text: 'A' automatic (whole numbers without decimals, else 6 significant figures), 'Fn' n decimals, 'En' exponent form, 'Gn' engineering form.
Example: label$ = Concat$('T = ', String$(T_1, 'F1')) |
TableName$ | The name of the Parametric table being solved ('' in a plain solve). Example: t$ = TableName$ |
TableTabName$(n) | The name of the n-th Parametric table; 0 gives the table being solved.
Example: t$ = TableTabName$(0) |
Time$ | The time now as hh:mm:ss (UTC). Example: now$ = Time$ |
TimeStamp$(File$) | When the file was last changed, as DateTime$ writes it ('' when there is no such file); relative names are in the model's folder.
Example: t$ = TimeStamp$('data.csv') |
Trim$(s$) | The text without leading and trailing spaces.
Example: n$ = Trim$(raw$) |
UnitsOf$(X) | The unit the solution gives variable X (worked out after the solve).
Example: u$ = UnitsOf$(P_1) |
UnitSystem$(Kind$) | The file's unit for a kind of quantity: 'Temperature' → 'C', 'Pressure' → 'kPa', 'Energy' → 'kJ/kg', also 'Entropy', 'Volume', 'Density', 'Mass' (Mass/Molar), 'Trig' (Deg/Rad); anything else gives 'SI' or 'Eng'.
Example: T_unit$ = UnitSystem$('Temperature') |
UpperCase$(s$) | The text in upper case.
Example: U$ = UpperCase$(name$) |
The words of the language, as the editor completes them at the start of a line, and the settings a file can carry.
| Form | What it does |
|---|---|
s1 = state(Water, P=10 kPa, x=0) | a state: s1.h, s1.s … are its properties |
default T_in = 20 °C | a value a study, a slider or the optimiser may replace |
guess T_out = 100 °C | the solver's start value |
function f(a, b) [-> (x, y)] … end | code that runs step by step; call it (x, y) = f(1, 2) |
component hx(m, cp) -> (Q) … end | equations solved with the model |
subprogram s(a) -> (x) … end | equations solved on their own for each call |
end | closes function, component, for, if, case, when, after solve |
return expr | a function's result |
if c then a else b | a choice in an equation (end closes an if block in a function) |
then | |
else | |
elseif c then | |
for i in 1..N … end | equations for each i; sum(x[i] for i in 1..N) |
in | |
repeat … until x > 5 | a loop in a function |
until x > 5 | ends a repeat loop when true |
after solve … end | solved after the rest; sum_sweep(Q) after a study |
initial T = 90 °C | the start value of der(T) |
simulate time from 0 to 3600 step 10 record T | a time run |
stop when T < 40 °C | ends the time run early |
method bdf2 | trapezoid, bdf1 … bdf5, adaptive |
sweep T_in from 20 to 80 step 10 | a study: points 7, or in [20, 40, 60]; two sweeps make a grid |
plot Q, eta vs T_in title 'Duty' | drawn after the study |
maximize f over x in 0..1 subject to g <= 2 | optimisation |
minimize f over x in 0..1 | optimisation |
uncertainty of q given x ± 0.5, y ± 5% | uncertainty propagation |
units SI °C kPa kJ mass degrees | the unit system |
use heat_transfer | a shipped library |
include 'parts.eqs' | a file of yours |
check eta = 0.42 ± 1% | an expected value |
report 'The efficiency is {eta:3}.' | a line of the report |
key Q 'heat duty' | a key result |
mixture flue = N2:0.75, CO2:0.25 | an ideal-gas mixture |
constant n = 20 | a constant of the file |
| Line | What it does |
|---|---|
units SI °C kPa kJ mass degrees | units for properties and trig (also radians, molar, °F, bar, MPa …) |
use heat_transfer | a shipped library: fins, Nusselt, effectiveness-NTU, radiation |
include 'parts.eqs' | a file of yours |
mixture flue = N2:0.75, CO2:0.1, H2O:0.1, O2:0.05 | an ideal-gas mixture (mole fractions; add mass) |
refcalcmixture ng C1:0.9 C2:0.07 C3:0.03 | a Peng-Robinson mixture from a RefCalc server |
refcalc 'http://localhost:8091' | the RefCalc server, in quotes (default localhost:8080) |
checkunits off | no unit check until checkunits on |
report 'The result is {x:3}.' | report summary with live values |
check x = 1.5 ± 1% | expected value for eqs check (relative with %, else absolute) |
varinfo x units=kPa | a variable's unit and display format |
defineunits kJ/h 0.000277778 kW | a new unit as a factor times an existing one |
guess x = 5 | start value |
0 <= x <= 100 | bounds |
exchangerate 1 EUR = 4.97 RON | ties two currencies: the unit check compares them and convert(EUR, RON) gives the rate |
simulate t from 0 to 10 step 0.01 record y | der(x) notation: integration variable, start, end, step, the columns of the time table |
initial x = 1 | the start value of a der() state |
integraltable t:0.1 y | integral(): the time march step and columns |
integralautostep Min=1e-4 Max=0.5 Reduce=1e-3 Increase=1e-5 | adaptive step |
stop when y < 0.05 | end the march when true |
method bdf2 | stiff problems: backward difference of order 1-5 (bdf1 … bdf5); also trapezoid, adaptive |
when h < 0 reinit v = -0.8*v | an event: the state jumps when the condition becomes true |
when Re < 2300 | conditional equations: the lines up to otherwise hold when true, the rest up to end otherwise; chosen by the solution |
otherwise | the other branch of a when block |
case design | the equations of one case up to end; use case design chooses it |
use case design | the case to solve |
complex on | every variable complex; 4i, j, polar() |
maximize f over x in 0..5 | also minimize; add subject to g <= 1 and method golden|quadratic|conjugate-directions|variable-metric|nelder-mead|direct|genetic; n in 1..20 integer keeps n a whole number |
subject to V >= 0.001 | a condition on any computed quantity during an optimisation or Min/Max (<=, >=, =) |
uncertainty of f given x ± 0.1 | or x ± 5% relative to the value |
connect pump.out boiler.in | stream connection: pump.out.x = boiler.in.x for every field x both use; ': T, P' to choose |
newplot Table='Table 1' X='m' Y='Q' Title='Duty' Lines=1 Symbols=1 | a plot drawn after the table runs (also XMin/XMax/YMin/YMax/XLog/YLog/Grid/Rows=1..10/Kind=bar|polar/Legend) |
overlayplot Title='Duty' X='m' Y='T_out' RightAxis=1 | adds curves to the plot with that title |
propertyplot Water T-s 2 100 1000 0 1 1 Name='Cycle' | a property plot after the solve with the state points: Fluid Type (T-s, P-h, T-v, T-rho, P-v, h-s, T-h, P-T, psychrometric) N1 values N2 values [H] DEF DoQLines TMin TMax PMin PMax; a brine: Fluid Property N C… TMin TMax |
modifyaxis Y Name='Cycle' 0 T_max 0 50 Linear 1 | an axis of a plot: Min Max (numbers or variables) AutoScale Interval Linear|Log Grids |
savetable 'Arrays' 'file.csv' | after the solve: a table to a file (.csv, .txt, .dat); 'Lookup 1', 'Parametric:Table 1', 'Integral'; /R2..5 /C1..3 rows and columns, /T transpose, /Q no quotes, /N /E lookup-text header, /A append |
savelookup 'Table' 'file.csv' | a lookup table to a file after the solve |
exporttext 'file.txt' S$[1..N] | strings to a file, one per line (/A appends) |
importtext 'file.txt' /skiplines=1 S$[1..N] | whole lines of a file into string variables, before the solve |
exportplot 'plot.png' 1 /R=2 | a plot saved after the solve (.png, .jpg, .svg; by name or number; /R resolution 0-4) |
clearparametric 'Table 1' /A /R1..10 | clear a parametric table's computed cells (all with /A) before the solve |
savevarinfo 'model.var' | every variable's unit and format as varinfo lines after a solve (include reads them) |
The forms the editor completes; the full descriptions are in the function tables above.
| Call | Result |
|---|---|
enthalpy(Fluid, T=, P=) | kJ/kg |
entropy(Fluid, T=, P=) | kJ/(kg*K) |
intenergy(Fluid, T=, P=) | kJ/kg |
temperature(Fluid, P=, h=) | |
pressure(Fluid, T=, s=) | |
density(Fluid, T=, P=) | kg/m^3 |
volume(Fluid, T=, P=) | m^3/kg |
quality(Fluid, P=, h=) | 0..1 in the dome |
cp(Fluid, T=, P=) | kJ/(kg*K) |
cv(Fluid, T=, P=) | |
viscosity(Fluid, T=, P=) | Pa*s |
conductivity(Fluid, T=, P=) | W/(m*K) |
prandtl(Fluid, T=, P=) | |
soundspeed(Fluid, T=, P=) | m/s |
t_sat(Fluid, P=) | saturation temperature |
p_sat(Fluid, T=) | saturation pressure |
eos_tmin(Fluid) | equation-of-state limits: also eos_tmax, eos_pmax |
gwp(Fluid) | global warming potential (100 yr); also odp |
joulethomson(Fluid, T=, P=) | dT/dP at constant enthalpy |
gibbs(Fluid, T=, P=) | Gibbs free energy; also helmholtz |
t_crit(Fluid) | |
p_crit(Fluid) | |
molarmass(Fluid) | kg/kmol |
EqMoleFraction('CH4:1 O2:2 N2:7.52', CO, T=, P=) | chemical equilibrium (Gibbs minimisation): mole fraction of a product; h= instead of T= for the adiabatic state |
EqTemperature('CH4:1 O2:2 N2:7.52', h=, P=) | equilibrium (adiabatic flame) temperature for the mixture enthalpy h |
EqEnthalpy('CH4:1 O2:2 N2:7.52', T=, P=) | enthalpy of the equilibrium mixture, per kg |
ReactantEnthalpy('CH4:1 O2:2 N2:7.52', T=) | enthalpy of the unreacted mixture, per kg |
humrat(AirH2O, T=, P=, R=) | humidity ratio |
relhum(AirH2O, T=, P=, w=) | |
wetbulb(AirH2O, T=, P=, R=) | |
dewpoint(AirH2O, T=, P=, R=) |
Every command of the menu bar, with its keyboard shortcut. Ctrl+Shift+P opens the command search, which finds any of them by name; on the Mac, Cmd stands for Ctrl.
| NewCtrl+N | An empty model in the Equations window; the current one is offered for saving first. |
| Open…Ctrl+O | Open a model file (.eqs) from the disk. |
| Open Example… | The examples that come with EQS, by topic; one click loads it. |
| Search Examples… | Find an example by a word in its name, its comments or its equations. |
| SaveCtrl+S | Save the model to its file. |
| Save As… | Save the model under a new name or in another folder. |
| Print…Ctrl+P | Print the active window: the equations, the solution, a table or a plot. |
| Create Report… | The report page: the text of the file's report lines with the live values, for printing or for Word. |
| LaTeX/PDF Print… | The equations and the solution typeset as LaTeX, and a PDF of it when a LaTeX installation is found. |
| Load Library… | a folder whose library files load themselves (their routines need no use line) |
| Load Textbook… | A textbook menu: a folder of chapters and problems that appears as its own menu. |
| Install package from file… | a package (.eqspkg) from a teacher or a colleague: routines, data, examples and help that a model loads with use |
| Save As Library… | the routines as a .lib file in the user library folder, where they load themselves |
| File Information… | The file's path, size, dates, number of equations and variables, and the library files it uses. |
| Exit | Quit EQS; an unsaved model is offered for saving first. |
| UndoCtrl+Z | Undo the last change in the editor. |
| RedoCtrl+Y | Redo the change that was undone. |
| CutCtrl+X | Cut the selection to the clipboard. |
| CopyCtrl+C | Copy the selection to the clipboard. |
| Copy with Headers | Copy the selected table cells with their column names, for a spreadsheet. |
| PasteCtrl+V | Paste from the clipboard. |
| DeleteDel | Delete the selection. |
| Select AllCtrl+A | Select the whole text of the window. |
| Find…Ctrl+F | Find a word in the equations; the matches are marked. |
| Find NextF3 in the find box | Jump to the next match of the find box. |
| Replace…Ctrl+H | Find and replace text in the equations, one at a time or all at once. |
| Bookmarks… | bookmark name lines of the file |
| Comment / UncommentCtrl+/ | Put // in front of the selected lines, or take it away. |
| Split Window | the Equations window in two panes on the same text |
| Array Editor… | type or paste the values of an array; written as X[1..N] = [...] lines |
| Copy Solution as CSV | The solution as comma-separated text on the clipboard: name, value, unit. |
| Copy Diagram | the Diagram window as a picture on the clipboard |
| Save Diagram… | the Diagram window as a picture file (.png, .svg) |
| SolveF2 | Solve the model; failing lines are highlighted and the Solution window opens. |
| Check Equations | Parse the model without solving: syntax errors, unknown names, the count of equations and variables. |
| Check Units | Compare the units of both sides of every equation and suggest the missing unit of a variable. |
| Unit System… | The unit system of the properties and the display: SI or English, °C or K, kPa or bar, kJ or J, mass or molar. |
| Variable Info… | Every variable with its guess, bounds, display format, unit and key flag, editable in a table. |
| Update Guesses | Take the last solution as the guesses of the next solve. |
| Reset Guesses | Put every guess back to 1 (or the file's guess lines). |
| Reset Limits | Take every bound off the variables (or back to the file's limit lines). |
| Stop Criteria… | When the solver stops: the residual, the change between iterations, the number of iterations and the time. |
| Purge Unused Variables | remove the guess, bound, varinfo and key lines of variables no equation uses |
| Degrees of Freedom… | How many equations and unknowns the model has, and which variables are free when it is under-determined. |
| Incidence Matrix… | Which variable appears in which equation, and the blocks the solver solves in order. |
| Inputs and Results… | the model's inputs as editable cells and every result, as a spreadsheet shows them |
| Scenarios… | named sets of inputs with their results, compared side by side (Excel's Scenario Manager) |
| What Drives This Result?… | how a result depends on each input: a tornado chart, and a Monte Carlo run with spreads on the inputs |
| Calibrate… | the file's calibrate block: what the measurements say about the parameters (Bayesian posterior, plots, Use posterior means) |
| Min/Max…F4 | Minimise or maximise a variable by changing one or more others, with bounds, by the chosen method. |
| Min/Max Table…F5 | The Min/Max run for every row of a parametric table. |
| Uncertainty Propagation…F6 | The uncertainty of a result from the uncertainties given for the inputs (first-order propagation). |
| Uncertainty Propagation Table… | The uncertainty propagation for every row of a parametric table, with error bars in the plots. |
| Keep ObservationCtrl+K | Keep the current solution as an observation to compare with later solves. |
| Observations… | The kept observations side by side, and their differences. |
| Calculator… | A calculator window: an expression with the last solution's values, or one equation solved for its unknown. |
| New Parametric Table… | A table of runs: pick the variables, the number of rows, and the values that change row by row. |
| Solve TableF3 | Solve the model once for every row of the parametric table. |
| Run Study | the table Study from the file's sweep lines, solved, then its plot lines drawn |
| Alter Values… | Fill a table column: first value and last value, a step, a list, or a logarithmic series. |
| Insert/Delete Runs… | Add rows to the parametric table or remove some. |
| Insert/Delete Vars… | Add variables as columns of the parametric table or remove some. |
| Retrieve Parametric Table… | Load a parametric table saved earlier with Store Parametric Table. |
| Store Parametric Table… | Save the parametric table, values included, to a file. |
| Delete Parametric Tables… | Delete one or more parametric tables of the model. |
| New Lookup Table… | A table of data (rows and named columns) the equations read with lookup and interpolate. |
| Open Lookup Table… | Load a lookup table from a CSV or a saved lookup file. |
| Lookup Table Window | Show the lookup tables of the model for editing. |
| Insert/Delete Lookup Rows… | Add rows to a lookup table or remove some. |
| Insert/Delete Lookup Cols… | Add columns to a lookup table, with an optional formula, or remove some. |
| Delete Lookup Table | Delete the current lookup table. |
| Save Table… | Save the current table as CSV. |
| Linear Regression… | Fit a column of a table as a linear combination of other columns; coefficients, R² and standard errors. |
| Curve Fit Table Data… | Fit a curve (linear, polynomial, exponential, power, logarithmic …) through two columns of a table. |
| New Plot… | A plot from the columns of a table: X and Y, line and symbol, axis limits. |
| Overlay Plot… | Draw another series on the existing plot, on the left or the right axis. |
| Modify Plot… | Change the lines, symbols, colours, legend and title of the plot. |
| Modify Axes… | Change the axis limits, scale (linear or logarithmic), grid and labels. |
| Show Crosshairs on Plot | Crosshairs that follow the mouse and show the coordinates of the point under it. |
| Show Tool Bar | The plot's tool bar: zoom, pan, text, lines and arrows, export. |
| Plot Thumbnails | Small pictures of all plots of the model to pick one. |
| Retrieve Plot… | Load a plot saved earlier with Store Plot. |
| Store Plot… | Save the plot's definition to a file. |
| Delete Plot Windows… | Delete one or more plots of the model. |
| Curve Fit… | Fit a curve through the points of the plotted series and draw it. |
| Property Calculator… | a substance and two properties in, every other property out |
| Property Plot… | A property diagram of a fluid: T-s, p-h, T-v, P-T with isobars, isotherms and quality lines; the psychrometric chart for humid air. |
| Substance Information… | The fluids and solids EQS knows, their limits and the sources of their data. |
| Function Info… | The functions by group, each with its parameters, an example, and a Paste button. |
| Units List… | Every unit EQS knows, with its dimension and its factor to SI. |
| Unit Conversion Info… | Convert a value between two units, with the convert() line to paste. |
| Constants… | The physical constants the equations know (g_n, R_u, sigma …) with their values and units. |
| Flowsheet… | draw pumps, turbines, heaters … and their streams; EQS writes the equations |
| Diagram Window | The front panel of the model: text, shapes, pictures, input fields bound to variables, output fields and buttons. |
| Show/Hide Diagram Tool Bar | The drawing tools of the Diagram window (development mode). |
| Make Distributable… | Pack the model with the program as a stand-alone application folder for people without EQS. |
| Packages… | the installed packages, the packages of this model and their locked versions |
| New Macro | Start an empty macro: a list of EQS commands that run one after another. |
| Open Macro File… | Load a macro file (.eqm). |
| Save Macro File… | Save the macro to a file. |
| Play Macro | Run the macro from the first command. |
| Pause / Resume Macro | Pause the running macro, or go on with it. |
| Stop Macro | Stop the running macro. |
| Record Macro | Record the commands you give into the macro until you stop recording. |
| Macro Command Info… | The macro commands, each with its arguments and an example. |
| Macro Window | Show the macro's commands for editing. |
| Grader… | Check students' model files against a rubric and write the marks. |
| Create Grading Rubric… | Make a rubric from a model: which variables are checked and with what tolerance. |
| Equations | The Equations window, where the model is typed. |
| Formatted Equations | The equations typeset as mathematics, with Copy as LaTeX. |
| Solution | The Solution window: every variable with its value and unit, the arrays, and the alternate units. |
| Inputs and Results | the model's inputs as editable cells and every result, as a spreadsheet shows them |
| Scenarios | named sets of inputs with their results, compared side by side (Excel's Scenario Manager) |
| Flowsheet | draw pumps, turbines, heaters … and their streams; EQS writes the equations |
| Parametric Table | The Parametric Table window. |
| Integral Table | The table of a time march: the values recorded at each step of the integration. |
| Plots | The Plots window with every plot of the model. |
| Property Plot | The Property Plot window. |
| Min/Max and Uncertainty | The window of the last Min/Max or uncertainty run. |
| Calibrate | The Calibrate window: the posterior of the parameters from the measurements of the file's calibrate block. |
| Arrays | The Arrays window: every array variable as a table. |
| Residuals | The Residuals window: each equation with the values of its two sides and its residual after the solve. |
| Report | The Report window: the live-value report of the file's report lines. |
| Warnings | The warnings of the last solve: unit mismatches, bounds reached, property limits. |
| Debug Window | The solver's log: the blocks, iterations and residuals of the last solve. |
| Flow | The 2-D flow window: the lattice-Boltzmann field of a model with a flow block. |
| Reference | The Reference window: unit conversion, constants and the function list with a filter. |
| Panels… | the Diagram window panels of the installed packages, each with its model |
| Packages | the installed packages and the packages folder's: tick one to load it |
| Floating Windows | floating windows: move and resize each window; else the docked panes with tabs |
| Cascade | Lay the open windows one over the other, offset. |
| Tile | Lay the open windows side by side. |
| Live Solve | solve while typing and show each equation's value at the end of its line |
| Function Help on Hover | hover a function name in the equations for what it does and its parameters |
| Simple Mode | only the everyday menus and buttons; switch off to see every menu |
| Display Digits… | How many digits the solution shows, and whether fixed or significant. |
| Preferences…Ctrl+, | Units, digits, the editor, live solving, the language of the interface, and the options of the solver. |
| EQS GuideF1 | the EQS book: learn the app chapter by chapter, with examples to load |
| Learn | the lessons of the ticked modules: live examples and exercises that EQS checks |
| EQS for Excel Users | a short guide for spreadsheet users: equations instead of cells, inputs and results, units, tables, what-if |
| Tutorial | The tutorial in short steps; each step's model loads into the editor. |
| Reference (functions, units, constants) | The Reference window: the function list, the units and the constants. |
| Directive Information… | The settings a file can carry (units, use, simulate …), each with its form and meaning. |
| What's New | What changed in this version and the ones before. |
| License Information | The licence of EQS and the licences of the libraries it uses (CoolProp, CodeMirror …). |
| License Status… | the licence file EQS found, its dates, and how to install one |
| About EQS | The version, the build and the credits. |