Transient Information TutorialΒΆ

This tutorial will show the steps to calculate the transient information of an \eM.

First we import the necessary modules:

import numpy as np

Next we load an \eM, either as:

from cmpy.machines import library
m = library(0, 4)[438]

or as:

from cmpy import machines
m = machines.Even()

We now compute the transient information:

ti = m.cmech_quantities(['T'], L)[0][-1]

For certain machines it is only possible to estimate the transient information, and the parameter L specifies the maximum word length used for the estimation. The [0] is used to extract the first row from the two dimensional array returned by cmech_quantities. The [-1] selects the last entry in the row, which corresponds to the best estimate.