argiope/materials.py
def get_plastic_table(self):
     """
     Calculates the plastic data
     """
     E = self.young_modulus
     sy = self.yield_stress
     n = self.hardening_exponent
     eps_max = self.max_strain
     Np = self.strain_data_points
     ey = sy/E
     s = 10.**np.linspace(0., np.log10(eps_max/ey), Np)
     strain = ey * s
     stress = sy * s**n
     plastic_strain = strain - stress / E 
     return pd.DataFrame({"strain": strain, 
                          "stress": stress, 
                          "plastic_strain": plastic_strain})
def get_plastic_table(self):
     """
     Calculates the plastic data
     """
     E = self.young_modulus
     sy = self.yield_stress
     n = self.hardening_exponent
     eps_max = self.max_strain
     Np = self.strain_data_points
     ey = sy/E
     s = 10.**np.linspace(0., np.log10(eps_max/ey), Np)
     strain = ey * s
     stress = sy * s**n
     plastic_strain = strain - stress / E 
     return pd.DataFrame({"strain": strain, 
                          "stress": stress, 
                          "plastic_strain": plastic_strain})
Calculates the plastic data