Spectral Integral Suite in C++
|
An example with a fourth order system. More...
An example with a fourth order system.
Solves a fourth order system:
\[ \mathrm D^4u(y) \,-\, 4\,\mathrm D^2u(y) \,+\, 8\,u(y) \;= \; 1 \,-\, y^2 \,+\, y^3, \]
with clamped boundary conditions:
\[ \begin{array}{cll} [\mathrm D u(\cdot)](+1) \;&=\; u(+1) \;&=\; 0 \\ [\mathrm D u(\cdot)](-1) \;&=\; u(-1) \;&=\; 0. \end{array} \]
where \( \mathrm D = \mathrm d/\mathrm d y \).
Definition in file Ex_02.cpp.
Go to the source code of this file.
Typedefs | |
typedef complex< double > | Cd_t |
typedef valarray< double > | Vd_t |
Functions | |
int | main () |
int main | ( | ) |
Definition at line 30 of file Ex_02.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::yc(), and sis::yEigen.