VIKTOR.AI | Accelerate your digital transformation using Python

September 21, 2020

Accelerate your digital transformation using Python

by Anande Bergman

With this article, I (Anande Bergman), would like to share my experiences and thoughts on how engineers can use their programming skills to boost the digital transformation of their companies by creating digital building blocks. These building blocks can be used to make custom applications, for example parametric design tools, that engineers and their companies can use to their advantage.

Additionally, I will explain why Python is the best language for doing this.

Download the white paper and get INSPIRED

Learn how collaborative parametric design models allow you to work together for better solutions.

This article features thoughts from several experts, who were interviewed by Lisa de Kluijver and me and contributed their experience.

A special thanks to:

This is part of a series of articles about engineering and Python. Each time we will go deeper into engineering content and talk about solving specific problems. Other articles on this subject are:

Boosting your digital transformation

The frustration of the iteration

Eight years ago, I graduated from Aerospace Engineering at the University of Technology Delft. During my study I used all kinds of parametric design models, advanced analysis, and optimization techniques. When I started working as a Structural Engineer, I was disappointed: there was never time, budget, and willingness to create professional software tools that could make a big difference in the long term.

Frustrated by the large amount of boring and repetitive tasks of a typical engineering project, I went on making software tools myself, using project hours. I was supposed to just update the models and reports, but it seemed that no one cared as long as I was meeting the deadlines. I never regret this decision, as those tools enabled me to react more quickly to the many design changes in a project every time.

My Python toolbox

It took me a while before I discovered the best programming language to do this. At university, I learned to use Matlab; however, not every engineering company I worked for could afford those expensive licenses. Frustrated by the limitation of my Excel sheets I decided to give it a boost by learning Visual Basic (VBA). What a bad choice. I wish that someone had told me: use Python!

With time, I had a small library with codes, like having a box with digital building blocks that I could connect and combine to solve a specific problem, making it easier and quicker to make those programs each time. The advantages of having a software library were obvious, but the question remained: Why were the companies for whom I was working not building their own libraries?

Going beyond the project system

Many companies work project-based, and that was exactly the problem. Everything needs to be done between the scope, budget, and limitations of a project. This project-based model does not stimulate creating software as a company, which can later be used in several projects. Due to the lack of good software, design changes need to be done individually by each discipline, models are updated manually, and there is a lot of slow communication. Therefore, each change has a significant impact on the progress. I call this the sawtooth effect.

Building digital assets

Starting to build custom software tools as a company requires a change in mentality. It is investing upfront and benefiting later, which may seem risky. However, when done properly, progress can go exponentially and calculating and reporting a design change can become a matter of minutes.

At the beginning, progress is hard to track, which makes people nervous. I think this is a big reason why many companies are not taking the first step to creating custom software for their projects. The solution is therefore investing in digital building blocks. Once you have a few of those in your possession, you can reutilize and connect them to quickly make software applications and benefit immediately. Digital building blocks are assets for the company that everyone can use and provide long-term benefit.

"Construction companies grow linearly, but programming their own building blocks makes it exponential. Programming building blocks is like building up capital. Each time you can make more, better, quicker, and cheaper software applications, allowing you to take a big step forward." - Johan Tuls, BAM

Some background info about Python

Python was created by Guido van Rossum and first released in the beginning of the nineties. The aim was to help programmers write clear, logical code for both small and large-scale projects.

"Python is the future because it is a lingua franca. It transcends all platforms and domains. You can use it for infinitely different software applications. This makes Python unique." - Jacco Hoekstra, Technical University Delft

To sum it up, these are the most important reasons for why Python has become so popular:

With Python, you can start small and slowly build up a digital empire. Companies like Google, Facebook, Instagram, Spotify, and Netflix all use Python.

Digital Building Blocks

The common approach to build scalable software and cooperate is to think in digital building blocks that can be connected to each other, making the process versatile and scalable.

Some benefits of using this building block approach are:

This approach started in the software development community, with object-oriented programming and packages used to create your own software tools. Today, it is becoming more popular in Engineering, Data Science, Architecture, and the Scientific Community as well.

Anything you can connect and command can be seen as a building block, whether it’s a simple script, a free Python package, or FEM software.

Objects: The building blocks of Python

Python is object-oriented, allowing you to break software down into small parts (objects) and solve them separately.

Object creation

To create an object, you define a class, which serves as a template for creating objects with defined behaviors and properties. A class can be used to create many objects, utilizing the properties of each for calculations or creating a larger object.

Free information flow

Information between objects can flow freely, which is different from scripts made using Visual Basic or Matlab where changes affect everything below it. With Python, this problem does not exist. In general, see objects as digital building blocks for a larger software program, allowing various specialists to build, maintain, and improve their objects, sharing them with others to create even more.

Free building blocks

The Python Package Index (PyPI) has 243,692 packages available for free! Most aren't self-standing software, but building blocks for creating larger tools. Their quality is high, so use them well to build your code quickly!

For example:

External software is just another block

Engineers frequently encounter limitations with standard software, prompting a shift in mentality. Standard software is seen as a part of a greater process, with engineers now seeking connectivity.

Many external software packages can be controlled with Python, enabling you to integrate them with your code. For example, you can combine a cost model in Excel with a structural calculation to find cost-effective solutions that meet structural requirements.

What’s next?

Knowledge distribution

As an engineering community, the distribution of knowledge remains a significant challenge. We must consider the best way to distribute digital building blocks and make knowledge available. I would love to hear your input!

The two groups are: those who can program and utilize the code, and those who cannot but use the tools.

Marketplaces for software applications

I foresee marketplaces where specialists can offer their software applications as digital building blocks to solve larger or specific problems. Financial compensation will stimulate engineers to create specific tools.

Additional challenges

For the non-programmers, solutions can include user interfaces and online applications, making it easier for different disciplines to access a common environment and decide based on the latest information.

Want to know more?

This is the first article in a series about engineering and Python. We will discuss creating professional applications for engineering, and how to make parametric design tools using Python and popular engineering software like Grasshopper, Dynamo, SCIA, RFEM, and IDEA.

VIKTOR is on a mission to unleash engineering potential, developing a platform where engineers can build web-based applications using Python. We welcome feedback on our ideas and encourage you to try out our platform.