Skip to content

Consistent variables (velocity, viscosity, Re, ...) in DrivenCavity app (GPU and CPU)

We modified the app's settings area in !181 (merged). We now set the velocity and calculate the timestep instead of setting the timestep and computing the viscosity.

When publishing VF, we should keep the CPU and GPU versions consistent. So we need to talk about it (probably in person).

Appendix:

current GPU version (30.01.2023, 45a42a5d):

 const real L = 1.0;
 const real Re = 1000.0;
 const real velocity = 1.0;
 const real velocityLB = 0.05; // LB units
 const uint nx = 64;

 const real dx = L / real(nx);
 const real dt  = velocityLB / velocity * dx;
 const real viscosityLB = nx * velocityLB / Re;   // LB units

@m.schoenherr @k.kutscher