Examples

Here, we look at example use cases for the library, and show how to use it in python.

It’s also well worth looking at the unit test cases copied straight from the unit test cases, so you can always check there to see how everything hooks up.

[Simple] Equipment installation cost

You need to provide your team with an estimate for installation cost of an equipment foundation.

It’s a straightforward calculation for you, but the Logistics Team keeps changing the installation position, to try and optimise the overall project logistics.

Each time the locations change, the GIS team gives you an updated embedment depth, which is what you use (along with steel cost and foundation type), to calculate cost and report it back.

This twine allows you to define to create a wrapper around your scripts that communicates to the GIS team what you need as an input, communicate to the logistics team what they can expect as an output.

When deployed as a digital twin, the calculation gets automatically updated, leaving you free to get on with all the other work!

[Simple] Site weather conditions

You need to be able to get characteristic weather conditions at a specific location, for a range of reasons including assessing extreme design loads. The values you need are computed in a script, which calls a Weather API (provided by a third party), but also needs a dataset of “Wind Resource” files.