NDSolve::coexp NDSolveValue::coexp ParametricNDSolve::coexp ParametricNDSolveValue::coexp
Examples
Basic Examples (1)
A warning message is generated because the grid points are specified both by the value of the "Coordinates" option and through the MinPoints option:
NDSolve[{D[u[x, t], t] == D[u[x, t], x, x], u[x, 0] == Exp[-100 x ^ 2], u[-1, t] == u[1, t]}, u, {x, -1, 1}, {t, 2}, Method -> {"MethodOfLines", "SpatialDiscretization" -> {"TensorProductGrid", "Coordinates" -> Join[Sin[Pi Range[0, 200] / 400] - 1, 1 - Sin[Pi Range[199, 0, -1] / 400]], "MinPoints" -> 4}}]NDSolve[{D[u[x, t], t] == D[u[x, t], x, x], u[x, 0] == Exp[-100 x ^ 2], u[-1, t] == u[1, t]}, u, {x, -1, 1}, {t, 2}, Method -> {"MethodOfLines", "SpatialDiscretization" -> {"TensorProductGrid", "Coordinates" -> Join[Sin[Pi Range[0, 200] / 400] - 1, 1 - Sin[Pi Range[199, 0, -1] / 400]] }}]