← Back to team overview

yade-users team mailing list archive

Re: [Question #703292]: How to set the weight of particles?

 

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

Jan Stránský proposed the following answer:
> So how is the magnitude of the force determined?

it is up to you and your problem.
For your case, it could be something like
force = bodyLoad / fictitiousParticleVolume
or
force = surfaceLoad / fictitiousParticleArea

> Is it done by (1,0,0) force vector? I'm a little unsure how to set the
size of a force through a force vector.

You can compose force vector from magnitude and direction, like:
magnitude = 123 # scalar
direction = Vector3(1,2,3).normalized() # unit (normalized) vector, with its norm equal to 1
forceVector = magnitude * direction
O.forces.setPermF(bodyID,forceVector)

Cheers
Jan

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