numerics
Loading...
Searching...
No Matches
rigid_body.hpp
Go to the documentation of this file.
1/// @file rigid_body.hpp
2/// @brief Rigid body (sphere) for SPH collision and heat exchange
3#pragma once
4
5namespace physics {
6
7/// @brief A rigid spherical body that interacts with fluid particles
8struct RigidBody {
9 float x, y; ///< Center position [m]
10 float vx, vy; ///< Velocity [m/s] (zero for static bodies)
11 float radius; ///< Sphere radius [m]
12 float temperature; ///< Body temperature [ degC]
13 float mass; ///< Mass [kg] (used if dynamic)
14 bool fixed; ///< If true, body is immovable
15 bool is_heat_source; ///< If true, body maintains its temperature
16};
17
18} // namespace physics
A rigid spherical body that interacts with fluid particles.
Definition rigid_body.hpp:8
float y
Center position [m].
Definition rigid_body.hpp:9
float mass
Mass [kg] (used if dynamic)
bool is_heat_source
If true, body maintains its temperature.
float temperature
Body temperature [ degC].
float vy
Velocity [m/s] (zero for static bodies)
bool fixed
If true, body is immovable.
float radius
Sphere radius [m].