$$
\newcommand{\uex}{{u_{\small\mbox{e}}}}
\newcommand{\tp}{\thinspace .}
$$
What to learn
Tasks:
- Explain basic use of classes to build a differential equation solver
- Introduce concepts that make such programs easily scale to
more complex applications
- Demonstrate the advantage of using classes
Ideas:
- Classes for Problem, Solver, and Visualizer
- Problem: all the physics information about the problem
- Solver: all the numerics information + numerical computations
- Visualizer: plot the solution and other quantities