Exemple #1
0
 def read_inputs(self, inputs={}):
     if len(inputs) > 0:
         self = user_setattr(self, inputs)
     if self.id == None and self.ida <> None:
         self.id = int(self.ida)
         CSYSGLOBAL = mapy.constants.CSYSGLOBAL
         self.rcid = 0
         self.rcobj = CSYSGLOBAL
Exemple #2
0
 def read_inputs( self, inputs = {} ):
     if len(inputs) > 0:
         self = user_setattr(self, inputs)
     if self.id == None and self.ida <> None:
         self.id = int(self.ida)
         CSYSGLOBAL = mapy.constants.CSYSGLOBAL
         self.rcid = 0
         self.rcobj = CSYSGLOBAL
Exemple #3
0
 def read_inputs(self, inputs={}):
     if len(inputs) > 0:
         self = user_setattr(self, inputs)
     if not self.nu21:
         nu21 = np.array(self.nu12*self.e2/self.e1, dtype=FLOAT)
         self.nu21 = nu21
     if not self.nu12:
         nu12 = np.array(self.nu21*self.e1/self.e2, dtype=FLOAT)
         self.nu12 = nu12
Exemple #4
0
 def read_inputs(self, inputs={}):
     from mapy.reader import user_setattr
     if len(inputs) > 0:
         self = user_setattr(self, inputs)
     if self.id is None and self.ida is not None:
         from mapy.constants import CSYSGLOBAL
         self.id = int(self.ida)
         self.rcid = 0
         self.rcobj = CSYSGLOBAL
Exemple #5
0
 def read_inputs(self, inputs={}):
     if len(inputs) > 0:
         self = user_setattr(self, inputs)
     if not self.nu21:
         nu21 = np.array(self.nu12*self.e2/self.e1, dtype=FLOAT)
         self.nu21 = nu21
     if not self.nu12:
         nu12 = np.array(self.nu21*self.e1/self.e2, dtype=FLOAT)
         self.nu12 = nu12
Exemple #6
0
 def __init__(self, inputs):
     self.card = None
     self.entryclass = None
     self.id = None
     self.gridid = None
     self.dof = None
     self.displ = None
     self.g2 = None
     self.c2 = None
     self.d2 = None
     self.model = None
     self.conscount = None
     self = user_setattr(self, inputs)
     if self.dof.__class__.__name__ <> 'list':
         str_dof = self.dof
         self.dof = set([int(dof) for dof in str_dof])
Exemple #7
0
 def __init__(self, inputs):
     self.card = None
     self.entryclass = None
     self.id = None
     self.gridid = None
     self.dof = None
     self.displ = None
     self.g2 = None
     self.c2= None
     self.d2 = None
     self.model = None
     self.conscount = None
     self = user_setattr(self, inputs)
     if self.dof.__class__.__name__ != 'list':
         str_dof = self.dof
         self.dof = set([int(dof) for dof in str_dof])
Exemple #8
0
 def read_inputs( self, inputs = {} ):
     self = user_setattr(self, inputs)
     if self.perm_cons.__class__.__name__ <> 'set':
         str_perm_cons = self.perm_cons
         self.perm_cons = set([int(dof) for dof in str_perm_cons])
     #checking strings
     if self.rcid == '' \
     or self.rcid == None:
         self.rcid = 0
     if self.ocid == '' \
     or self.ocid == None:
         self.ocid = 0
     #updating he pointers to CSYSGLOBAL if rcid and ocid == 0
     if self.rcid == 0:
         self.rcobj = CSYSGLOBAL
     if self.ocid == 0:
         self.ocobj = CSYSGLOBAL
     self.garray = np.array([ self.x1, self.x2, self.x3 ], dtype=FLOAT)
Exemple #9
0
 def read_inputs(self, inputs={}):
     self = user_setattr(self, inputs)
     if self.perm_cons.__class__.__name__ != 'set':
         str_perm_cons = self.perm_cons
         self.perm_cons = set([int(dof) for dof in str_perm_cons])
     #checking strings
     if self.rcid == '' \
     or self.rcid == None:
         self.rcid = 0
     if self.ocid == '' \
     or self.ocid == None:
         self.ocid = 0
     #updating he pointers to CSYSGLOBAL if rcid and ocid == 0
     if self.rcid == 0:
         self.rcobj = CSYSGLOBAL
     if self.ocid == 0:
         self.ocobj = CSYSGLOBAL
     self.garray = np.array([self.x1, self.x2, self.x3], dtype=FLOAT)
Exemple #10
0
 def __init__(self, inputs):    
     super( PropRod, self ).__init__()
     self = user_setattr(self, inputs)
Exemple #11
0
 def __init__(self, inputs):
     Loads.__init__(self)
     self = user_setattr(self, inputs)
Exemple #12
0
 def __init__(self, inputs):
     Elem1D.__init__(self)
     self = user_setattr(self, inputs)
Exemple #13
0
 def read_inputs(self, inputs={}):
     if len(inputs) > 0:
         self = user_setattr(self, inputs)
Exemple #14
0
 def __init__(self, inputs):
     Loads.__init__(self)
     self = user_setattr(self, inputs)
     self.loads = [int(i) for i in self.loads]
     self.scales = [float(i) for i in self.scales]
     self.scale_overall = float(self.scale_overall)
Exemple #15
0
 def __init__(self, inputs):
     super(PropShell, self).__init__()
     self = user_setattr(self, inputs)
Exemple #16
0
 def __init__(self, inputs):
     Loads.__init__(self)
     self = user_setattr(self, inputs)
     self.lf = {}
     self.lf[self.id] = 1.
Exemple #17
0
 def read_inputs( self, inputs = {} ):
     if len( inputs ) > 0:
         self = user_setattr( self, inputs )
Exemple #18
0
 def __init__(self, inputs):    
     Loads.__init__(self)
     self = user_setattr(self, inputs)
     self.loads = [int(i) for i in self.loads]
     self.scales = [float(i) for i in self.scales]
     self.scale_overall = float(self.scale_overall)
Exemple #19
0
 def __init__(self, inputs):    
     Loads.__init__(self)
     self = user_setattr(self, inputs)
Exemple #20
0
 def __init__(self, inputs):    
     Loads.__init__(self)
     self = user_setattr(self, inputs)
     self.lf = {}
     self.lf[self.id] = 1.