Skip to content

num::grid2d

Defined in header <fields/grid2d.hpp>

struct grid2d;

A uniform \(N \times N\) grid with spacing \(h\).

Members

member description
int N interior nodes per side
double h grid spacing = 1/(N+1)
double x(int i) const
double y(int j) const
int flat(int i, int j) const
int size() const