public class HeatEquation2D extends Object implements PDE
Constructor and Description |
---|
HeatEquation2D(double beta,
double T,
double a,
double b,
BivariateRealFunction f,
TrivariateRealFunction g)
Constructs a two-dimensional heat equation problem.
|
Modifier and Type | Method and Description |
---|---|
double |
a()
Gets the size of the two-dimensional space along the x-axis, that is, the range of x,
(0 < x < a).
|
double |
b()
Gets the size of the two-dimensional space along the y-axis, that is, the range of y,
(0 < y < b).
|
double |
beta()
Gets the coefficient in the PDE (thermal diffusivity in case of the heat equation).
|
double |
f(double x,
double y)
Gets the initial condition of u at the given point (x,y).
|
double |
g(double t,
double x,
double y)
Gets the boundary condition at the given boundary point (x,y) at the given time point
t.
|
double |
T()
Gets the time period of interest, that is, the range of t,
(0 < t < T).
|
public HeatEquation2D(double beta, double T, double a, double b, BivariateRealFunction f, TrivariateRealFunction g)
beta
- the beta in the equationT
- the time period of interest (0, T)a
- the size of the region along the x-axis, x ∈ (0, a)b
- the size of the region along the y-axis y ∈ (0, b)f
- the initial condition of u, i.e., u(0,x,y)g
- the boundary condition at x = 0, a and y = 0, bpublic double beta()
public double T()
public double a()
public double b()
public double f(double x, double y)
x
- the x-coordinatey
- the y-coordinatepublic double g(double t, double x, double y)
t
- the time pointx
- the x-coordinatey
- the y-coordinateCopyright © 2010-2020 NM FinTech Ltd.. All Rights Reserved.