numerics
Loading...
Searching...
No Matches
physics::Particle Struct Reference

A single SPH fluid particle (float precision for performance) More...

#include <particle.hpp>

Public Attributes

float x
 
float y
 Position [m].
 
float vx
 
float vy
 Velocity [m/s].
 
float evx
 
float evy
 
float ax
 
float ay
 Acceleration [m/s^2] (updated each step)
 
float density
 SPH density rho_i [kg/m^3].
 
float pressure
 Pressure p_i [Pa].
 
float temperature
 Temperature T_i [ degC].
 
float dT_dt
 Temperature rate [ degC/s] (updated each step)
 

Detailed Description

A single SPH fluid particle (float precision for performance)

Definition at line 8 of file particle.hpp.

Member Data Documentation

◆ ax

float physics::Particle::ax

◆ ay

float physics::Particle::ay

Acceleration [m/s^2] (updated each step)

Definition at line 13 of file particle.hpp.

Referenced by physics::backends::seq::compute_forces(), and physics::backends::omp::integrate().

◆ density

float physics::Particle::density

◆ dT_dt

float physics::Particle::dT_dt

Temperature rate [ degC/s] (updated each step)

Definition at line 17 of file particle.hpp.

Referenced by physics::backends::omp::integrate().

◆ evx

◆ evy

float physics::Particle::evy

Smoothed velocity ev = (ev + v)/2 each step – used for viscosity to damp high-frequency oscillations

Definition at line 11 of file particle.hpp.

Referenced by physics::backends::omp::compute_forces(), physics::backends::seq::compute_forces(), and physics::backends::omp::integrate().

◆ pressure

float physics::Particle::pressure

Pressure p_i [Pa].

Definition at line 15 of file particle.hpp.

Referenced by physics::backends::omp::compute_forces(), and physics::backends::seq::compute_forces().

◆ temperature

float physics::Particle::temperature

◆ vx

◆ vy

float physics::Particle::vy

◆ x

◆ y


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