public class WaveEquation2D extends Object implements PDE
Constructor and Description |
---|
WaveEquation2D(double beta,
double T,
double a,
double b,
BivariateRealFunction f,
BivariateRealFunction g)
Create a two-dimensional wave equation.
|
Modifier and Type | Method and Description |
---|---|
double |
a()
Get the size of the two-dimensional space along the x-axis, that is, the range of x,
(0 < x < a).
|
double |
b()
Get the size of the two-dimensional space along the y-axis, that is, the range of y,
(0 < y < b).
|
double |
beta()
Get the value of the wave coefficient β
|
double |
f(double x,
double y)
Get the initial condition of u at the given point (x,y).
|
double |
g(double x,
double y)
Get the initial condition of the time derivative of u at the given point (x,y).
|
double |
T()
Get the time period of interest, that is, the range of t,
(0 < t < T).
|
public WaveEquation2D(double beta, double T, double a, double b, BivariateRealFunction f, BivariateRealFunction 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 initial condition of the time-derivative of u, i.e.,
ut(0,x,y)public 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 x, double y)
x
- the x-coordinatey
- the y-coordinateCopyright © 2010-2020 NM FinTech Ltd.. All Rights Reserved.