Resources Numerical accuracy Calculation policy

Radio links, fiber budgets and tower loads

Works out free-space loss, Fresnel zone clearance over the terrain, link margin, fiber loss, link availability, and the wind forces and leg loads of a tower.

How the precision is kept

Each formula is one 64-bit expression. The accuracy is set by the published engineering forms and their rounded constants: 32.44 in the path loss, 17.32 in the Fresnel radius and 12.74 in the earth bulge. The speed of light is exact. Clearance is tested at the terrain samples only, and the mast height search steps by 0.5 m.

Open item. Compute the three rounded constants (32.44, 17.32, 12.74) from the speed of light already in the file and a stated earth radius.

Calculations under this policy

13 calculations in 1 source file. The code is read from the released app when this page loads. It is the calculation people run, not a copy kept for this page.

telecom.js CivilCraft 0.8.1 64-bit 13 calculations Reviewed

Tests bin/test-civilcraft-telecom.mjs

In detail

Method
Free-space loss (the file cites ITU-R P.525), first Fresnel zone and knife-edge loss (ITU-R P.526), earth bulge with the effective earth radius factor (ITU-R P.834), Vigants-Barnett multipath outage (Freeman, Radio System Design for Telecommunications, ch. 10), rain attenuation in the form of ITU-R P.838, wind pressure ½ρV² and Euler buckling.
Number types
64-bit numbers.
Tolerances
A path is clear when the tightest clearance is at least 0.6 of the first Fresnel radius there; the mast search steps by 0.5 m up to 300 m.
Limits
The constants 32.44, 17.32 and 12.74 are rounded; computed from the exact speed of light and an earth radius of 6371 km they are 32.4478, 17.3145 and 12.742. The outage formula is empirical. The tower shaft wind is summed over 10 slices, and the tower check is statics only.

Approach: 64-bit, stated limit

The arithmetic is 64-bit, but the method or the data sets the accuracy: a solver tolerance, a mesh, a step size, a datum shift, a table. The limit is stated where the result is shown.

Every policy that takes this approach