def __init__(self, name=None): # initialize the base class force._force.__init__(self, name); self.cpp_force = None; # setup the coefficient vector self.force_coeff = coeff(); self.enabled = True; # create force data iterator self.external_forces = data.force_data(self);
def __init__(self, name=None): # initialize the base class force._force.__init__(self, name) self.cpp_force = None # setup the coefficient vector self.force_coeff = coeff() self.enabled = True # create force data iterator self.external_forces = data.force_data(self)
def __init__(self): # check if initialization has occured if not init.is_initialized(): globals.msg.error("Cannot create force before initialization\n"); raise RuntimeError('Error creating constraint force'); self.cpp_force = None; # increment the id counter id = _constraint_force.cur_id; _constraint_force.cur_id += 1; self.force_name = "constraint_force%d" % (id); self.enabled = True; globals.constraint_forces.append(self); # create force data iterator self.forces = data.force_data(self);
def __init__(self): # check if initialization has occured if not init.is_initialized(): globals.msg.error("Cannot create force before initialization\n") raise RuntimeError('Error creating constraint force') self.cpp_force = None # increment the id counter id = _constraint_force.cur_id _constraint_force.cur_id += 1 self.force_name = "constraint_force%d" % (id) self.enabled = True globals.constraint_forces.append(self) # create force data iterator self.forces = data.force_data(self)
def __forces(self): return data.force_data(self)
def __forces(self): return data.force_data(self);