Materiomics Chronicles: week 1

The first week of the academic year at UHasselt has come to an end, while colleagues at UGent and KULeuven are still preparing for the start of their academic year next week. Good luck to all of you.

This week started full throttle for me, with classes for each of my six courses. After introductions in classes with new students (for me) in the second bachelor chemistry and first master materiomics, and a general overview in the different courses, we quickly dove into the subject at hand.

The second bachelor students got a soft introduction into (some of) the historical events leading up to the birth of quantum mechanics such as the black body radiation, the atomic model and the nature of light. They encountered the duck-rabbit of particle-wave duality and awakened their basic math skills with the standing wave problem. For the third bachelor students, the course on quantum and computational chemistry started with a quick recap of the course introduction to quantum mechanics, making sure they are all again up to speed with concepts like braket-notation and commutator relations.

For the master materiomics it was also a busy week. We kicked of the 1st Ma course “Fundamentals of modeling“, which starts of calm and easy with a general picture of the role of computational research as third research paradigm. We discussed in which fields computational research can be found (flabbergasting students with an example in Theology: a collaboration between Sylvia Wenmackers & Helen De Cruz),  approximation vs idealization, examples of materials research at different scales, etc. As a homework assignment the students were introduced into the world of algorithms through the lecture of Hannah Fry (Should computers run the world). For the  2nd Ma, the courses on DFT and AI both started. The lecture of the former focused on the nuclear wave function and how we (don’t) deal with it in DFT, but still succeed in optimizing structures. During the lecture on AI we dove into the topics of regularization and learning curves, and extended on different types of ensemble models.

At the end of week 1, this brings me to a total of 12h of lectures. Upwards and onward to week 2.

Countdown to Materiomics: Year 2

Last year, we started a new masters program at Hasselt University called “Materiomics“. It is aimed at bachelor students in chemistry and physics who want to become the materials researchers of the future: interdisciplinary team players with experimental, theoretical, and computational skills ready to build anything made of atoms. There are four specialization tracks developed: Health, Energy, Quantum and Circularity. But passionate students can also develop their own line of study (in consultation with the mentor). The start of this new program was also a new start for myself, as I started as a new tenure track professor materiomics (specialized in computational materials science) assigned to the chemistry department. As a result, I spend most of my time creating new courses for the new first year of the masters program. This year, the second year is launched for the first time, and also here I have a significant contribution. Together with the courses I’m teaching in the bachelor Chemistry program, my first semester will be packed. I’ll be teaching & coordinating 6 courses (25 ECTS), three of them new,  and contributing to others as well:

  1. Introduction to quantum chemistry (2nd Ba. Chemistry)
  2. Quantum and computational chemistry (3rd Ba. Chemistry, new)
  3. Fundamentals of materials modeling (1st Ma. Materiomics)
  4. Properties of functional materials (1st Ma. Materiomics)
  5. Density functional theory: the workhorse of first principles modelling of solids and molecules (2nd Ma. Materiomics, new)
  6. Machine learning and artificial intelligence in modern materials science (2nd Ma. Materiomics, new)

As you can see, the central theme in these courses will be to introduce students into the realm of computational research, often at the quantum mechanical/chemical level.

On top of that, one of the first generation materiomics students will be performing a master thesis in my group, studying the GeV-defect in diamond. Bachelor students in chemistry and physics may join as well later with computational bachelor projects, but that is beyond my personal event horizon of the end of the first semester.

In the following weeks, you will be able to find a weekly review of my endeavors in this regard, providing some insights into what the students in chemistry and the master materiomics (Physics & Chemistry) are learning at Hasselt University.

Hydration sphere structure of architectural molecules: polyethylene glycol and polyoxymethylene oligomers

Authors: Ahmed M. Rozza, Danny E. P. Vanpoucke, Eva-Maria Krammer, Julie Bouckaert, Ralf Blossey, Marc F. Lensink, Mary Jo Ondrechen, Imre Bakó, Julianna Oláh, and Goedele Roos
Journal: Journal of Molecular Liquids 384, 122172 (2023)
doi: 10.1016/j.molliq.2023.122172
IF(2021): 6.633
export: bibtex
pdf: <JMolLiq>

 

