19 std::vector<double>
x;
26 Grid(
double L_cm,
double dx_cm);
bool validate_grid(const Grid &g, double tol=1e-12)
Validate grid consistency (assertions in Debug mode).
Uniform 1D grid on x ∈ [0, L], including both boundary nodes.
std::size_t Nx
Number of nodes (including boundaries).
double dx
Spatial step [cm].
std::vector< double > x
Node coordinates [cm].
double L
Domain length [cm].
Grid(double L_cm, double dx_cm)
Construct a grid with given length and spacing.