-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathHyperbolicEquation.java
39 lines (34 loc) · 1.24 KB
/
HyperbolicEquation.java
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
package by.andd3dfx.math.pde.equation;
import by.andd3dfx.math.pde.border.BorderCondition;
/**
* Hyperbolic equation (described oscillation processes):
* M(x,t,U)*d2U_dt2 + L(x,t,U)*dU_dt = dU(K(x,t,U)*dU_dx)_dx + V(x,t,U)*dU_dx + F(x,t,U) where U = U(x,t)
*/
public class HyperbolicEquation extends Equation {
/**
* Create hyperbolic equation
*
* @param x1 left space coordinate
* @param x2 right space coordinate
* @param t2 right time coordinate
* @param leftBorderCondition left border condition
* @param rightBorderCondition right border condition
*/
public HyperbolicEquation(double x1, double x2, double t2,
BorderCondition leftBorderCondition,
BorderCondition rightBorderCondition) {
super(x1, x2, t2, leftBorderCondition, rightBorderCondition);
}
/**
* Initial condition dU_dt(x,0) at moment t=0
*/
public double gdU_dt(double x) {
return 0;
}
/**
* Coefficient L(x,t,U) of equation for 1st-order time derivative
*/
public double gL(double x, double t, double U) {
return 0;
}
}