← Back to team overview

yade-users team mailing list archive

Re: [Question #175606]: How does "particleSD_2d" work ...???

 

Question #175606 on Yade changed:
https://answers.launchpad.net/yade/+question/175606

jessica sj posted a new comment:
Hi Bruno,

I tried to use particleSD_2d as below:

sp=pack.SpherePack()

sp.particleSD_2d((0,0),(1,1),num=500,radii=[.02,0.04,0.045,.05,.06,.08,.12],passing=[0.,0.1,0.3,0.3,.3,.7,1.])

sp.toSimulation()

and the message error:

Traceback (most recent call last):
  File "../../bin/yade-trunk", line 183, in runScript
    execfile(script,globals())
  File "gravity_deposit.py", line 23, in <module>
    sp.particleSD_2d((0,0),(1,1),radii=[.02,0.04,0.045,.05,.06,.08,.12],passing=[0.,0.1,0.3,0.3,.3,.7,1.])
ArgumentError: Python argument types in
    SpherePack.particleSD_2d(SpherePack, tuple, tuple)
did not match C++ signature:
    particleSD_2d(SpherePack {lvalue}, Eigen::Matrix<double, 2, 1, 2, 2, 1> minCorner, Eigen::Matrix<double, 2, 1, 2, 2, 1> maxCorner, double rMean, bool periodic=False, std::string name, int numSph, std::vector<double, std::allocator<double> > radii=[], std::vector<double, std::allocator<double> > passing=[], bool passingIsNotPercentageButCount=False, int seed=0)

Did I miss something...?

Thank you :).....

-- 
You received this question notification because you are a member of
yade-users, which is an answer contact for Yade.