Elliptic1D Pure Robin Boundary Conditions#
Solves the 1D Poisson boundary value problem with pure Robin boundary conditions.
with \(x\in[0,1]\).
The boundary conditions are given by
with the left hand side boundary condition (Robin) satisfying
and the right hand boundary condition (Robin) satisfying $\( 400u(1) + 1\frac{du(1)}{dx} = 15 \)$
This corresponds to the call to addScalarBC1D of addScalarBC1D(A,b,k,m,dx,dc,nc,v), where dc, nc, and vc are vectors which hold the coefficients for \(a\), \(b\), and \(g\) in the above system of equations. \(a=[-200,400]\), \(b=[1,1]\) and \(g=[10,15]\).
Substituting these values in gives:
The exact solution is:
The example is taken from this paper
This example is implemented in:
Additional MATLAB/ OCTAVE variants of this example with different boundary conditions: