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
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate double[]private double[]private double[]private doubleprivate final intprivate final intprivate final intprivate final intprivate final intprivate final intprivate final intprivate final intprivate final intprivate final intprivate final intprivate final intprivate final intprivate final intprivate final intprivate final intprivate final intprivate final intprivate final intprivate final intprivate final intprivate final intprivate final intprivate final intprivate final intprivate final intprivate final intprivate final intprivate final intprivate final intprivate final intprivate final intprivate doubleprivate double[]private doubleprivate doubleprivate int[]private intprivate doubleprivate intprivate intprivate final intprivate intprivate final intprivate final intprivate final intprivate intprivate intprivate final intprivate booleanprivate intprivate double[]private doubleprivate booleanprivate double[][]private final intprivate double[]private double[]private final intprivate double[]private booleanprivate double[]private intprivate booleanprivate doubleprivate doubleprivate doubleprivate double[]private final intprivate double[]private double[]private doubleprivate double[]private double[]private double[]private double[] -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate voidprivate voidprivate voidde()voiddriver()private doubledsign(double a, double b) abstract voidf(double t, double[] y, double[] yp) private voidfTestMode(double x, double[] yy, double[] yp) doubleintgetIflag()doubledoublegetT()double[]getY()private voidintrp()voidstep(double[] eps, boolean[] crash)
-
Field Details
-
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:
-
ENRIGHT_AND_PRYCE_A2
private final int ENRIGHT_AND_PRYCE_A2- See Also:
-
ENRIGHT_AND_PRYCE_A3
private final int ENRIGHT_AND_PRYCE_A3- See Also:
-
ENRIGHT_AND_PRYCE_A4
private final int ENRIGHT_AND_PRYCE_A4- See Also:
-
ENRIGHT_AND_PRYCE_A5
private final int ENRIGHT_AND_PRYCE_A5- See Also:
-
ENRIGHT_AND_PRYCE_B1
private final int ENRIGHT_AND_PRYCE_B1- See Also:
-
ENRIGHT_AND_PRYCE_B2
private final int ENRIGHT_AND_PRYCE_B2- See Also:
-
ENRIGHT_AND_PRYCE_B3
private final int ENRIGHT_AND_PRYCE_B3- See Also:
-
ENRIGHT_AND_PRYCE_B4
private final int ENRIGHT_AND_PRYCE_B4- See Also:
-
ENRIGHT_AND_PRYCE_B5
private final int ENRIGHT_AND_PRYCE_B5- See Also:
-
ENRIGHT_AND_PRYCE_C1
private final int ENRIGHT_AND_PRYCE_C1- See Also:
-
ENRIGHT_AND_PRYCE_C2
private final int ENRIGHT_AND_PRYCE_C2- See Also:
-
ENRIGHT_AND_PRYCE_C3
private final int ENRIGHT_AND_PRYCE_C3- See Also:
-
ENRIGHT_AND_PRYCE_C4
private final int ENRIGHT_AND_PRYCE_C4- See Also:
-
ENRIGHT_AND_PRYCE_C5
private final int ENRIGHT_AND_PRYCE_C5- See Also:
-
ENRIGHT_AND_PRYCE_D1
private final int ENRIGHT_AND_PRYCE_D1- See Also:
-
ENRIGHT_AND_PRYCE_D2
private final int ENRIGHT_AND_PRYCE_D2- See Also:
-
ENRIGHT_AND_PRYCE_D3
private final int ENRIGHT_AND_PRYCE_D3- See Also:
-
ENRIGHT_AND_PRYCE_D4
private final int ENRIGHT_AND_PRYCE_D4- See Also:
-
ENRIGHT_AND_PRYCE_D5
private final int ENRIGHT_AND_PRYCE_D5- See Also:
-
ENRIGHT_AND_PRYCE_E1
private final int ENRIGHT_AND_PRYCE_E1- See Also:
-
ENRIGHT_AND_PRYCE_E2
private final int ENRIGHT_AND_PRYCE_E2- See Also:
-
ENRIGHT_AND_PRYCE_E3
private final int ENRIGHT_AND_PRYCE_E3- See Also:
-
ENRIGHT_AND_PRYCE_E4
private final int ENRIGHT_AND_PRYCE_E4- See Also:
-
ENRIGHT_AND_PRYCE_E5
private final int ENRIGHT_AND_PRYCE_E5- See Also:
-
ENRIGHT_AND_PRYCE_F1
private final int ENRIGHT_AND_PRYCE_F1- See Also:
-
ENRIGHT_AND_PRYCE_F2
private final int ENRIGHT_AND_PRYCE_F2- See Also:
-
ENRIGHT_AND_PRYCE_F3
private final int ENRIGHT_AND_PRYCE_F3- See Also:
-
ENRIGHT_AND_PRYCE_F4
private final int ENRIGHT_AND_PRYCE_F4- See Also:
-
ENRIGHT_AND_PRYCE_F5
private final int ENRIGHT_AND_PRYCE_F5- See Also:
-
LOTKA_VOLTERRA_PREDATOR_PREY
private final int LOTKA_VOLTERRA_PREDATOR_PREY- See Also:
-
LORENZ_SYSTEM
private final int LORENZ_SYSTEM- See Also:
-
VAN_DER_POL
private final int VAN_DER_POL- See Also:
-
LINEARIZED_DAMPED_PENDULUM
private final int LINEARIZED_DAMPED_PENDULUM- See Also:
-
NONLINEAR_DAMPED_PENDULUM
private final int NONLINEAR_DAMPED_PENDULUM- See Also:
-
DUFFINGS
private final int DUFFINGS- See Also:
-
DUFFINGS_WITH_DAMPING_AND_FORCING
private final int DUFFINGS_WITH_DAMPING_AND_FORCING- See Also:
-
SHAMPINES_BALL_OF_FLAME
private final int SHAMPINES_BALL_OF_FLAME- See Also:
-
POLKINGS_FIRST_ORDER
private final int POLKINGS_FIRST_ORDER- See Also:
-
KNEE_PROBLEM
private final int KNEE_PROBLEM- See Also:
-
-
Constructor Details
-
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 Details
-
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
-
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()
-