Borchardt and Daniels Kinetic Analysis for Cure Data Using PYTHON Programming Language

Keywords: DSC, Kinetics, B&D, JSON, Python

TB113

Abstract

The technical brief discusses an approach to the kinetic analysis of reaction data using PYTHON™ Programming Language and associated libraries. The JSON file and the PYTHON Script (in JUPYTER™ Notebook format) can be downloaded here.

The Borchardt and Daniels approach is used as outlined in ASTM E2041 [1]. The example script here follows the manual calculation steps presented in E2041, but it is worth noting that these steps can be shortened in the script without impact on the final analysis.

Introduction

Commercial kinetics packages typically offer multiple options for analysis; however, users may just be focused on one approach, and this may make a commercial option economically unviable. In reaction kinetic analysis, the Borchardt and Daniels approach is often used to derive kinetic parameters and then these can be used in the generation of predictive curves for reaction extent. ASTM E2041 [1] discusses the steps required to derive the kinetic parameters.

The Borchardt and Daniels approach has been discussed previously in an application note covering several kinetic analysis approaches for DSC data [2]. This approach assumes that the reaction follows nth order kinetics and obeys the general rate equation:

TB113 Equation 01

where:

d𝛼/dt = reaction rate (1/sec)
𝛼 = fractional conversion
k(T) = specific rate constant at temperature T
n = reaction order

It also assumes Arrhenius behavior which defines the rate constant as a function of temperature:

TB113 Equation 02

where:

Ea = Activation energy (J/mol)
Z = pre-exponential factor (1/sec)
R = gas constant = 8.314 J/mol K

Substituting Equation 2 into Equation 1 yields Equation 3:

TB113 Equation 03

Taking the natural logarithms of this equation yields Equation 4, which is Method B in ASTM E2041:

TB113 Equation 04

This has the linear form z = ax + by + c, which can be solved using multivariate linear regression. The values for 𝛼, T, and d𝛼/dt are obtained from a single linear heating rate experiment.

Experimental

A simple commercial two-part epoxy adhesive was taken and mixed in a 50:50 ratio of resin:hardener. From this, a 3 mg sample was taken and prepared in a Tzero™ Hermetic Pan. The sample was run on a TA Instruments™ Discovery™ DSC25 with RCS90 chiller system under the following method:

  1. Equilibrate -40.00 °C
  2. Ramp 5.00 °C/min to 250 °C

The result file was exported from TRIOS™ Software in a JSON format and imported into PYTHON Programming Language as a dataframe. Figure 1 shows the plot of the heating cycle. This helped define the analysis limits for the kinetic analysis.

General observation suggested that temperature limits from 18 °Cto 200 °C would correctly encompass the cure peak. As such, a second dataframe was generated just covering that temperature range. In addition, since the kinetic analysis only requires time, temperature, and heat flow, just these three signals were pulled into the new dataframe.

Figure 1. Full heating ramp of the epoxy adhesive
Figure 1. Full heating ramp of the epoxy adhesive

PYTHON Script

The PYTHON Script will take the general form of:

  • Importing the required libraries
  • Import the data file being investigated and create the dataframe (also possible to plot this data)
  • Define any required functions
  • Use the dataframe to generate conversion and residual data
  • Extract selected data from this for the kinetic analysis and calculate the kinetic parameters

These broad steps encompass the detail provided in the ASTM E2041; however, it is useful to take this further to generate the rate constants at different temperatures, 60-minute half-life and isoconversion plots. As this is generally useful for kinetic analysis and not just in this specific case, the generation of the isothermal / isoconversion plot data is the subject of a separate technical brief. TB114 [3].

As with previous technical briefs [4] [5] [6], during the development of the script it may be useful to plot output results at important steps. These can be entered as required and removed when the script is working as expected.

