com.rychlik.jode
|
Field Summary | |
static int |
EULER
Constant representing Euler algorithm. |
static int |
ILLEGAL
Constant representing an illegal (unknown) algorithm. |
static int |
MIDPOINT_RULE
Constant representing Midpoint Rule Algorithm. |
static int |
MODIFIED_EULER
Constant representing Modified Euler Algorithm. |
static int |
RUNGE_KUTTA_4
Constant representing Runge-Kutta 4 Algorithm. |
static int |
RUNGE_KUTTA_FEHLBERG
Constant representing Runge-Kutta-Fehlberg Algorithm. |
Constructor Summary | |
ODESolver()
|
Method Summary | |
static java.util.Vector |
euler(com.rychlik.jode.VField f,
double[] y0,
double h,
int maxSteps)
Version of euler with trivial constraints. |
static java.util.Vector |
euler(com.rychlik.jode.VField f,
double[] y0,
double h,
int maxSteps,
com.rychlik.jode.Constraints c)
|
static int |
getAlgorithm(java.lang.String name)
|
static java.lang.String |
getAlgorithmName(int algorithm)
|
static int |
getAlgorithmNumber()
|
static java.lang.String |
getErrorMessage()
|
static java.util.Vector |
integrate(int method,
com.rychlik.jode.VField f,
double[] y0,
double h,
int maxSteps)
Version of integrate with trivial constraints. |
static java.util.Vector |
integrate(int method,
com.rychlik.jode.VField f,
double[] y0,
double h,
int maxSteps,
com.rychlik.jode.Constraints c)
Selects an algorithm according to the first argument and calls one of the implemented solvers. |
static java.util.Vector |
midpointRule(com.rychlik.jode.VField f,
double[] y0,
double h,
int maxSteps)
Version of midpointRule with trivial constraints. |
static java.util.Vector |
midpointRule(com.rychlik.jode.VField f,
double[] y0,
double h,
int maxSteps,
com.rychlik.jode.Constraints c)
|
static java.util.Vector |
modifiedEuler(com.rychlik.jode.VField f,
double[] y0,
double h,
int maxSteps)
Version of modifiedEuler with trivial constraints. |
static java.util.Vector |
modifiedEuler(com.rychlik.jode.VField f,
double[] y0,
double h,
int maxSteps,
com.rychlik.jode.Constraints c)
|
static java.util.Vector |
rungeKutta4(com.rychlik.jode.VField f,
double[] y0,
double h,
int maxSteps)
Version of rungeKutta4 with trivial constraints. |
static java.util.Vector |
rungeKutta4(com.rychlik.jode.VField f,
double[] y0,
double h,
int maxSteps,
com.rychlik.jode.Constraints c)
|
static java.util.Vector |
rungeKuttaFehlberg(com.rychlik.jode.VField f,
double[] y0,
double h,
int maxSteps)
Version of rungeKuttaFehlberg with trivial constraints. |
static java.util.Vector |
rungeKuttaFehlberg(com.rychlik.jode.VField f,
double[] y0,
double h,
int maxSteps,
com.rychlik.jode.Constraints c)
Runge-Kutta-Fehlberg integrator |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final int ILLEGAL
public static final int EULER
public static final int MODIFIED_EULER
public static final int MIDPOINT_RULE
public static final int RUNGE_KUTTA_4
public static final int RUNGE_KUTTA_FEHLBERG
Constructor Detail |
public ODESolver()
Method Detail |
public static final java.lang.String getAlgorithmName(int algorithm)
public static final int getAlgorithmNumber()
public static final int getAlgorithm(java.lang.String name)
public static java.util.Vector rungeKutta4(com.rychlik.jode.VField f, double[] y0, double h, int maxSteps, com.rychlik.jode.Constraints c)
f
- Vector fieldh
- Step size.maxSteps
- Maximal number of steps.c
- Constraints which solution must satisfy
public static java.util.Vector rungeKuttaFehlberg(com.rychlik.jode.VField f, double[] y0, double h, int maxSteps, com.rychlik.jode.Constraints c)
f
- Vector fieldmaxSteps
- Maximal number of steps.c
- Constraints which solution must satisfy
public static java.util.Vector euler(com.rychlik.jode.VField f, double[] y0, double h, int maxSteps, com.rychlik.jode.Constraints c)
f
- Vector fieldh
- Step size.maxSteps
- Maximal number of steps.c
- Constraints which solution must satisfy
public static java.util.Vector modifiedEuler(com.rychlik.jode.VField f, double[] y0, double h, int maxSteps, com.rychlik.jode.Constraints c)
f
- Vector fieldh
- Step size.maxSteps
- Maximal number of steps.c
- Constraints which solution must satisfy
public static java.util.Vector midpointRule(com.rychlik.jode.VField f, double[] y0, double h, int maxSteps, com.rychlik.jode.Constraints c)
f
- Vector fieldh
- Step size.maxSteps
- Maximal number of steps.c
- Constraints which solution must satisfy
public static java.util.Vector rungeKutta4(com.rychlik.jode.VField f, double[] y0, double h, int maxSteps)
public static java.util.Vector euler(com.rychlik.jode.VField f, double[] y0, double h, int maxSteps)
public static java.util.Vector modifiedEuler(com.rychlik.jode.VField f, double[] y0, double h, int maxSteps)
public static java.util.Vector midpointRule(com.rychlik.jode.VField f, double[] y0, double h, int maxSteps)
public static java.util.Vector rungeKuttaFehlberg(com.rychlik.jode.VField f, double[] y0, double h, int maxSteps)
public static java.lang.String getErrorMessage()
public static java.util.Vector integrate(int method, com.rychlik.jode.VField f, double[] y0, double h, int maxSteps, com.rychlik.jode.Constraints c)
method
- Constant representing method of integration.f
- Vector field.h
- Step.maxSteps
- Maximal number of steps. The actual number of steps can be smaller if
during integration vector field cannot be evaluated.c
- Constraints which must be satisfied by the solution point.
public static java.util.Vector integrate(int method, com.rychlik.jode.VField f, double[] y0, double h, int maxSteps)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
This page last modified Sun Sep 12 12:31:03 2004
Questions? Comments? Please send feedback to jason howald