Free (standard conforming) library to model mechanical (1D/3D), electrical (analog, digital, machines), magnetic, thermal, fluid, control systems and hierarchical state machines. Also numerical functions and functions for strings, files and streams are included.
It seems like the following link is no longer valid:
https://github.com/modelica/ModelicaStandardLibrary/blob/19739745cf3ec63ac00763a355dd479e9d96254b/Modelica/Mechanics/MultiBody/Examples/Elementary/UserDefinedGravityField.mo#L55
https://earth-info.nga.mil/GandG/publications/tr8350.2/wgs84fin.pdf