#include #include #include "channelflow/dns.h" #include "channelflow/flowfield.h" using namespace std; int main() { // Define gridsize const int Nx=32; const int Ny=33; const int Nz=32; // Define box size const Real Lx=1.75*pi; const Real a= -1.0; const Real b= 1.0; const Real Lz=1.2*pi; // Define flow parameters const Real Reynolds = 400.0; const Real nu = 1.0/Reynolds; // Define integration parameters const int n = 25; // take fifty steps between printouts const Real dt = 0.04; // integration timestep const Real T = 100.0; // integrate from t=0 to t=T // Define size and smoothness of initial disturbance Real spectralDecay = 0.3; Real magnitude = 0.01; int kxmax = 3; int kzmax = 3; // Construct base flow for plane Couette: U(y) = y ChebyCoeff U(Ny,a,b,Physical); Vector y = chebypoints(Ny, a,b); for (int ny=0; ny