← Back to team overview

yade-users team mailing list archive

Re: [Question #657637]: Applying confinement (rigid boundary) to a cylindrical sample

 

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

Jan Stránský proposed the following answer:
Hello,

in this case, try to find the problem step by step. I.e. do not run
directly (remove O.run() form the script) and have a look what is
hapenning. You would see perfect state at the beginning, but after one
step, all facets disappears. In a more complicated configuration, such
information could lead to faster solution.

In this case, the solution is easy. Facets has zero mass and inertia by
default, leading to NaNs (and then disappearance) because of
accel=force/mass

##
...
for f in facets:
	f.state.blockedDOFs = 'XYZz'
	f.state.mass = 1 # possible a different value
	f.state.inertia = (1,1,1) # possible a different value
...
##

cheers
Jan

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