public class WaveEquation1D extends Object implements PDE
Constructor and Description |
---|
WaveEquation1D(double beta,
double T,
double a,
UnivariateRealFunction f,
UnivariateRealFunction g)
Constructs an one-dimensional wave equation.
|
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 the value of the wave coefficient β
|
double |
f(double x)
Gets the value of the initial condition of u at x.
|
double |
g(double x)
Gets the value of the initial condition of the time derivative of u at x.
|
double |
T()
Gets the time period of interest, that is, the range of t,
(0 < t < T).
|
public WaveEquation1D(double beta, double T, double a, UnivariateRealFunction f, UnivariateRealFunction g)
beta
- the wave coefficient β in the equationT
- the time period of interest (0, T)a
- the region of interest (0, a)f
- the initial condition of u, i.e., u(0, x)g
- the initial condition of the time-derivative of u, i.e.,
ut(0,x)public double beta()
public double T()
public double a()
public double f(double x)
x
- the positionpublic double g(double x)
x
- the positionCopyright © 2010-2020 NM FinTech Ltd.. All Rights Reserved.