Exemplo n.º 1
0
 def adaptic_print(self):
     if self.softening:
         line = utils.str_joint([
             self.ID, 'stl1', self.E1, self.fy, self.mu, self.epsilon_u,
             self.E3
         ])
     else:
         line = utils.str_joint(
             [self.ID, 'stl1', self.E1, self.fy, self.mu])
     return line
Exemplo n.º 2
0
 def adaptic_print(self, rawNr=False):
     if rawNr:
         return self.ID, 'con1', self.Ec1, self.fc1, self.Ec2, self.fc2, self.Et1, self.ft, self.Et2
     elif self.rev17:
         line = utils.str_joint([
             self.ID, 'con1', self.Ec1, self.fc1, self.Ec2, self.fc2,
             self.Et1, self.ft, self.Et2, -self.alpha, -1
         ])
     else:
         line = utils.str_joint([
             self.ID, 'con1', self.Ec1, self.fc1, self.Ec2, self.fc2,
             self.Et1, self.ft, self.Et2, self.alpha
         ])
     return line
Exemplo n.º 3
0
 def adaptic_print(self):
     # convert dictionary values of different dimensionality to a flatten list
     dict0 = self.__dict__
     dict1 = np.array(list(dict0.values())[0:12])
     dict2 = np.array(list(dict0.values())[12])
     dict2 = [val for sublist in dict2 for val in sublist]
     line = np.hstack((dict1, dict2))
     return utils.str_joint(line)
Exemplo n.º 4
0
 def adaptic_print(self):
     s_e = 0.5 * self.s_1
     return utils.str_joint([
         self.ID, 'bond', s_e, self.s_1, self.s_2, self.s_3,
         self.slip2tau(s_e),
         self.slip2tau(self.s_1),
         self.slip2tau(self.s_3)
     ])
Exemplo n.º 5
0
 def adaptic_print(self):
     # convert dictionary values of different dimensionality to a flatten list
     line = self.__dict__
     line = np.array(list(line.values())[0:4])
     return utils.str_joint(line)
Exemplo n.º 6
0
 def adaptic_print(self):
     return utils.str_joint([self.ID, 'stl1', self.E1, self.fy])
Exemplo n.º 7
0
 def adaptic_print(self):
     line = utils.str_joint(
         [self.ID, 'con2', self.fc1, self.ft, self.epsilon_1c, self.k])
     return line
Exemplo n.º 8
0
 def adaptic_print(self, rawNr=False):
     return utils.str_joint([
         self.ID, 'con1', self.Ec1, self.fc1, self.Ec2, self.fc2, self.Et1,
         self.ft, self.Et2, self.alphaC, self.alphaT
     ])
Exemplo n.º 9
0
 def adaptic_print(self):
     line = utils.str_joint([self.ID, 'stl1', self.E1, self.fy, self.mu])
     return line