Spectral Integral Suite in C++
Ex_01.cpp File Reference

This simulates a simple 2nd order ODE with mixed boundary conditions. More...

Detailed Description

This simulates a simple 2nd order ODE with mixed boundary conditions.

Solves:

\[ \mathrm D u(y)\,-\,4\, u(y)\;=\; 1 \; - \; y^2, \]

with boundary conditions:

\begin{align*} u(-1) \,+\, 4\,[\mathrm D u(\cdot)](-1)\;&=\; 2,\\ u(+1) \,-\, 5\,[\mathrm D u(\cdot)](+1)\;&=\; 3. \end{align*}

where \( \mathrm D = \mathrm d/\mathrm d y \). Solving by entering the forcing in physical-space, so solution is returned in physical space.

Ex_01.svg

Definition in file Ex_01.cpp.

Include dependency graph for Ex_01.cpp:

Go to the source code of this file.

Functions

int main ()
 

Function Documentation

◆ main()