def __init__(self): """Create a new properties database.""" Dict.__init__(self) self.mats = MaterialDB() self.sect = SectionDB() self.prop = [] self.nprop = [] self.eprop = []
def __init__(self,mat='',sec=''): """Create a new properties database.""" setMaterialDB(mat) setSectionDB(sec) Dict.__init__(self) self.prop = [] self.nprop = [] self.eprop = []
def __init__(self, label=None, value=None): """Create a new element load. Empty by default. An element load can hold the following sub-properties: - label: the distributed load type label. - value: the magnitude of the distibuted load. """ Dict.__init__(self, {"label": label, "value": value})
def __init__(self,edge=-1,label=None,value=None): """Create a new element edge load. Empty by default. An element edgeload can hold the following sub-properties: - edge: the element edge number - label: the distributed load type label ('x','y','z'). - value: the magnitude of the distibuted load. """ Dict.__init__(self, {'edge':edge,'label':label,'value':value})
def __init__(self,label=None,value=None,amplitude=None): """Create a new element load. Empty by default. An element load can hold the following sub-properties: - label: the distributed load type label. - value: the magnitude of the distibuted load. - amplitude: an amplitude instance. """ Dict.__init__(self,{'label':label,'value':value,'amplitude':amplitude})
def __init__(self,data={},default=None): """Creates a new Config instance. The configuration can be initialized with a dictionary, or with a variable that can be passed to the read() function. The latter includes the name of a config file, or a multiline string holding the contents of a configuration file. """ Dict.__init__(self, default=default) if isinstance(data, dict): self.update(data) elif data: self.read(data)
def __init__(self,data={},default=None): """Create a new Attributes dict""" if isinstance(default, Attributes): self._default_dict_ = default default = self._return_default_ elif default is None: default = returnNone elif callable(default): pass else: raise ValueError("The 'default' argument should be an Attributes instance or None; got %s:" % type(default)) default = returnNone Dict.__init__(self, data, default)
def __init__(self,label=None,value=None,dir=None): """Create a new element load. Empty by default. An element load can hold the following sub-properties: - label: the distributed load type label - value: the magnitude of the distibuted load - dir: vector specifying the direction of the load """ if label == 'GRAV': if dir is None: dir = [0, 0, -1] if value is None: value = 9.81 Dict.__init__(self, {'label':label,'value':value,'dir':dir})
def __init__(self, data={}): """Initialize a database. The database can be initialized with a dict. """ Dict.__init__(self, data)
def __init__(self,data={}): """Initialize a database. The database can be initialized with a dict. """ Dict.__init__(self, data)