Newton Dynamics  4.00
ndBodySphFluid Class Reference
Inheritance diagram for ndBodySphFluid:
ndBodyParticleSet ndBody ndBackgroundTask ndContainersFreeListAlloc< ndBody > ndFreeListAlloc

Classes

class  ndGridHash
 
class  ndParticleKernelDistance
 
class  ndParticlePair
 
class  ndWorkingBuffers
 

Public Member Functions

D_NEWTON_API ndBodySphFluid (const ndLoadSaveBase::ndLoadDescriptor &desc)
 
ndFloat32 GetViscosity () const
 
void SetViscosity (ndFloat32 viscosity)
 
ndFloat32 GetParticleMass () const
 
void SetParticleMass (ndFloat32 mass)
 
ndFloat32 GetRestDensity () const
 
void SetRestDensity (ndFloat32 resDensity)
 
ndFloat32 GetGasConstant () const
 
void SetGasConstant (ndFloat32 gasConst)
 
ndFloat32 GetSphGridSize () const
 
virtual ndBodySphFluidGetAsBodySphFluid ()
 
virtual D_NEWTON_API void Save (const ndLoadSaveBase::ndSaveDescriptor &desc) const
 
D_NEWTON_API void Execute (ndThreadPool *const threadPool)
 
- Public Member Functions inherited from ndBodyParticleSet
D_NEWTON_API ndBodyParticleSet (const ndLoadSaveBase::ndLoadDescriptor &desc)
 
const ndVector GetGravity () const
 
void SetGravity (const ndVector &gravity)
 
ndArray< ndVector > & GetVelocity ()
 
ndArray< ndVector > & GetPositions ()
 
const ndArray< ndVector > & GetVelocity () const
 
const ndArray< ndVector > & GetPositions () const
 
virtual ndBodyParticleSetGetAsBodyParticleSet ()
 
bool GetAsynUpdate () const
 
void SetAsynUpdate (bool update)
 
ndFloat32 GetParticleRadius () const
 
void SetParticleRadius (ndFloat32 radius)
 
- Public Member Functions inherited from ndBody
 D_CLASS_REFLECTION (ndBody)
 
D_COLLISION_API ndBody (const ndLoadSaveBase::ndLoadDescriptor &desc)
 
virtual ndBodyGetAsBody ()
 
virtual ndBodyDynamicGetAsBodyDynamic ()
 
virtual ndBodySentinelGetAsBodySentinel ()
 
virtual ndBodyKinematicGetAsBodyKinematic ()
 
virtual ndBodyPlayerCapsuleGetAsBodyPlayerCapsule ()
 
virtual ndBodyTriggerVolumeGetAsBodyTriggerVolume ()
 
virtual ndBodyKinematicBaseGetAsBodyKinematicSpecial ()
 
ndUnsigned32 GetId () const
 
void GetAABB (ndVector &p0, ndVector &p1) const
 
virtual ndFloat32 GetInvMass () const
 
const ndVectorGetCentreOfMass () const
 
virtual D_COLLISION_API void SetCentreOfMass (const ndVector &com)
 
ndBodyNotifyGetNotifyCallback () const
 
ndVector GetOmega () const
 
ndMatrix GetMatrix () const
 
ndVector GetVelocity () const
 
ndVector GetPosition () const
 
ndQuaternion GetRotation () const
 
ndVector GetGlobalGetCentreOfMass () const
 
virtual D_COLLISION_API void SetNotifyCallback (ndBodyNotify *const notify)
 
virtual D_COLLISION_API void SetOmega (const ndVector &veloc)
 
virtual D_COLLISION_API void SetVelocity (const ndVector &veloc)
 
virtual D_COLLISION_API void SetMatrix (const ndMatrix &matrix)
 
D_COLLISION_API ndVector GetVelocityAtPoint (const ndVector &point) const
 
D_COLLISION_API void SetOmegaNoSleep (const ndVector &veloc)
 
D_COLLISION_API void SetVelocityNoSleep (const ndVector &veloc)
 
D_COLLISION_API void SetMatrixNoSleep (const ndMatrix &matrix)
 
D_COLLISION_API void SetMatrixAndCentreOfMass (const ndQuaternion &rotation, const ndVector &globalcom)
 
- Public Member Functions inherited from ndFreeListAlloc
D_CORE_API void * operator new (size_t size)
 
D_CORE_API void operator delete (void *ptr)
 
- Public Member Functions inherited from ndBackgroundTask
ndTaskState taskState () const
 
D_CORE_API void Sync () const
 

Protected Member Functions

virtual D_NEWTON_API void Update (const ndWorld *const world, ndFloat32 timestep)
 
virtual bool RayCast (ndRayCastNotify &callback, const ndFastRay &ray, const ndFloat32 maxT) const
 
- Protected Member Functions inherited from ndBody
virtual void AttachContact (ndContact *const)
 
virtual void DetachContact (ndContact *const)
 
virtual ndContactFindContact (const ndBody *const) const
 

Additional Inherited Members

- Public Types inherited from ndBackgroundTask
enum  ndTaskState { m_taskInProccess, m_taskCompleted }
 
- Static Public Member Functions inherited from ndContainersFreeListAlloc< ndBody >
static void FlushFreeList (ndInt32 size)
 
- Static Public Member Functions inherited from ndFreeListAlloc
static D_CORE_API void Flush ()
 
static D_CORE_API void Flush (ndInt32 size)
 
- Static Protected Member Functions inherited from ndBody
static D_COLLISION_API const nd::TiXmlNodeFindNode (const nd::TiXmlNode *const rootNode, const char *const name)
 
- Protected Attributes inherited from ndBodyParticleSet
ndVector m_box0
 
ndVector m_box1
 
ndVector m_gravity
 
ndArray< ndVectorm_posit
 
ndArray< ndVectorm_veloc
 
ndBodyList::ndNode * m_listNode
 
ndFloat32 m_radius
 
bool m_updateInBackground
 
- Protected Attributes inherited from ndBody
ndMatrix m_matrix
 
ndVector m_veloc
 
ndVector m_omega
 
ndVector m_localCentreOfMass
 
ndVector m_globalCentreOfMass
 
ndVector m_minAabb
 
ndVector m_maxAabb
 
ndQuaternion m_rotation
 
ndBodyNotifym_notifyCallback
 
ndUnsigned32 m_uniqueId
 
union {
   ndUnsigned32   m_flags
 
   struct {
      ndUnsigned32   m_isDynamics: 1
 
      ndUnsigned32   m_skeletonMark: 1
 
      ndUnsigned32   m_skeletonMark0: 1
 
      ndUnsigned32   m_skeletonMark1: 1
 
      ndUnsigned32   m_contactTestOnly: 1
 
      ndUnsigned32   m_transformIsDirty: 1
 
      ndUnsigned32   m_equilibriumOverride: 1
 
   } 
 
}; 
 
ndUnsigned8 m_isStatic
 
ndUnsigned8 m_autoSleep
 
ndUnsigned8 m_equilibrium
 
ndUnsigned8 m_equilibrium0
 
ndUnsigned8 m_isJointFence0
 
ndUnsigned8 m_isJointFence1
 
ndUnsigned8 m_isConstrained
 
ndUnsigned8 m_sceneForceUpdate
 
ndUnsigned8 m_sceneEquilibrium
 
ndUnsigned8 m_markedForRemoved
 
- Static Protected Attributes inherited from ndBody
static D_COLLISION_API ndUnsigned32 m_uniqueIdCount = 0