Class OdesFunction
java.lang.Object
|
+----OdesFunction
- public class OdesFunction
- extends Object
Class to return rhs of differential equations.
To be subclassed by specific functions, which must provide:
- a method derivs(double[] x, double t) to return the rhs of the equations
given x and t
- an int variable nParameters giving the number of ode parameters
- the initialization of a[nParamters] and aDefault[nParameters]
- x[0] giving default initial values of x
Optional parameters are:
- boolean wrapX true if x-range is to be wrapped
- double wrapXValue giving value at which x is wrapped if wrapX true
- boolean wrapY true if y-range is to be wrapped
- double wrapYValue giving value at which y is wrapped if wrapY true
- boolean wrapZ true if z-range is to be wrapped
- double wrapZValue giving value at which z is wrapped if wrapZ true
- double dt giving the default value of the time step dt
- double trans giving the default value of the transient trans
- double ghostTime giving the default value of the time for which the preplot
is evaluated
- double poincareSection giving the default value for the Poimcare section
- String title giving the name of the function to use as a graph title
-
a
- array giving map paramters
-
aDefault
- array giving default values of map parameters
-
dt
-
-
ghostTime
-
-
nParameters
- number of parameters
-
nVariables
- number of map variables
-
poincareSection
-
-
title
- the name of the function to use as a graph title
-
trans
-
-
wrapX
-
-
wrapXValue
-
-
wrapY
-
-
wrapYValue
-
-
wrapZ
-
-
wrapZValue
-
-
x0
- the default value of the initial value of x
-
OdesFunction(int)
-
-
derivs(double[], double)
- Returns RHS of differential equations
-
getNParameters()
- Returnd the number of parameters defining the ode
-
setParameters(double[])
- Sets the map paramters
nParameters
int nParameters
- number of parameters
nVariables
int nVariables
- number of map variables
a
double a[]
- array giving map paramters
aDefault
double aDefault[]
- array giving default values of map parameters
wrapX
public boolean wrapX
wrapXValue
public double wrapXValue
wrapY
public boolean wrapY
wrapYValue
public double wrapYValue
wrapZ
public boolean wrapZ
wrapZValue
public double wrapZValue
x0
double x0[]
- the default value of the initial value of x
dt
double dt
trans
double trans
ghostTime
double ghostTime
poincareSection
double poincareSection
title
String title
- the name of the function to use as a graph title
OdesFunction
OdesFunction(int n)
setParameters
public void setParameters(double parameters[])
- Sets the map paramters
- Parameters:
- paramters - the array of input paramters
derivs
public double[] derivs(double x[],
double t)
- Returns RHS of differential equations
- Parameters:
- x[] - vector of current value of dependent variables
- n - number of dependent variables in array x[]
- t - current value of independent variable
- Returns:
- n component vector giving derivatives of dependent variables
getNParameters
public int getNParameters()
- Returnd the number of parameters defining the ode
- Returns:
- number of parameters