FirstOrderPDE
scalation.dynamics.FirstOrderPDE
class FirstOrderPDE(v: (Double, Double) => Double, dt: Double, dx: Double, xm: Double, ic: FunctionS2S, bc: (Double, Double))
The FirstOrderPDE
class is used to solve First Order Partial Differential Equations like the Advection Equation. Let 'u(x, t)' = concentration in a fluid with velocity 'v' at position '0 <= x <= xm' and time 't' > 0. Numerically solve the
Advection Equation: u_t + v(x, t) * u_x = 0 with initial conditions u(x, 0) = ic(x) boundary conditions (u(0, t), u(xm, t)) = bc
Value parameters
- bc
-
the boundary conditions as a 2-tuple for end-points 0 and 'xm'
- dt
-
delta 't'
- dx
-
delta 'x'
- ic
-
the initial conditions as a function of position 'x'
- v
-
the velocity field function v(x, t)
- xm
-
the length of the column
Attributes
- Graph
-
- Supertypes
-
class Objecttrait Matchableclass Any
Members list
In this article