Package esys :: Package lsm :: Module LsmPy :: Class NRotSphere
[hide private]
[frames] | no frames]

Class NRotSphere

 object --+    
          |    
??.instance --+
              |
             NRotSphere

Class defining the properties of non-rotational spheres.

Instance Methods [hide private]
 
__init__(...)
Construct a non-rotational spherical particle.
 
__reduce__(...)
helper for pickle
 
getAcceleration(...)
Returns the current acceleration of the particle
 
getCenter(...)
Returns the current position of the particle's centre of mass
 
getCentre(...)
Returns the current position of the particle's centre of mass
 
getForce(...)
Returns the current net force acting on the particle
 
getId(...)
Returns the unique ID of the particle
 
getInitialPosition(...)
Returns the initial position of the particle's centre of mass
 
getInitialPosn(...)
Returns the initial position of the particle's centre of mass
 
getLinearAcceleration(...)
Returns the current acceleration of the particle
 
getLinearForce(...)
Returns the current net force acting on the particle
 
getLinearVelocity(...)
Returns the current velocity of the particle
 
getMass(...)
Returns the mass of the particle
 
getPosition(...)
Returns the current position of the particle's centre of mass
 
getPosn(...)
Returns the current position of the particle's centre of mass
 
getRad(...)
Returns the radius of the particle
 
getRadius(...)
Returns the radius of the particle
 
getTag(...)
Returns the non-unique tag of the particle
 
getVelocity(...)
Returns the current velocity of the particle
 
setAcceleration(...)
Specifies the acceleration of the particle
 
setForce(...)
Specifies the net force acting on the particle
 
setLinearAcceleration(...)
Specifies the acceleration of the particle
 
setLinearForce(...)
Specifies the net force acting on the particle
 
setLinearVelocity(...)
Specifies the velocity of the particle
 
setPosition(...)
Specifies the position of the particle's centre of mass
 
setPosn(...)
Specifies the position of the particle's centre of mass
 
setTag(...)
Specifies the particle's tag
 
setVelocity(...)
Specifies the velocity of the particle

Inherited from unreachable.instance: __new__

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __reduce_ex__, __repr__, __setattr__, __sizeof__, __str__, __subclasshook__

Class Variables [hide private]
  __instance_size__ = 296
Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__init__(...)
(Constructor)

 

Construct a non-rotational spherical particle.

Parameters:
  • id (int) - Unique identifier for particle.
  • posn (Vec3) - Initial position of particle, centre-point of sphere.@type radius: float
  • radius - The radius of the sphere.
  • mass (float) - Mass of particle.
Overrides: object.__init__

__reduce__(...)

 

helper for pickle

Overrides: object.__reduce__
(inherited documentation)