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

#include <fluid.hpp>

Public Attributes

float h = 0.025f
 Smoothing length [m].
 
float rho0 = 1000.0f
 Rest density [kg/m^3].
 
int gamma = 7
 Tait EOS exponent.
 
float c0 = 10.0f
 Speed of sound [m/s] -> B = rho_0c_0^2/gamma.
 
float mu = 0.01f
 Dynamic viscosity [Pa*s].
 
float mass = 0.4f
 Particle mass [kg] (~= rho_0*dx^2, dx=0.8h)
 
float gx = 0.0f
 Gravity x [m/s^2].
 
float gy = -9.81f
 Gravity y [m/s^2].
 
float dt = 0.001f
 Timestep [s] (must satisfy CFL: dt < h/c0)
 
float xmin = 0.0f
 
float xmax = 1.0f
 
float ymin = 0.0f
 
float ymax = 0.7f
 
float restitution = 0.3f
 Velocity restitution at walls.
 
float alpha_T = 0.005f
 Thermal diffusivity [m^2/s].
 
float h_conv = 8.0f
 Convective coefficient with rigid bodies [1/s].
 
num::Backend policy = num::Backend::seq
 seq = Newton pairs; omp = parallel
 

Detailed Description

Definition at line 32 of file fluid.hpp.

Member Data Documentation

◆ alpha_T

float physics::FluidParams::alpha_T = 0.005f

Thermal diffusivity [m^2/s].

Definition at line 58 of file fluid.hpp.

Referenced by main(), and physics::FluidSolver::step().

◆ c0

float physics::FluidParams::c0 = 10.0f

Speed of sound [m/s] -> B = rho_0c_0^2/gamma.

Definition at line 39 of file fluid.hpp.

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

◆ dt

float physics::FluidParams::dt = 0.001f

Timestep [s] (must satisfy CFL: dt < h/c0)

Definition at line 48 of file fluid.hpp.

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

◆ gamma

int physics::FluidParams::gamma = 7

◆ gx

float physics::FluidParams::gx = 0.0f

◆ gy

float physics::FluidParams::gy = -9.81f

◆ h

◆ h_conv

float physics::FluidParams::h_conv = 8.0f

Convective coefficient with rigid bodies [1/s].

Definition at line 59 of file fluid.hpp.

Referenced by main(), and physics::FluidSolver::step().

◆ mass

◆ mu

float physics::FluidParams::mu = 0.01f

Dynamic viscosity [Pa*s].

Definition at line 40 of file fluid.hpp.

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

◆ policy

num::Backend physics::FluidParams::policy = num::Backend::seq

seq = Newton pairs; omp = parallel

Definition at line 62 of file fluid.hpp.

Referenced by physics::FluidSolver::step().

◆ restitution

◆ rho0

float physics::FluidParams::rho0 = 1000.0f

◆ xmax

◆ xmin

◆ ymax

◆ ymin


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