rblock.scalesphere
Syntax
- b = rblock.scalesphere(rb,f)
Scale the rigid block to an equivalent sphere. The rigid block is scaled so that its {area in 2D; volume in 3D} is the same as a {circle in 2D; sphere in 3D} of diameter f. The pebbles are scaled, their positions are modified, and the volume is updated.
Note
- If the volume or moment of inertia has been previously specified by the user either via
rblock attribute
or via FISH (rblock.vol
,rblock.moi.prin.real
, orrblock.moi.real
), the principal moment of inertia is in a fixed state and will not be scaled. See therblock.moi.fix
intrinsic for further details.
Returns: b - boolean indicating success/failure of operation
Arguments: rb - rigid block pointer
f - diameter of {a circle in 2D; sphere in 3D}
- If the volume or moment of inertia has been previously specified by the user either via
Was this helpful? ... | PFC © 2021, Itasca | Updated: Feb 25, 2024 |