GADGET-4
sph_particle_data Struct Reference

#include <sph_particle_data.h>

Inherits sph_particle_data_hydrocore.

Public Member Functions

MyFloat get_sound_speed (void)
 
MyFloat get_pressure (void)
 
void set_thermodynamic_variables (void)
 
MyFloat get_Hsml ()
 

Public Attributes

MyFloat Entropy
 
MyFloat EntropyPred
 
MyFloat HydroAccel [3]
 
MyFloat DtEntropy
 
MyFloat DtDensity
 
MyFloat DtHsml
 
MyFloat NumNgb
 
MyFloat Rot [3]
 
MyFloat MaxSignalVel
 
MyFloat CurrentMaxTiStep
 
- Public Attributes inherited from sph_particle_data_hydrocore
MyFloat Hsml
 
MyFloat DhsmlDensityFactor
 
MyFloat VelPred [3]
 
MyFloat DivVel
 
MyFloat CurlVel
 
MyFloat Csnd
 
MyFloat Density
 
MyFloat Pressure
 

Detailed Description

Holds data that is stored for each sph particle in addition to the collisionless variables.

Definition at line 54 of file sph_particle_data.h.

Member Function Documentation

◆ get_Hsml()

MyFloat get_Hsml ( )
inline

Definition at line 149 of file sph_particle_data.h.

◆ get_pressure()

MyFloat get_pressure ( void  )
inline

Definition at line 130 of file sph_particle_data.h.

◆ get_sound_speed()

MyFloat get_sound_speed ( void  )
inline

Definition at line 117 of file sph_particle_data.h.

◆ set_thermodynamic_variables()

void set_thermodynamic_variables ( void  )
inline

Definition at line 139 of file sph_particle_data.h.

Member Data Documentation

◆ CurrentMaxTiStep

MyFloat CurrentMaxTiStep

Definition at line 73 of file sph_particle_data.h.

◆ DtDensity

MyFloat DtDensity

rate of change of density, needed to predict densities for passive particles

Definition at line 64 of file sph_particle_data.h.

◆ DtEntropy

MyFloat DtEntropy

rate of change of entropy

Definition at line 63 of file sph_particle_data.h.

◆ DtHsml

MyFloat DtHsml

rate of change of smoothing length, needed to predict hsml for passive particles

Definition at line 65 of file sph_particle_data.h.

◆ Entropy

MyFloat Entropy

value of the entropic function

Definition at line 56 of file sph_particle_data.h.

◆ EntropyPred

MyFloat EntropyPred

predicted entropy at current time, needed if the particle is inactive

Definition at line 57 of file sph_particle_data.h.

◆ HydroAccel

MyFloat HydroAccel[3]

acceleration due to hydrodynamical forces

Definition at line 59 of file sph_particle_data.h.

◆ MaxSignalVel

MyFloat MaxSignalVel

maximum signal velocity

Definition at line 72 of file sph_particle_data.h.

◆ NumNgb

MyFloat NumNgb

effective number of neighbours used in density estimation loop (note: this could be changed to a temporary variable in density)

Definition at line 67 of file sph_particle_data.h.

◆ Rot

MyFloat Rot[3]

local velocity curl

Definition at line 70 of file sph_particle_data.h.


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