Peano
Loading...
Searching...
No Matches
part Struct Reference

Particle fields for the SPH particles. More...

#include <hydro_part.h>

Collaboration diagram for part:

Data Fields

long long id
 
struct gpart * gpart
 
Geo::Point _x
 
float v [3]
 
float a_hydro [3]
 
float mass
 
float h
 
float u
 
float u_dt
 
float rho
 
union { 
 
   struct { 
 
      float   wcount 
 
      float   wcount_dh 
 
      float   rho_dh 
 
      float   div_v 
 
      float   rot_v [3] 
 
   }   density 
 Structure for the variables only used in the density loop over neighbours. More...
 
   struct { 
 
      float   f 
 
      float   pressure 
 
      float   soundspeed 
 
      float   v_sig 
 
      float   h_dt 
 
      float   balsara 
 
   }   force 
 Structure for the variables only used in the force loop over neighbours. More...
 
};  
 
xpart xpart
 

Detailed Description

Particle fields for the SPH particles.

The density and force substructures are used to contain variables only used within the density and force loops over neighbours. All more permanent variables should be declared in the main part of the part structure,

Definition at line 99 of file hydro_part.h.

Field Documentation

◆ [union]

union { ... } part

◆ _x

Geo::Point part::_x

Particle position.

Definition at line 108 of file hydro_part.h.

Referenced by do_density(), and do_density().

◆ a_hydro

float part::a_hydro[3]

Particle acceleration.

Definition at line 114 of file hydro_part.h.

◆ balsara

float part::balsara

Balsara switch

Definition at line 185 of file hydro_part.h.

◆ [struct]

struct { ... } part::density

Structure for the variables only used in the density loop over neighbours.

Quantities in this sub-structure should only be accessed in the density loop over neighbours and the ghost task.

◆ div_v

float part::div_v

Velocity divergence

Definition at line 153 of file hydro_part.h.

◆ f

◆ [struct]

struct { ... } part::force

Structure for the variables only used in the force loop over neighbours.

Quantities in this sub-structure should only be accessed in the force loop over neighbours and the ghost, drift and kick tasks.

◆ gpart

struct gpart* part::gpart

Pointer to corresponding gravity part.

Definition at line 105 of file hydro_part.h.

◆ h

float part::h

Particle smoothing length.

Definition at line 120 of file hydro_part.h.

Referenced by do_density(), do_density(), exahypype.kernel::Evaluate(), exahypype.kernel::halo(), and runner_do_ghost().

◆ h_dt

float part::h_dt

Time derivative of smoothing length

Definition at line 182 of file hydro_part.h.

◆ id

long long part::id

Particle unique ID.

Definition at line 102 of file hydro_part.h.

◆ mass

float part::mass

Particle mass.

Definition at line 117 of file hydro_part.h.

◆ pressure

float part::pressure

Particle pressure.

Definition at line 173 of file hydro_part.h.

◆ rho

float part::rho

Particle density.

Definition at line 129 of file hydro_part.h.

Referenced by equations.acoustic.Acoustic::eigenvalues(), and equations.acoustic.Acoustic::flux().

◆ rho_dh

float part::rho_dh

Derivative of density with respect to h

Definition at line 150 of file hydro_part.h.

◆ rot_v

float part::rot_v[3]

Velocity curl

Definition at line 156 of file hydro_part.h.

◆ soundspeed

float part::soundspeed

Particle soundspeed.

Definition at line 176 of file hydro_part.h.

◆ u

float part::u

Particle internal energy.

Definition at line 123 of file hydro_part.h.

◆ u_dt

float part::u_dt

Time derivative of the internal energy.

Definition at line 126 of file hydro_part.h.

◆ v

float part::v[3]

Particle predicted velocity.

Definition at line 111 of file hydro_part.h.

◆ v_sig

float part::v_sig

Particle signal velocity

Definition at line 179 of file hydro_part.h.

◆ wcount

float part::wcount

Neighbour number count.

Definition at line 144 of file hydro_part.h.

◆ wcount_dh

float part::wcount_dh

Derivative of the neighbour number with respect to h.

Definition at line 147 of file hydro_part.h.

◆ xpart

xpart part::xpart

Definition at line 191 of file hydro_part.h.


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