Graphical Abstract: PEG or POM, similar in structure though very different in their solvation. Is this due to structure or charge(distribution)?

Abstract

Non-toxic, chemically inert, organic polymers as polyethylene glycol (PEG) and polyoxymethylene (POM) have versatile applications in basic research, industry and pharmacy. In this work, we aim to characterize the hydration structure of PEG and POM oligomers by exploring how the solute disturbs the water structure compared to the bulk solvent and how the solute chain interacts with the solvent. We explore the effect of (i) the C-C-O (PEG) versus CO (POM) constitution of the chain and (ii) chain length. To this end, MD simulations followed by clustering and topological analysis of the hydration network, as well as by quantum
mechanical calculations of atomic charges are used. We show that the hydration varies with chain conformation and length. The degree of folding of the chain impacts its degree of solvation, which is measurable by different parameters as for example the number of water molecules in the first solvation shell and the solvent accessible surface. Atomic charges calculated on the oligomers in gas phase are stable throughout conformation and chain length and seem not to determine solvation. Hydration however induces charge transfer from the solute molecule to the solvent, which depends on the degree of hydration.

 

E-MRS Spring meeting 2023

In march 2019, Belgium went into COVID-lock down while I attended the yearly diamond conference (SBDD25). Since then, I have been in a bit of a conference lock down myself as well. By visiting the 2023 spring meeting of E-MRS, this lock down has been lifted for international conferences (outside Belgium). Inside Belgium, there was already the DFT-2022 in Brussels, where I was also part of the National Scientific Committee, and of course SBDD26 & SBDD27, which as a diamond researcher you can not miss.

Coming back to Strassbourg for E-MRS brings back some memories, and generated some nice new ones. This year there was a nice Symposium called “Computations for materials – discovery, design and the role of data“[program] which got my full attention. During the first session on AI-accelerated Materials discovery, I had the pleasure to present some of my own work on the Machine Learning of small data sets (cf. papers on the average model, and UV-curable inks). The symposium was nicely coinciding with much of my interest, and showed two (not unexpected, and maybe symposium biased) trends:

  1.  There is an important evolution toward lab-automation and use of robotics (people don’t want to manually build dozens of battery cells or perform hundreds of repetitive synthesis experiments for materials optimization. This shows the future materials scientist, be it a chemist, physicist or engineer will have to become a robotics and/or programming expert as well. This only strengthens me in my vision for our materiomics [NL] students at UHasselt. These skills will be essential for their future scientific career development.
  2. Machine Learning and Artificial Intelligence will play an important role in future materials design. However, we need a better understanding of what we are doing, and not just use any method and accept it as “excellent” because the R² value is high. For now, we can still get away with the latter, but this will not last much longer. It will become more important to have a simple but interpretable model, rather than a complex (over-fitting) Deep Learning Neural Network without understanding of the underlying physics and chemistry. Also here we will have to put in some effort within the materiomics program.

 

So after an interesting International conference, and making some new contacts…it is time to return home, four more courses need to be prepared from scratch for coming academic year.

Review of 2022

Happy New Year

2022 has been a year of many firsts. Most importantly, it is the year I started as a tenure track professor (i.e. assistant professor) starting the QuATOMs group at Hasselt University. In addition, this is the first year the new master materiomics program at UHasselt was provided. In this program, I’m responsible for the theoretical and computational components of materials research, and thus teaching several new classes which are unique in the world. Next year, the second master year will start, with more classes to create.

But before we launch into these new and interesting times, lets look back at 2022 one last time, keeping up with  tradition. What have I done during the last year of academic merit.

1. Publications: +4 (and currently a handful in progress)

2. Cover publication: +1

Cover Polymer International: Machine learning on small data sets, application on UV curable inks.

Cover Polymer International: Machine learning on small data sets, application on UV curable inks.

  • Danny E.P. Vanpoucke, Marie A.F. Delgove, Jules Stouten, Jurrie Noordijk, Nils De Vos, Kamiel Matthysen, Geert G.P. Deroover, Siamak Mehrkanoon, and Katrien V. Bernaerts,
    Polymer International 71(8), i-i (2022),
    doi: 10.1002/pi.6434 {IF(2021)=3.213}

3. Project proposals accepted: +1

  • Digitization of lignin polyurethane development (DigiLignin), in a consortium with Maastricht University and VITO.

4. Completed refereeing tasks: +12

  • Optical Materials
  • Journal of Applied Physics (2x)
  • Frontiers in Physics
  • Journal of Physics: Condensed Matter (2x)
  • Diamond and Related Materials (6x)

5. Conferences & seminars: +3/+1 (Attended & Organised)

With regard to conferences, 2022 was the year everyone wanted to go back to “normalcy”, though COVID is still very much present.

  • SBDD XXVI, Hasselt University, Belgium, March 9th-11th, 2022 [poster presentation, PhD student]
  • BPS-2022, Tabloo Science expo (SCK-CEN), Belgium, May 18th, 2022 [oral presentation]
  • DFT-2022: 19th International Conference on Density Functional Theory and its Applications, Brussels, Belgium, August 28th-September 2nd, 2022. [member of National Organization Committee; poster]
  • VUB-virtual seminar @ALGC group (F. De Proft), Online, November 29th, 2022 [invited seminar presentation]

6. Current size of HIVE:

  • 62K lines of program (code: 69 %)
  • ~100 files
  • 50 (command line) options

7. Hive-STM program:

And now, upward and onward, a new year, a fresh start.

Elucidating the optimized P2 type Na0.67Mn1−xCuxO2 cathode active material via operando XAS

Authors: S. Altin, S. Altundag, E. Altin, D. E. P. Vanpoucke, S. Avci, and M. N. Ates
Journal: Journal of Alloys and Compounds 936, 168138 (2023)
doi: 10.1016/j.jallcom.2022.168138
IF(2021): 6.371
export: bibtex
pdf: <J. Alloys Compd.>

Abstract

Here we report on the structural and electrochemical properties of P2-type Na0.67Mn1−xCuxO2 (where x = 0.20–0.50) via various techniques. X-ray diffraction (XRD) reveals a reduction of the unit cell volume upon substitution of Cu elucidated through detailed Rietveld analysis. The cyclic voltammetry (CV) behavior is also affected by the Cu substitution indicating new redox reactions stemming from Cu substitution. Galvanostatic cycling measurements at room temperature show that when x = 0.35 in a P2-type Na0.67Mn1−xCuxO2 cathode active material, the best electrochemical performance is obtained. The Na-ion diffusion rate is found to be strongly dependent upon the environmental temperature. Changes in the
valence state and the local structures of P2-type Na0.67Mn1−xCuxO2 during the charge/discharge are investigated through the operando X-ray absorption spectroscopy (XAS) technique.

 

Python Tutorial: Child Classes

In the previous tutorial of the wordle-mania-series, we had a quick overview of how to construct a basic class in Python. Here we take our class adventure a step further and implement a child class. As before, the full source of this project can be found in our GitHub repo.

1. Building a child class.

The construction of a child class is near identical to the construction of a non-child class. The only difference being we need to somehow indicate the class is derived from another class. During our previous tutorial, we created the WordleAssistant class, so let’s use it as a parent for the WordleAssistant2 child class.

from .WordleAssistant import WordleAssistant

class WordleAssistant2(WordleAssistant):
    pass

First, note that we need to import the WordleAssistant class, which is stored in a file WordleAssistant.py, contained in the same folder as the file containing our child class (hence the “.” in front of WordleAssistant). At this point, most python developers will hate me for using the same name for what is considered a module and a class, as you could put multiple classes in a single file. Then again, once you start writing object oriented code, it is good practice to put only one class in a single file, which makes it rather strange to use different names.

Second, we put parent class between the brackets of the child class. Through this simple action, and the magic of inheritance, we just created an entirely new class containing all functions and functionality of the parent class. The keyword pass is used to indicate no further methods and attributes will be added.

2. Child class individuality.

Of course, we want our child class to not be just a wrapper of the parent class. The choice to use a child class can be twofold:

    1.  Extension of an existing class. This can either be because you are not the developer of the parent class, or (in case you are the developer) because you don’t want to accidentally destroy a working piece of software (c.q. parent class) while trying out some new features, or …
    2. Modification/implementation of specific class behavior. The standard (trivial) examples involve drawing classes, which in one child class draw circles, while in another it draws squares.
    3. Both of the above.

In our case, we are going to ‘upgrade‘ our WordleAssistant class by considering the prevalence of every letter at the specific position in the 5-letter word. This in contrast to our original implementation which only considered the prevalence of a letter anywhere in the word. Adding new functionality with “new” methods and attributes, happens as for the parent class. You just define the new methods and attributes, which should have names that differ from the names for methods and attributes already used by the parent class.

However, sometimes, you may want or have to modify existing methods. You can either replace the entire functionality overwriting that of the parent method, or you may extend that functionality.

2.1. Extending methods.

When you still want to make use of the functionality of the method of the parent class you could just copy that code, and add your own code to extend it. This however makes your code hard to maintain, as each time the parent class code is modified, you would need to modify your child class as well. This increases the risk of breaking the code. Luckily, similar as programming languages like C++ and Object Pascal,  there is a useful trick which allows you to wrap the parent class code in your overwritten child class method. A location where this trick is most often used is the initialization method. Below you can see the __init__ function of the  WordleAssistant2 child class.

def __init__(self, size: int = 5, dictionary : str = None ):
    super().__init__(size, dictionary)
    self.FullLettPrevSite = self._letterDistSite(self.FullWorddict)
    self.CurLettPrevSite = copy.deepcopy(self.FullLettPrevSite)

The super() function indicates we are going to access the methods of the parent of the class we are working in at the moment. The super().__init__() method therefor refers to the __init__ method of the WordleAssistant class. This means the __init__ method of the WordleAssistant2 child class will first perform the __init__ method of the WordleAssistant class and then execute the following two statements which initialize our new attributes. Pretty simple, and very efficient.

2.2. Overwriting methods.

In some cases, you don’t want to retain anything of the parent method. By overwriting a method, your child class will now use a totally new code which does not retain any functionality of the parent method. Note that in the previous section we were also overwriting the __init__ method, but we retained some functionality via the call using super(). An example case of a full overwrite is found in the _calcScore method:

def _calcScore(self, WD: dict, LP: list):
    for key in WD:
        WD[key]['score'] = 0
        for i in range(self.WordleSize):
            WD[key]['score'] += self.CurLettPrevSite[i][WD[key]['letters'][i]]

Although this method can still make use of attributes (self.WordleSize) and methods of the parent class, the implementation is very different and unrelated to that of the parent class. This is especially true in case of the python scripting language. Where a programming language like C++ or Object Pascal will require you to return the same type of result (e.g. the parent class returns an integer, then the child class can not return a string, or even a float.), python does not care.  It places the burden of checking this downstream: i.e. with the user. As a developer, it is therefore good practice to be better than standard python and take away as much of this burden from the future users of your code (which could be your future self.)

Finally, a small word of caution with regard to name mangling. Methods with two leading underscores can not be overwritten in the child class in the sense that these methods are not accessible outside the parent class. This means also inside a child class these methods are out of scope. If we had a __calcScore method instead, creating an additional __calcScore in our child class would give rise to a lot of confusion (for python and yourself) and unexpected behavior.

3. Additional sources:

Cover image Polymer International: A machine learning approach for the design of hyperbranched polymeric dispersing agents based on aliphatic polyesters for radiation curable inks

Authors: Danny E.P. Vanpoucke, Marie A.F. Delgove, Jules Stouten, Jurrie Noordijk, Nils De Vos, Kamiel Matthysen, Geert G.P. Deroover, Siamak Mehrkanoon, and Katrien V. Bernaerts
Journal: Polymer International 71(8), i-i (2022)
doi: 10.1002/pi.6434
IF(2015): 3.213
export: bibtex
pdf: <PolymerInt>

Abstract

The cover image is based on the Research Article A machine learning approach for the design of hyperbranched polymeric dispersing agents based on aliphatic polyesters for radiation-curable inks by Danny E.P. Vanpoucke et al., https://doi.org/10.1002/pi.6378.  (The related paper can be found here.)

 

Cover Polymer International: Machine learning on small data sets, application on UV curable inks.

Cover Polymer International: Machine learning on small data sets, application on UV curable inks.

 

A machine learning approach for the design of hyperbranched polymeric dispersing agents based on aliphatic polyesters for radiation curable inks

Authors: Danny E.P. Vanpoucke, Marie A.F. Delgove, Jules Stouten, Jurrie Noordijk, Nils De Vos, Kamiel Matthysen, Geert G.P. Deroover, Siamak Mehrkanoon, and Katrien V. Bernaerts
Journal: Polymer International 71(8), 966-975 (2022)
doi: 10.1002/pi.6378
IF(2021): 3.213
export: bibtex
pdf: <PI> (Open Access) (Cover Paper)

 

An ensemble based machine learning model for small datasets was used to predict the relationship between the dispersant structure and the pigment dispersion quality (particle size) for radiation curable formulations.
Graphical Abstract:An ensemble based machine learning model for small datasets was used to predict the relationship between the dispersant structure and the pigment dispersion quality (particle size) for radiation curable formulations.

Abstract

Polymeric dispersing agents were prepared from aliphatic polyesters consisting of δ-undecalactone (UDL) and β,δ-trimethyl-ε-caprolactones (TMCL) as biobased monomers, which are polymerized in bulk via organocatalysts. Graft copolymers were obtained by coupling of the polyesters to poly(ethylene imine) (PEI) in the bulk without using solvents. Different parameters that influence the performance of the dispersing agents in pigment based UV-curable matrices were investigated: chemistry of the polyester (UDL or TMCL), weight ratio of polyester/PEI, molecular weight of the polyesters and of PEI. The performance of the dispersing agents was modelled using machine learning in order to increase the efficiency of the dispersant design. The resulting models were presented as analytical models for the individual polyesters and the synthesis conditions for optimal performing dispersing agents were indicated as a preference for high molecular weight polyesters and a polyester dependent maximum weight ratio polyester/PEI.

Animation of TMCL model 6

Animation of TMCL model 6

 

Localized vibrational modes of GeV-centers in diamond: Photoluminescence and first-principles phonon study

Authors: Kirill N. Boldyrev, Vadim S. Sedov, Danny E.P. Vanpoucke, Victor G. Ralchenko, & Boris N. Mavrin
Journal: Diam. Relat. Mater 126, 109049 (2022)
doi: 10.1016/j.diamond.2022.109049
IF(2020): 3.315
export: bibtex
pdf: <DRM>

 

GeV split vacancy defect in diamond and the phonon modes near the ZPL.
Graphical Abstract: GeV split vacancy defect in diamond and the phonon modes near the ZPL.

Abstract

The vibrational behaviour of the germanium-vacancy (GeV) in diamond is studied through its photoluminescence spectrum and first-principles modeled partial phonon density of states. The former is measured in a region below 600 cm−1. The latter is calculated for the GeV center in its neutral, charged, and excited state. The photoluminescence spectrum presents a previously unobserved feature at 248 cm−1 in addition to the well-known peak at 365 cm−1. In our calculations, two localized modes, associated with the GeV center and six nearest carbon atoms (GeC6 cluster) are identified. These correspond to one vibration of the Ge ion along with the [111] orientation of the crystal and one perpendicular to this direction. We propose these modes to be assigned to the two features observed in the photoluminescence spectrum. The dependence of the energies of the localized modes on the GeV-center and their manifestation in experimental optical spectra is discussed.