sandbox/bugs/mirror.c

You do not have the rights to run code in /sandbox.

Mirror does not color lines.

#include "axi.h"
#include "fractions.h"
#include "utils.h"
#include "output.h"
#include "view.h"

scalar f[];

double geom(double x, double y) {
  double C = -sq(x-0.6) - sq(y) + sq(0.5);
  double L = -x;
  return max(L,C);
}

int main() {
  size(1.5);
  origin(-0.1,0.);
  init_grid (1 << 5);
  fraction (f, geom(x,y));
  dump(file="dump");

Then display it using Basilisk view functions. Mirror does not recognize color parameters.

mirroed interface and cells are not colored.

mirroed interface and cells are not colored.

  view (quat = {0,0,0.707,-0.707}, tx = 0, ty = -0.43, width = 600, height = 400, samples = 1);
  draw_vof("f", lc = {1,0,0} );
  cells(lc = {1,1,0} );
  begin_mirror( n = {-1,0,0} );
  draw_vof("f", lc = {0,1,0} );
  cells(lc = {0,1,1} );
  end_mirror();
  
  save ("out.png");
}