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[]abserrprivate double[]alphaprivate double[]betaprivate doubledelsnprivate intDUFFINGSprivate intDUFFINGS_WITH_DAMPING_AND_FORCINGprivate intENRIGHT_AND_PRYCE_A1private intENRIGHT_AND_PRYCE_A2private intENRIGHT_AND_PRYCE_A3private intENRIGHT_AND_PRYCE_A4private intENRIGHT_AND_PRYCE_A5private intENRIGHT_AND_PRYCE_B1private intENRIGHT_AND_PRYCE_B2private intENRIGHT_AND_PRYCE_B3private intENRIGHT_AND_PRYCE_B4private intENRIGHT_AND_PRYCE_B5private intENRIGHT_AND_PRYCE_C1private intENRIGHT_AND_PRYCE_C2private intENRIGHT_AND_PRYCE_C3private intENRIGHT_AND_PRYCE_C4private intENRIGHT_AND_PRYCE_C5private intENRIGHT_AND_PRYCE_D1private intENRIGHT_AND_PRYCE_D2private intENRIGHT_AND_PRYCE_D3private intENRIGHT_AND_PRYCE_D4private intENRIGHT_AND_PRYCE_D5private intENRIGHT_AND_PRYCE_E1private intENRIGHT_AND_PRYCE_E2private intENRIGHT_AND_PRYCE_E3private intENRIGHT_AND_PRYCE_E4private intENRIGHT_AND_PRYCE_E5private intENRIGHT_AND_PRYCE_F1private intENRIGHT_AND_PRYCE_F2private intENRIGHT_AND_PRYCE_F3private intENRIGHT_AND_PRYCE_F4private intENRIGHT_AND_PRYCE_F5private doublefouruprivate double[]gprivate doublehprivate doubleholdprivate int[]iflagprivate intisnoldprivate doubleistartprivate intiwork1private intkprivate intKNEE_PROBLEMprivate intkoldprivate intLINEARIZED_DAMPED_PENDULUMprivate intLORENZ_SYSTEMprivate intLOTKA_VOLTERRA_PREDATOR_PREYprivate intmaxnumprivate intneqnprivate intNONLINEAR_DAMPED_PENDULUMprivate booleannorndprivate intnsprivate double[]pprivate doublephaseprivate booleanphase1private double[][]phiprivate intPOLKINGS_FIRST_ORDERprivate double[]psiprivate double[]relerrprivate intSHAMPINES_BALL_OF_FLAMEprivate double[]sigprivate booleanstartprivate double[]tprivate inttestCaseprivate booleantestModeprivate doubletoldprivate doubletoutprivate doubletwouprivate double[]vprivate intVAN_DER_POLprivate double[]wprivate double[]wtprivate doublexprivate double[]yprivate double[]ypprivate double[]ypoutprivate double[]yy
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description private voidallocateArrays()private voidclearArrays()private voidde()voiddriver()private doubledsign(double a, double b)abstract voidf(double t, double[] y, double[] yp)private voidfTestMode(double x, double[] yy, double[] yp)doublegetAbserr()java.lang.StringgetErrorMessage()intgetIflag()doublegetRelerr()doublegetT()double[]getY()private voidintrp()voidstep(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()
-
-