src/test/large-ns.c

    Large-amplitude standing wave

    See large.c for a more detailed description.

    #include "grid/multigrid.h"
    #include "navier-stokes/centered.h"
    #include "two-phase.h"
    #include "navier-stokes/conserving.h"
    #include "reduced.h"
    
    int main()
    {
      rho1 = 1./1000.;
      rho2 = 1.;
      G.y = -9.81;
      Y0 = - L0/2.;
      DT = 1e-3;
      N = 256;
      run();
    }
    
    event init (i = 0)
    {
      fraction (f, - (0.07*cos(2.*pi*x) - y));
    }
    
    event profiles (t = 0.1; t += 0.1; t <= 0.5)
    {
      output_facets (f, stderr);
    }