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
5
namespace
physics
{
6
7
/// @brief A single SPH fluid particle (float precision for performance)
8
struct
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
physics
Definition
field.cpp:7
physics::Particle
A single SPH fluid particle (float precision for performance)
Definition
particle.hpp:8
physics::Particle::dT_dt
float dT_dt
Temperature rate [ degC/s] (updated each step)
Definition
particle.hpp:17
physics::Particle::x
float x
Definition
particle.hpp:9
physics::Particle::vy
float vy
Velocity [m/s].
Definition
particle.hpp:10
physics::Particle::ax
float ax
Definition
particle.hpp:13
physics::Particle::y
float y
Position [m].
Definition
particle.hpp:9
physics::Particle::temperature
float temperature
Temperature T_i [ degC].
Definition
particle.hpp:16
physics::Particle::pressure
float pressure
Pressure p_i [Pa].
Definition
particle.hpp:15
physics::Particle::density
float density
SPH density rho_i [kg/m^3].
Definition
particle.hpp:14
physics::Particle::evx
float evx
Definition
particle.hpp:11
physics::Particle::ay
float ay
Acceleration [m/s^2] (updated each step)
Definition
particle.hpp:13
physics::Particle::evy
float evy
Definition
particle.hpp:11
physics::Particle::vx
float vx
Definition
particle.hpp:10
apps
fluid_sim
particle.hpp
Generated by
1.9.8