The first step is to import the required libraries. The bulk of the libraries to be imported are the same as discussed previously for integration [6]. Additionally, the LmFit library [7] is being imported for the multivariate linear regression. The library was used previously in the DSC peak deconvolution example [8]. However, while it is primarily used for non-linear curve fitting, it can also be used for multivariate linear regression. It is worth noting that there are other libraries available in which multivariate linear regression can be carried out, for example scikit-learn [9] although, its primary activity is in statistical analysis.

TB113 Code 01

The data was then imported and the dataframe created:

TB113 Code 02

The functions that will be used in the script are created next:

TB113 Code 03

The first function will be used to find the index position (and confirmation of actual value, if required) of specific values within a dataframe. The second and third functions are defining the enthalpy change (total area under the curve), and the cumulative enthalpy change as a function of time. The final function is just finding the index position in the dataframe of the maximum value.

From the TRIOS Software plot or plotting this data (Figure 1) the region of interest is between 18 °C and 200 °C. A second dataframe can be created from the data within that region. In addition, since only the time, temperature, and heat flow are required, it is just these that are brought into the new data frame.

TB113 Code 04

In previous notes, when selecting the limits, the dataframe index values were found based on the required limits and then these were used for the data extraction. An alternative option is shown here in which the specific limits and not the index positions are defined and used in the code.

Once this dataframe has been obtained, the steps to generate the kinetic parameters can be undertaken.

The first step is to construct a linear baseline from before the cure peak to return to heat flow baseline. This is then subtracted from the heat flow data so that only the heat flow due to the cure is considered. It also allows the peak heat flow in the cure to be identified. If this is too high, then there is a possibility that the temperature becomes sample-dominated and will impact the derived kinetics. These steps are shown in the code below.

TB113 Code 05

For the reaction data used in this example the peak heat flow value returned was:

“Peak Heat Flow = 1.17 mW”.

This is important to note given a general requirement that the peak heat flow should be less than 8 mW (assumption of equilibrium conditions in the reaction).

The next step is to find the enthalpy of full cure and the cumulative enthalpy. These do not need to be normalized. The cumulative enthalpy will then be converted into a conversion (from 0 to 1) by dividing the cumulative enthalpy at any given temperature by the enthalpy of full cure or by the cumulative enthalpy value at the upper limit, as these two values are identical.

TB113 Code 06

The kinetic analysis is carried out on the data between 10% and 90% conversion so the index positions at 0.1 and 0.9 conversion are found.

TB113 Code 07

It is worth noting that the find_closest_index function used will return both the index position and the value (which is useful for checking code operation) but since only the index position is needed in the actual analysis, the returned actual value can be represented by the underscore, essentially allowing the value to be returned but ignored.

The kinetic analysis is carried out on a subset of this data. This subset dataframe is created by taking the temperature at 10 and 90% conversion and generating a minimum of 10 equally spaced temperatures. In the code below, 20 equally spaced temperatures were used. In addition, given that kinetic analysis is carried out on an absolute temperate scale, the derived temperatures are converted to the Kelvin scale.

TB113 Code 08

At each of these temperatures, values for the rate of reaction (in mW) and the cure enthalpy remaining are obtained. From the rate of reaction, the fractional rate of reaction is calculated by normalizing with the total enthalpy of cure. In the standard, the fraction of cure remaining is also calculated by taking the cure enthalpy remaining; it should be noted that, as this has already been found as the degree of conversion, some simplification of the script would be possible.

The code entry below represents these steps. The first step is to find the index points in the main dataframe for each of the temperatures identified for the kinetic analysis dataframe. An empty list is created that will be populated with the relevant index positions as the “for” loop iterates through the identified temperatures.

Two further empty lists are created, one for the rate of reaction and one for the heat of reaction remaining. A second “for” loop is iterated through populating these two lists by taking the values at the specified index points. These lists are then added to the kinetic analysis dataframe. The fractional rate of reaction and the fractional enthalpy remaining are then calculated by taking the rate of reaction and the enthalpy remaining and normalizing these with the total enthalpy change.

TB113 Code 09

The regression analysis is carried out on the logarithmic form of the equation shown in Equation 4. As such, the final step in the creation of the analysis dataframe is to take the natural logarithms of fractional rate of reaction, the fractional enthalpy and the reciprocal of the temperature (in Kelvin) as shown in the code below.

TB113 Code 10

All the data is now available to carry out the multivariate linear regression. Taking Equation 4, the respective values can be brought into a new data set for the analysis defining the independent and dependent variables.

TB113 Code 11

The linear model can be defined and the multivariate linear regression carried out. The curve fitting function takes a single independent factor, so each of the independent variables is packaged into this one factor. For the linear regression, the model function is assigned to the model class and initial parameters are also defined. In this case the reaction order, activation energy, and the natural log of the pre-exponential factor have been set to 1. It is important that an initial “guess” is made otherwise the iterative process cannot start.

The final fitting parameters not only includes the required parameters for the model but also values such as the goodness of fit which may be useful.

Finally, in this block of code, the reaction order, activation energy, and natural log of the preexponential factor are reported along with the goodness of fit (R-squared). The print option used here is utilising the f-string (formatted string), which allows the operator to report the values in a formatted manner–in this case, the “.4f” will return the value to 4 decimal places.

TB113 Code 12

This analysis reported the following kinetic constants:

Reaction Order: 1.8047
Activation Energy: 72.5772 kJ/mol
ln PreExponential Factor: 18.3079 1/s
The goodness of fit (R-squared) was reported as: 0.997

This step is the last section of ASTM E2041. However, there is a final comment that notes that once these values are obtained, the rate constant could be obtained for any temperature of interest using Equation 2, allowing reaction predictions to be made. As this is useful to kinetic analysis in general, this is the subject of a separate technical brief, TB114 [3]

Conclusions

This technical brief has presented an overview of the approach to carrying out kinetic analysis of reaction data using the Borchardt and Daniels method using PYTHON Programming Language and the JSON file exported from DSC data in TRIOS Software.

References

  1. ASTM International, “ASTM E2041-13 Standard Test Method for Estimating Kinetic Parameters by Differential Scanning Calorimeter Using the Borchardt and Daniels Method,” ASTM International, West Conshohocken, PA, 2018.
  2. TA Instruments, “TA073 A Review of DSC Kinetic Methods,” TA Instruments, New Castle, DE.
  3. P. Davies, “TB114 Creation of Rate Constant, Isoconversion and Isothermal Data From Kinetic Analysis Results Using Python,” TA Instruments, New Castle, DE, 2026.
  4. P. Davies, “TB106 TRIOS Software and JSON Export: Basic Interaction with the Dataframe in Python,” TA Instruments, New Castle, DE, 2025.
  5. P. Davies, “TB107 TRIOS Software and JSON Export: Working With Matplotlib.Pyplot in Python,” TA Instruments, New Castle, DE, 2025.
  6. P. Davies, “TB109 TRIOS Software and JSON Export: Integrating Differential Scanning Calorimetry Data,” TA Instruments, New Castle, DE, 2025.
  7. Zenodo, “LMFIT: Non-Linear Least-Squares Minimization and Curve-Fitting for Python,” [Online]. Available: https://doi.org/10.5281/zenodo.598352.
  8. P. Davies, “TB110 Deconvolution of DSC Data Using Python,” TA Instruments, New Castle, DE, 2025.
  9. “scikit-learn: Machine Learning in Python,” [Online]. Available: https://scikit-learn.org/stable/index.html.

Acknowledgement

For more information or to request a product quote, please visit www.tainstruments.com to locate your local sales office information.

This paper was written by Philip Davies, Principal Applications Scientist, TA Instruments.

TA Instruments, Discovery, TZero, and TRIOS are trademarks of Waters Corporation or its affiliates. PYTHON is a trademark of Python Software Foundation. JUPYTER is a trademark of LF Charities, Inc.

Click here to download the printable version of this application note.

Contact us to learn more about our instrumentation and how it can benefit your research.