← Back to team overview

yade-users team mailing list archive

Re: [Question #701341]: About ValueError: cannot convert float NaN to integer

 

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

    Status: Needs information => Open

Ziyu Wang gave more information on the question:
Hello,Jan.
I have made some attempts according to your suggestion, but the problem has not been solved, as described below:

>please provide complete error (which also includes the problematic line
and error stack).

The complete error prompt command line is as follows (completely copied from Yade):
--------------------------------------------------------------------------------------------------
ValueError                                Traceback (most recent call last)
/usr/lib/x86_64-linux-gnu/yadedaily/py/yade/__init__.py in refreshEvent(self)
    201         def zxySlot(self): self.setViewAxes((0,-1,0),(1,0,0))
    202         def refreshEvent(self):
--> 203                 self.refreshValues()
    204                 self.activateControls()
    205         def deactivateControls(self):

/usr/lib/x86_64-linux-gnu/yadedaily/py/yade/__init__.py in refreshValues(self)
    273                         self.iterLabel.setText('#%ld / %ld, %.1f/s %s'%(O.iter,stopAtIter,self.iterPerSec,subStepInfo))
    274                 if t!=float('inf'):
--> 275                         s=int(t); ms=int(t*1000)%1000; us=int(t*1000000)%1000; ns=int(t*1000000000)%1000
    276                         self.virtTimeLabel.setText(u'%03ds%03dm%03dμ%03dn'%(s,ms,us,ns))
    277                 else: self.virtTimeLabel.setText(u'[ ∞ ] ?!')

ValueError: cannot convert float NaN to integer
---------------------------------------------------------------------------------------------

>if you change thickness, try also to shift the walls, such that the
actual wall remains unchanged.

Is your suggestion to make the wall movable? I try to set the thickness of the wall to 0.01, and then set the following four degrees of freedom to true(Previously set as non removable (false), which is the same as in my original script)
triax.wall_left_activated=True
triax.wall_right_activated=True
triax.wall_bottom_activated=True
triax.wall_top_activated=True
I made these two changes (wall thickness and degrees of freedom) and rerun the script.However, there is a problem I mentioned in [1], that is, the wall is deviation, and the particles fly out and disappear.I think the problem in [1] is related to excessive confining pressure and osmotic pressure, so I set the degree of freedom of the wall to false.

Thanks for help!

[1]https://answers.launchpad.net/yade/+question/701042

-- 
You received this question notification because your team yade-users is
an answer contact for Yade.