tga_data_analysis.kas_kinetics
- class tga_data_analysis.kas_kinetics.KasSample(project, samples=None, name=None, ramps=None, alpha=None)[source]
Bases:
objectA class to handle and analyze kinetic data using the Kissinger-Akahira-Sunose (KAS) method. It provides functionalities to perform KAS analysis on a set of samples, plot analysis results, and compare different samples’ kinetic parameters.
Initialize a KasSample object with parameters for KAS analysis.
- Parameters:
project (Project) – The Project object associated with the kinetic analysis.
samples (list[Sample], optional) – A list of Sample objects to be analyzed. If None, all samples in the project are used.
name (str, optional) – An optional name for the KasSample object, used for identification.
ramps (list[float], optional) – A list of heating rates for each sample. If None, the heating rates are taken from the samples.
alpha (list[float], optional) – A list of conversion values to be analyzed. If None, a default range is used.
- kas_analysis()[source]
Perform the KAS analysis across the provided samples, calculating the activation energy for different conversions.
This method computes the activation energy for the given conversion values (alpha) using the KAS method. The results are stored within the object for later access and visualization.
- plot_activation_energy(**kwargs)[source]
Plot the activation energy as a function of conversion for the analyzed samples.
This method generates a plot showing the variation of activation energy with conversion, offering insights into the kinetic behavior of the sample.
- Parameters:
kwargs (dict) – Additional keyword arguments for plot customization.
- Returns:
A MyFigure instance containing the activation energy plot.
- Return type:
MyFigure
- plot_isolines(**kwargs)[source]
Plot the KAS analysis isolines for the set of samples.
This method generates a plot of the KAS isolines, providing a visual representation of the kinetic analysis results.
- Parameters:
kwargs (dict) – Additional keyword arguments for plot customization.
- Returns:
A MyFigure instance containing the isoline plot.
- Return type:
MyFigure
- tga_data_analysis.kas_kinetics.plot_multi_activation_energy(kassamples, labels=None, filename='plot', **kwargs)[source]
Plot the activation energy for multiple KAS analyses, comparing their kinetic parameters.
This function creates a plot showing the activation energy against conversion for a series of KasSample objects, allowing for a comparative analysis of different samples or conditions.
- Parameters:
kassamples (list[KasSample]) – A list of KasSample objects for which the activation energy plots are generated.
labels (list[str], optional) – Labels corresponding to each KasSample object. If None, the names of the samples are used.
filename (str) – The base name for the file to save the plot. Defaults to “plot”.
kwargs (dict) – Additional keyword arguments for plot customization.
- Returns:
A MyFigure instance containing the comparative activation energy plot.
- Return type:
MyFigure