Bim package: Difference between revisions

15 bytes added ,  19 July 2012
No edit summary
Line 2: Line 2:


This is a short example on how to use <tt>bim</tt> to solve a 2D Diffusion Advection Reaction problem.
This is a short example on how to use <tt>bim</tt> to solve a 2D Diffusion Advection Reaction problem.
The coplete code for this example can is on [[Agora]] [[http://agora.octave.org/snippet/1bqV|here]].
The coplete code for this example can is on [[Agora]] at this link
[[http://agora.octave.org/snippet/1bqV|here]].


We want to solve the equation
We want to solve the equation


<math>  -\mathrm{div}\ ( \varepsilon\ \nabla u(x, y) - \nabla \varphi(x,y)\ u(x, y) ) ) + u(x, y) = 1 \qquad \mbox{ in } \Omega</math>
<math>  -\mathrm{div}\ ( \varepsilon\ \nabla u(x, y) - \nabla \varphi(x,y)\ u(x, y) ) ) + u(x, y) = 1 \qquad \mbox{ in } \Omega</math>
<math>  \varphi(x, y)\ =\ x + y </math>
<math>  \varphi(x, y)\ =\ x + y </math>


43

edits