def __init__(self, grp_type, name, Rmai=None, Rmin=None, centre=None, vectx=None, vecty=None): args = [WC.Arg(grp_type, WC.quote(name))] for key, dpl in zip(self._keys, (Rmai, Rmin, centre, vectx, vecty)): if dpl is not None: args.append(WC.Arg(key, dpl)) WC.ArgsConstraint.__init__(self, args)
def __init__(self, name, fx_val, fy_val): WC.ArgsConstraint.__init__(self, [ WC.Arg("GROUP_MA", WC.quote(name)), WC.Arg("FX", fx_val), WC.Arg("FY", fy_val), ]) WC.ArgsConstraint.__init__(self, inputList) self.name = name
def __init__(self, name, vx, vy, vz): WC.ArgsConstraint.__init__(self, [ WC.Arg("GROUP_MA", WC.quote(name)), WC.Arg("FX", vx), WC.Arg("FY", vy), WC.Arg("FZ", vz), ]) self.name = name
def __init__(self, grp_type, name, dplx=False, dply=False, dplz=False, dplrx=False, dplry=False, dplrz=False): args = [WC.Arg(grp_type, WC.quote(name))] for key, dpl in zip(self._keys, (dplx, dply, dplz, dplrx, dplry, dplrz)): if dpl is not False: args.append(WC.Arg(key, 0.)) WC.ArgsConstraint.__init__(self, args)
def __init__(self, name, vfx, vfy, vfz, vmx, vmy, vmz, dim): if dim == 3: WC.ArgsConstraint.__init__(self, [ WC.Arg("GROUP_NO", WC.quote(name)), WC.Arg("FX", vfx), WC.Arg("FY", vfy), WC.Arg("FZ", vfz), WC.Arg("MX", vmx), WC.Arg("MY", vmy), WC.Arg("MZ", vmz), ]) else: WC.ArgsConstraint.__init__(self, [ WC.Arg("GROUP_NO", WC.quote(name)), WC.Arg("FX", vfx), WC.Arg("FY", vfy), ]) self.name = name
def __init__(self, name, vals): inputList = [] inputList.append(WC.Arg("GROUP_MA", WC.quote(name))) if vals[0] != 0: if vals[0] != None: inputList.append(WC.Arg("FX", vals[0])) if vals[1] != 0: if vals[1] != None: inputList.append(WC.Arg("FY", vals[1])) if len(vals) > 2: if vals[2] != 0: if vals[2] != None: inputList.append(WC.Arg("FZ", vals[2])) #WC.ArgsConstraint.__init__(self, [ # WC.Arg("GROUP_MA", WC.quote(name)), # WC.Arg("FX", fx_val), # WC.Arg("FY", fy_val), # WC.Arg("FZ", fz_val), #]) WC.ArgsConstraint.__init__(self, inputList) self.name = name
def __init__(self, name, value): WC.ArgsConstraint.__init__(self, [ WC.Arg("GROUP_MA", WC.quote(name)), WC.Arg("SOUR", value), ])
def __init__(self, grp_type, name, value): WC.ArgsConstraint.__init__(self, [ WC.Arg(grp_type, WC.quote(name)), WC.Arg("TEMP", value), ])
def __init__(self, grp_type, name, Pfon=None, Dtan=None): args = [WC.Arg(grp_type, WC.quote(name))] for key, dpl in zip(self._keys, (Pfon, Dtan)): if dpl is not None: args.append(WC.Arg(key, dpl)) WC.ArgsConstraint.__init__(self, args)
def __init__(self, name, value): WC.ArgsConstraint.__init__(self, [ WC.Arg("FISSURE", WC.quote(name)), WC.Arg("PRES", value), ]) self.name = name