numerics
Loading...
Searching...
No Matches
particle.hpp
Go to the documentation of this file.
1/// @file particle.hpp
2/// @brief SPH particle data structure
3#pragma once
4
5namespace physics {
6
7/// @brief A single SPH fluid particle (float precision for performance)
8struct Particle {
9 float x, y; ///< Position [m]
10 float vx, vy; ///< Velocity [m/s]
11 float evx, evy; ///< Smoothed velocity ev = (ev + v)/2 each step -- used
12 /// for viscosity to damp high-frequency oscillations
13 float ax, ay; ///< Acceleration [m/s^2] (updated each step)
14 float density; ///< SPH density rho_i [kg/m^3]
15 float pressure; ///< Pressure p_i [Pa]
16 float temperature; ///< Temperature T_i [ degC]
17 float dT_dt; ///< Temperature rate [ degC/s] (updated each step)
18};
19
20} // namespace physics
A single SPH fluid particle (float precision for performance)
Definition particle.hpp:8
float dT_dt
Temperature rate [ degC/s] (updated each step)
Definition particle.hpp:17
float vy
Velocity [m/s].
Definition particle.hpp:10
float y
Position [m].
Definition particle.hpp:9
float temperature
Temperature T_i [ degC].
Definition particle.hpp:16
float pressure
Pressure p_i [Pa].
Definition particle.hpp:15
float density
SPH density rho_i [kg/m^3].
Definition particle.hpp:14
float ay
Acceleration [m/s^2] (updated each step)
Definition particle.hpp:13