changa 3.5
Loading...
Searching...
No Matches
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< cosmoType > & 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 ()
 
double & rgfHMStars (int i)
 
double * rgfHMStars ()
 
double & fLowNorm ()
 
int64_t & iEaterOrder ()
 
double & dDeltaM ()
 
double & dMDot ()
 
bool isDark () const
 
bool isGas () const
 
bool isStar () const
 
GravityParticleoperator= (const ExternalGravityParticle &p)
 

Public Attributes

Vector3D< cosmoType > velocity
 
Vector3D< cosmoType > treeAcceleration
 
cosmoType potential
 
cosmoType dtGrav
 
cosmoType fBall
 Neighbor search radius for smoothing.
 
cosmoType fDensity
 
int rung
 the current rung (greater means faster)
 
unsigned int iType
 Bitmask to hold particle type information.
 
cosmoType interMass
 
SFC::Key key
 
int64_t iOrder
 Input order of particles; unique particle ID.
 
void * extraData
 
- 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

◆ dtGrav

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: