Skip to content

This repository contains a practical course designed for chemical engineers that want to learn how to solve exercises and program in Python. The course will cover various topics, such as basic Python syntax, data structures, solving ODEs, stoichiometry, data visualization and basic data analysis.

License

Notifications You must be signed in to change notification settings

talaviyabhavik25/Chemical-Reaction-Engineering-in-Python

 
 

Repository files navigation

Chemical-Reaction-Engineering-in-Python

TL;DR

This is a practical course designed for chemical engineers that want to learn how to program in Python. The course is very practical and will cover various topics, such as basic Python syntax, solving ODEs, stoichiometry, data visualization and basic data analysis.

Introduction

Recently, more and more chemical engineering students have expressed the desire to acquire basic programming skills early on in their career, with Python being the most requested language by far. For this reason, we decided to support the regular material taught in the Chemical Reaction Engineering (28342) with an introductory Python course. Therefore, we aim to provide material and practical tutorials to learn Python, so that you have the opportunity to use Python to solve the exercises and assignments.

This course is designed to be very practical, since the best way to learn how to program is by programming. You will start writing and executing code from day 1, through carefully designed exercises. The target of this course is students and professionals in Chemical Engineering that want to learn how to program in Python.

The course may be challenging and overwhelming at the beginning, but don't worry if you don't manage to complete everything. Each week, there will be a mandatory notebook of exercises 01-Exercises and an additional, optional, notebook containing more challenging exercises, for learners that want to test themselves and like to crack the code (pun intended).

Why Python?

Python is one of the most popular languages in use today, thanks to its easy syntax, readability, libraries available and broad documentation. It is open-source, unlike other very popular programs such as MATLAB, which require a license. It has a big community, meaning that other people have probably already asked any possible question you might be having right now. Some forums where to ask and look for questions: StackOverflow (for practical questions about code), StackExchange (for more theoretical questions). It is the to-go language for data analysis and data science, both in academia and industry.

Installation

Here you can find instructions how to install Python.

Helpful tips and tricks before starting

"The most effective debugging tool is still careful thought, coupled with judiciously placed print statements."

— Brian Kernighan, "Unix for Beginners" (1979)

  1. The best way to learn how to program is by programming. It's normal that you cannot solve everything and you are overwhelmed at the beginning. Don't give up and just practice.
  2. Write, test and improve code. Do not expect to write a full program in one sitting: most programmers write, test and rewrite code many times before their program works, so do not get discouraged!
  3. Brainstorm first. Instead of reading a problem and looking for a solution on the Internet, try to think about it yourself. Re-read the problem, brainstorm possible solutions and try to write some code. Make sure that you actually understand what it is asked. Only after you have spent sufficient time on this, look for hints elsewhere.
  4. Learn to comment your code early on. Before coding, visualize what you plan to do and describe is in plan, non-technical text on paper. Try to be as detailed as possible and include all the steps, even the smallest ones. This will be helpful at the beginning of your coding experience to guide you through the process and ensure you do not forget important steps. Later on, when you are more comfortable coding, it will be helpful for reference for you or other teammates. Remember that just because something seems easy for you, it does not mean your colleague can read your code and understand it right away. This is a very important principle for code deployment.
  5. Understand what the program is doing. It is important that you understand what your program is doing. Often, it is useful to simply print what you are doing, this is an easy way to visualize, and therefore better understand, the output. This approach is called tracing or printf() debugging, after the print function name in the C language).

Contacts

If you have any questions regarding the exercises or any feedback on the course, feel free to contact Fiammetta Caccavale ([email protected]).

Feedback

Please fill in our online survey if you have any feedback. We really appreciate your suggestions and we will try to use them to improve the course.

Cite this work

The work has been presented at the 33rd European Symposium on Computer-Aided Process Engineering (ESCAPE33), Athens, 18-21 June.

About

This repository contains a practical course designed for chemical engineers that want to learn how to solve exercises and program in Python. The course will cover various topics, such as basic Python syntax, data structures, solving ODEs, stoichiometry, data visualization and basic data analysis.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Jupyter Notebook 100.0%