public class ConvectionDiffusionEquation1D extends Object implements PDE
Constructor and Description |
---|
ConvectionDiffusionEquation1D(BivariateRealFunction sigma,
BivariateRealFunction mu,
BivariateRealFunction R,
double a,
double T,
UnivariateRealFunction f,
double c1,
UnivariateRealFunction g1,
double c2,
UnivariateRealFunction g2)
Constructs a convection-diffusion equation problem.
|
Modifier and Type | Method and Description |
---|---|
double |
a()
Gets the size of the one-dimensional space, that is, the range of
x, (0 < x < a).
|
double |
c1()
Gets the coefficient c1 in the mixed boundary condition
at the boundary x = 0.
|
double |
c2()
Gets the coefficient c2 in the mixed boundary condition
at the boundary x = a.
|
double |
f(double x)
Gets the initial condition of u at a given position x.
|
double |
g1(double t)
The value of the linear combination of \(u\) and \(\frac{\partial
u}{\partial x}\) at the boundary \(x = 0\) at a given time \(t\).
|
double |
g2(double t)
The value of the linear combination of \(u\) and \(\frac{\partial
u}{\partial x}\) at the boundary \(x = a\) at the given time \(t\).
|
double |
mu(double t,
double x)
Gets the convection coefficient at a given time t and a position
x.
|
double |
R(double t,
double x)
Gets the source (or sink) value at a given time t and a position
x.
|
double |
sigma(double t,
double x)
Gets the diffusion coefficient at a given time t and a position
x.
|
double |
T()
Gets the time period of interest, that is, the range of t,
(0 < t < T).
|
public ConvectionDiffusionEquation1D(BivariateRealFunction sigma, BivariateRealFunction mu, BivariateRealFunction R, double a, double T, UnivariateRealFunction f, double c1, UnivariateRealFunction g1, double c2, UnivariateRealFunction g2)
sigma
- the diffusion coefficient (or diffusivity) \(\sigma(t,x)\)mu
- the convection coefficient \(\mu(t,x)\)R
- the sources (or sinks) R(t,x)a
- the region of interest (0, a)T
- the time period of interest (0, T)f
- the initial condition of u, i.e., u(0,x)c1
- the coefficient in the mixed boundary condition at x =
0g1
- the mixed boundary condition at x = 0c2
- the coefficient in the mixed boundary condition at x =
ag2
- the mixed boundary condition at x = apublic double sigma(double t, double x)
t
- a timex
- a positionpublic double mu(double t, double x)
t
- a timex
- a positionpublic double R(double t, double x)
t
- a timex
- a positionpublic double a()
public double T()
public double f(double x)
x
- a positionpublic double c1()
public double g1(double t)
t
- a timepublic double c2()
public double g2(double t)
t
- a timeCopyright © 2010-2020 NM FinTech Ltd.. All Rights Reserved.