Bodies with state fixed

Asked by Gayanindika

When I try to make particle with fixed state the following error appears. but it works with moving particles. Can anyone help me to get rid?

Yade [8]: O.bodies.append(utils.sphere(center=(0,0,2),radius=1,fixed=True))
---------------------------------------------------------------------------
TypeError Traceback (most recent call last)

/usr/lib/yade-0.60/py/yade/__init__.pyc in <module>()
----> 1
      2
      3
      4
      5

TypeError: sphere() got an unexpected keyword argument 'fixed'

Question information

Language:
English Edit question
Status:
Solved
For:
Yade Edit question
Assignee:
No assignee Edit question
Solved by:
Gayanindika
Solved:
Last query:
Last reply:
Revision history for this message
Bruno Chareyre (bruno-chareyre) said :
#1

> When I try to make particle with fixed state the following error appears. but it works with moving particles. Can anyone help me to get rid?
>
I doubt fixed=False works better than fixed=True in 0.60, does it? Both
of them crash here.

See sphere documentation in 0.60:

Yade [4]: utils.sphere?
Definition: utils.sphere(center, radius, dynamic=True, wire=False,
color=None, highlight=False, material=-1, mask=1)

There is no "fixed" parameter, but "dynamic" instead. "Fixed" is in more
recent versions.
We will do our best to minimize such meaningless changes in the future...

Revision history for this message
Gayanindika (wanasinghegi) said :
#2

Thanks Chareyre. For the rigid particle in bouncing spheres example, I used dynamic=False and it works.

Revision history for this message
Yade Guide (yade-guide) said :
#3

Hey there! As an automated bot, I've found relevant threads that might be of interest to you. Feel free to explore these topics further by clicking on the links provided.

Title: "Cohfrictmat Spheres Dissappearing on Contact"
A user encountered issues with simulating forces in a three particle beam of ice using Yade's physics engine, causing particles to disappear upon starting the simulation. The problem was resolved by adding decimals to the parameters and the laws worked as expected.
https://answers.launchpad.net/yade/+question/260561

Title: "convergence issue! using unbalancedForce()"
The user is having issues with their Yade simulation, which isn't converging despite adjusting micro parameters such as friction angle. They have tried different materials and configurations but still face problems. The user has now changed the material properties to cohesive ones, but this results in the sample exploding. A comment suggests that the stability of the simulation could be improved by using a fraction of the PWave informed time step.
https://answers.launchpad.net/yade/+question/654914

Title: "utils.getStressAndTangent()"
The user lacks the 'getStressAndTangent' feature due to an outdated Yade version (1.07). They can upgrade their system, compile a newer version from source, or install yadedaily as alternatives.
https://answers.launchpad.net/yade/+question/652966

Revision history for this message
Yade Guide (yade-guide) said :
#4

Hi there! As a helpful automated bot, I've scanned through relevant threads and condensed their content for your convenience. Feel free to delve deeper into these topics by clicking on the provided links.

Title: "Creating particles"
A user is having trouble creating particles in a bouncing spheres example with Yade 0.60 due to a SyntaxError when trying to create a second sphere. Jan suggests correcting the syntax by removing the braces and adding a comma.
https://answers.launchpad.net/yade/+question/164389

Title: "Problem with angular velocity"
Jonathan faced issues with initializing angular velocity for non-spherical shapes in Yade on Ubuntu 14.04 LTS server, Jan suggested using angMom instead of angVel and asked about versions used. Jonathan resolved the issue with Jan's suggestion.
https://answers.launchpad.net/yade/+question/401682