Package gov.nih.mipav.model.algorithms
Class ODE
- java.lang.Object
-
- gov.nih.mipav.model.algorithms.ODE
-
- Direct Known Subclasses:
SchwarzChristoffelMapping.ODEExtModel
,SchwarzChristoffelMapping.ODEModel
,SchwarzChristoffelMapping.ODERectModel
,SchwarzChristoffelMapping2.ODEHPModel
,SchwarzChristoffelMapping2.ODESTModel
public abstract class ODE extends java.lang.Object
-
-
Field Summary
Fields Modifier and Type Field Description private double[]
abserr
private double[]
alpha
private double[]
beta
private double
delsn
private int
DUFFINGS
private int
DUFFINGS_WITH_DAMPING_AND_FORCING
private int
ENRIGHT_AND_PRYCE_A1
private int
ENRIGHT_AND_PRYCE_A2
private int
ENRIGHT_AND_PRYCE_A3
private int
ENRIGHT_AND_PRYCE_A4
private int
ENRIGHT_AND_PRYCE_A5
private int
ENRIGHT_AND_PRYCE_B1
private int
ENRIGHT_AND_PRYCE_B2
private int
ENRIGHT_AND_PRYCE_B3
private int
ENRIGHT_AND_PRYCE_B4
private int
ENRIGHT_AND_PRYCE_B5
private int
ENRIGHT_AND_PRYCE_C1
private int
ENRIGHT_AND_PRYCE_C2
private int
ENRIGHT_AND_PRYCE_C3
private int
ENRIGHT_AND_PRYCE_C4
private int
ENRIGHT_AND_PRYCE_C5
private int
ENRIGHT_AND_PRYCE_D1
private int
ENRIGHT_AND_PRYCE_D2
private int
ENRIGHT_AND_PRYCE_D3
private int
ENRIGHT_AND_PRYCE_D4
private int
ENRIGHT_AND_PRYCE_D5
private int
ENRIGHT_AND_PRYCE_E1
private int
ENRIGHT_AND_PRYCE_E2
private int
ENRIGHT_AND_PRYCE_E3
private int
ENRIGHT_AND_PRYCE_E4
private int
ENRIGHT_AND_PRYCE_E5
private int
ENRIGHT_AND_PRYCE_F1
private int
ENRIGHT_AND_PRYCE_F2
private int
ENRIGHT_AND_PRYCE_F3
private int
ENRIGHT_AND_PRYCE_F4
private int
ENRIGHT_AND_PRYCE_F5
private double
fouru
private double[]
g
private double
h
private double
hold
private int[]
iflag
private int
isnold
private double
istart
private int
iwork1
private int
k
private int
KNEE_PROBLEM
private int
kold
private int
LINEARIZED_DAMPED_PENDULUM
private int
LORENZ_SYSTEM
private int
LOTKA_VOLTERRA_PREDATOR_PREY
private int
maxnum
private int
neqn
private int
NONLINEAR_DAMPED_PENDULUM
private boolean
nornd
private int
ns
private double[]
p
private double
phase
private boolean
phase1
private double[][]
phi
private int
POLKINGS_FIRST_ORDER
private double[]
psi
private double[]
relerr
private int
SHAMPINES_BALL_OF_FLAME
private double[]
sig
private boolean
start
private double[]
t
private int
testCase
private boolean
testMode
private double
told
private double
tout
private double
twou
private double[]
v
private int
VAN_DER_POL
private double[]
w
private double[]
wt
private double
x
private double[]
y
private double[]
yp
private double[]
ypout
private double[]
yy
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description private void
allocateArrays()
private void
clearArrays()
private void
de()
void
driver()
private double
dsign(double a, double b)
abstract void
f(double t, double[] y, double[] yp)
private void
fTestMode(double x, double[] yy, double[] yp)
double
getAbserr()
java.lang.String
getErrorMessage()
int
getIflag()
double
getRelerr()
double
getT()
double[]
getY()
private void
intrp()
void
step(double[] eps, boolean[] crash)
-
-
-
Field Detail
-
neqn
private int neqn
-
y
private double[] y
-
t
private double[] t
-
tout
private double tout
-
relerr
private double[] relerr
-
abserr
private double[] abserr
-
iflag
private int[] iflag
-
alpha
private double[] alpha
-
beta
private double[] beta
-
sig
private double[] sig
-
v
private double[] v
-
w
private double[] w
-
g
private double[] g
-
phase
private double phase
-
psi
private double[] psi
-
x
private double x
-
h
private double h
-
hold
private double hold
-
istart
private double istart
-
told
private double told
-
delsn
private double delsn
-
yy
private double[] yy
-
wt
private double[] wt
-
p
private double[] p
-
yp
private double[] yp
-
ypout
private double[] ypout
-
phi
private double[][] phi
-
ns
private int ns
-
iwork1
private int iwork1
-
k
private int k
-
kold
private int kold
-
isnold
private int isnold
-
start
private boolean start
-
phase1
private boolean phase1
-
nornd
private boolean nornd
-
twou
private double twou
-
fouru
private double fouru
-
maxnum
private int maxnum
-
testMode
private boolean testMode
-
testCase
private int testCase
-
ENRIGHT_AND_PRYCE_A1
private final int ENRIGHT_AND_PRYCE_A1
- See Also:
- Constant Field Values
-
ENRIGHT_AND_PRYCE_A2
private final int ENRIGHT_AND_PRYCE_A2
- See Also:
- Constant Field Values
-
ENRIGHT_AND_PRYCE_A3
private final int ENRIGHT_AND_PRYCE_A3
- See Also:
- Constant Field Values
-
ENRIGHT_AND_PRYCE_A4
private final int ENRIGHT_AND_PRYCE_A4
- See Also:
- Constant Field Values
-
ENRIGHT_AND_PRYCE_A5
private final int ENRIGHT_AND_PRYCE_A5
- See Also:
- Constant Field Values
-
ENRIGHT_AND_PRYCE_B1
private final int ENRIGHT_AND_PRYCE_B1
- See Also:
- Constant Field Values
-
ENRIGHT_AND_PRYCE_B2
private final int ENRIGHT_AND_PRYCE_B2
- See Also:
- Constant Field Values
-
ENRIGHT_AND_PRYCE_B3
private final int ENRIGHT_AND_PRYCE_B3
- See Also:
- Constant Field Values
-
ENRIGHT_AND_PRYCE_B4
private final int ENRIGHT_AND_PRYCE_B4
- See Also:
- Constant Field Values
-
ENRIGHT_AND_PRYCE_B5
private final int ENRIGHT_AND_PRYCE_B5
- See Also:
- Constant Field Values
-
ENRIGHT_AND_PRYCE_C1
private final int ENRIGHT_AND_PRYCE_C1
- See Also:
- Constant Field Values
-
ENRIGHT_AND_PRYCE_C2
private final int ENRIGHT_AND_PRYCE_C2
- See Also:
- Constant Field Values
-
ENRIGHT_AND_PRYCE_C3
private final int ENRIGHT_AND_PRYCE_C3
- See Also:
- Constant Field Values
-
ENRIGHT_AND_PRYCE_C4
private final int ENRIGHT_AND_PRYCE_C4
- See Also:
- Constant Field Values
-
ENRIGHT_AND_PRYCE_C5
private final int ENRIGHT_AND_PRYCE_C5
- See Also:
- Constant Field Values
-
ENRIGHT_AND_PRYCE_D1
private final int ENRIGHT_AND_PRYCE_D1
- See Also:
- Constant Field Values
-
ENRIGHT_AND_PRYCE_D2
private final int ENRIGHT_AND_PRYCE_D2
- See Also:
- Constant Field Values
-
ENRIGHT_AND_PRYCE_D3
private final int ENRIGHT_AND_PRYCE_D3
- See Also:
- Constant Field Values
-
ENRIGHT_AND_PRYCE_D4
private final int ENRIGHT_AND_PRYCE_D4
- See Also:
- Constant Field Values
-
ENRIGHT_AND_PRYCE_D5
private final int ENRIGHT_AND_PRYCE_D5
- See Also:
- Constant Field Values
-
ENRIGHT_AND_PRYCE_E1
private final int ENRIGHT_AND_PRYCE_E1
- See Also:
- Constant Field Values
-
ENRIGHT_AND_PRYCE_E2
private final int ENRIGHT_AND_PRYCE_E2
- See Also:
- Constant Field Values
-
ENRIGHT_AND_PRYCE_E3
private final int ENRIGHT_AND_PRYCE_E3
- See Also:
- Constant Field Values
-
ENRIGHT_AND_PRYCE_E4
private final int ENRIGHT_AND_PRYCE_E4
- See Also:
- Constant Field Values
-
ENRIGHT_AND_PRYCE_E5
private final int ENRIGHT_AND_PRYCE_E5
- See Also:
- Constant Field Values
-
ENRIGHT_AND_PRYCE_F1
private final int ENRIGHT_AND_PRYCE_F1
- See Also:
- Constant Field Values
-
ENRIGHT_AND_PRYCE_F2
private final int ENRIGHT_AND_PRYCE_F2
- See Also:
- Constant Field Values
-
ENRIGHT_AND_PRYCE_F3
private final int ENRIGHT_AND_PRYCE_F3
- See Also:
- Constant Field Values
-
ENRIGHT_AND_PRYCE_F4
private final int ENRIGHT_AND_PRYCE_F4
- See Also:
- Constant Field Values
-
ENRIGHT_AND_PRYCE_F5
private final int ENRIGHT_AND_PRYCE_F5
- See Also:
- Constant Field Values
-
LOTKA_VOLTERRA_PREDATOR_PREY
private final int LOTKA_VOLTERRA_PREDATOR_PREY
- See Also:
- Constant Field Values
-
LORENZ_SYSTEM
private final int LORENZ_SYSTEM
- See Also:
- Constant Field Values
-
VAN_DER_POL
private final int VAN_DER_POL
- See Also:
- Constant Field Values
-
LINEARIZED_DAMPED_PENDULUM
private final int LINEARIZED_DAMPED_PENDULUM
- See Also:
- Constant Field Values
-
NONLINEAR_DAMPED_PENDULUM
private final int NONLINEAR_DAMPED_PENDULUM
- See Also:
- Constant Field Values
-
DUFFINGS
private final int DUFFINGS
- See Also:
- Constant Field Values
-
DUFFINGS_WITH_DAMPING_AND_FORCING
private final int DUFFINGS_WITH_DAMPING_AND_FORCING
- See Also:
- Constant Field Values
-
SHAMPINES_BALL_OF_FLAME
private final int SHAMPINES_BALL_OF_FLAME
- See Also:
- Constant Field Values
-
POLKINGS_FIRST_ORDER
private final int POLKINGS_FIRST_ORDER
- See Also:
- Constant Field Values
-
KNEE_PROBLEM
private final int KNEE_PROBLEM
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
ODE
public ODE()
Creates a new ODE object. Test with: new ODEtest(); class ODEtest extends ODE { public ODEtest() { super(); } public void f(double x, double yy[], double yp[]) { } }
-
ODE
public ODE(int neqn, double[] y, double[] t, double tout, double[] relerr, double[] abserr, int[] iflag)
-
-
Method Detail
-
allocateArrays
private void allocateArrays()
-
clearArrays
private void clearArrays()
-
fTestMode
private void fTestMode(double x, double[] yy, double[] yp)
-
dsign
private double dsign(double a, double b)
-
getY
public double[] getY()
-
getT
public double getT()
-
getIflag
public int getIflag()
-
getRelerr
public double getRelerr()
-
getErrorMessage
public java.lang.String getErrorMessage()
-
getAbserr
public double getAbserr()
-
driver
public void driver()
-
de
private void de()
-
step
public void step(double[] eps, boolean[] crash)
-
f
public abstract void f(double t, double[] y, double[] yp)
-
intrp
private void intrp()
-
-