Spectral Integral Suite in C++
|
This simulates a simple 2nd order ODE with mixed boundary conditions. More...
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.
Definition in file Ex_01.cpp.
Go to the source code of this file.
Functions | |
int | main () |
int main | ( | ) |
Definition at line 26 of file Ex_01.cpp.
References sis::Linop< T >::coef, sis::BcMat< T >::eval, sis::BcMat< T >::L, sis::linSolve(), sis::N, sis::sis_setup(), sis::BcMat< T >::vals, sis::y(), and sis::yEigen.