public class HeatEquation1D extends Object implements PDE
| Constructor and Description |
|---|
HeatEquation1D(double beta,
double a,
double T,
UnivariateRealFunction f,
double c1,
UnivariateRealFunction g1,
double c2,
UnivariateRealFunction g2)
Constructs a heat 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 |
beta()
Gets β in the equation (also called thermal diffusivity in case of the
heat equation).
|
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 the given position x.
|
double |
g2(double t)
Gets 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 |
T()
Gets the time period of interest, that is, the range of t,
(0 < t < T).
|
public HeatEquation1D(double beta,
double a,
double T,
UnivariateRealFunction f,
double c1,
UnivariateRealFunction g1,
double c2,
UnivariateRealFunction g2)
beta - the beta in the equationa - 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 beta()
public double a()
public double T()
public double f(double x)
x - the positionpublic double c1()
public double c2()
public double g2(double t)
t - the timeCopyright © 2010-2020 NM FinTech Ltd.. All Rights Reserved.