示例#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
示例#2
0
文件: coords.py 项目: heartvalve/mapy
 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
示例#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
示例#4
0
文件: coords.py 项目: jz20170904/mapy
 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
示例#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
示例#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])
示例#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])
示例#8
0
文件: grids.py 项目: heartvalve/mapy
 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)
示例#9
0
文件: grids.py 项目: jz20170904/mapy
 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)
示例#10
0
文件: prop1d.py 项目: heartvalve/mapy
 def __init__(self, inputs):    
     super( PropRod, self ).__init__()
     self = user_setattr(self, inputs)
示例#11
0
 def __init__(self, inputs):
     Loads.__init__(self)
     self = user_setattr(self, inputs)
示例#12
0
 def __init__(self, inputs):
     Elem1D.__init__(self)
     self = user_setattr(self, inputs)
示例#13
0
 def read_inputs(self, inputs={}):
     if len(inputs) > 0:
         self = user_setattr(self, inputs)
示例#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)
示例#15
0
 def __init__(self, inputs):
     super(PropShell, self).__init__()
     self = user_setattr(self, inputs)
示例#16
0
 def __init__(self, inputs):
     Loads.__init__(self)
     self = user_setattr(self, inputs)
     self.lf = {}
     self.lf[self.id] = 1.
示例#17
0
 def read_inputs( self, inputs = {} ):
     if len( inputs ) > 0:
         self = user_setattr( self, inputs )
示例#18
0
文件: loads.py 项目: heartvalve/mapy
 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)
示例#19
0
文件: loads.py 项目: heartvalve/mapy
 def __init__(self, inputs):    
     Loads.__init__(self)
     self = user_setattr(self, inputs)
示例#20
0
文件: loads.py 项目: heartvalve/mapy
 def __init__(self, inputs):    
     Loads.__init__(self)
     self = user_setattr(self, inputs)
     self.lf = {}
     self.lf[self.id] = 1.