changa  3.5
 All Classes Files Functions Variables Typedefs Enumerations Friends Macros Groups Pages
Public Member Functions | Public Attributes | List of all members
GravityParticle Class Reference

Fundamental type for a particle. More...

#include <GravityParticle.h>

Inheritance diagram for GravityParticle:
ExternalGravityParticle

Public Member Functions

 GravityParticle (SFC::Key k)
 
bool operator< (const GravityParticle &p) const
 Used to sort the particles into tree order.
 
ExternalSmoothParticle getExternalSmoothParticle ()
 Get quantities needed for SPH smooths.
 
double & u ()
 
double & fMetals ()
 
double & fMFracOxygen ()
 
double & fMFracIron ()
 
double & fESNrate ()
 
double & fTimeCoolIsOffUntil ()
 
Vector3D< double > & vPred ()
 
double & uPred ()
 
double & divv ()
 
Vector3D< double > & curlv ()
 
double & mumax ()
 
double & PdV ()
 
double & uDotPdV ()
 
double & uDotAV ()
 
double & uDotDiff ()
 
double & c ()
 
double & PoverRho2 ()
 
double & BalsaraSwitch ()
 
double & fBallMax ()
 
double & dTimeFB ()
 
double & uDot ()
 
COOLPARTICLECoolParticle ()
 
double & fStarMetals ()
 
double & fStarMFracOxygen ()
 
double & fStarMFracIron ()
 
double & fTimeForm ()
 
double & fMassForm ()
 
double & fStarESNrate ()
 
double & fNSN ()
 
double & fMSN ()
 
double & fMIronOut ()
 
double & fMOxygenOut ()
 
double & fSNMetals ()
 
int64_t & iGasOrder ()
 
int64_t & iEaterOrder ()
 
double & dDeltaM ()
 
double & dMDot ()
 
bool isDark () const
 
bool isGas () const
 
bool isStar () const
 
GravityParticleoperator= (const ExternalGravityParticle &p)
 

Public Attributes

SFC::Key key
 
Vector3D< double > velocity
 
Vector3D< cosmoType > treeAcceleration
 
cosmoType potential
 
cosmoType dtGrav
 
double fBall
 Neighbor search radius for smoothing.
 
double fDensity
 
int64_t iOrder
 Input order of particles; unique particle ID.
 
int rung
 the current rung (greater means faster)
 
unsigned int iType
 Bitmask to hold particle type information.
 
void * extraData
 
cosmoType interMass
 
- Public Attributes inherited from ExternalGravityParticle
cosmoType mass
 
cosmoType soft
 
Vector3D< cosmoType > position
 

Detailed Description

Fundamental type for a particle.

This class contains everything that a "dark matter" particle needs. Other classes of particles require this plus an "extra data" class.

Member Data Documentation

cosmoType GravityParticle::dtGrav

timestep from gravity; N.B., this is actually stored as (1/time^2) since the gravity calculation naturally gives us (G M/R^3).


The documentation for this class was generated from the following file: