/** # we solve a case of 2D silo with orifice at the bottom by using the poisson equation $$ \nabla^2 c = 0 $$ with a flux at the top of the silo This system can be solved with the poisson solver. */ #include "grid/multigrid.h" #include "poisson.h" #include "utils.h" /** Concentration source, and some obvious variables */ scalar c[],s[]; double dx,dy,W; /** Boundary conditions: a flux at the top of silo an orifice with size W at the bottom of the silo */ c[top] = neumann(1); c[bottom] = fabs(x)<= W/2. ? dirichlet(0): neumann(0); c[right] = neumann(0); c[left] = neumann(0); /** ## Parameters The size of the domain `L0`. $0