opale.ode
Interface Equation

All Known Implementing Classes:
SEquation

public interface Equation

This interface muste be implemented to define an equation for a ODE problem : (xi)'=f(t,x1,...,xn) for i=1 to n. Two methods are abstracts :

Since:
Opale-ODE 0.1

Method Summary
 DVect derivs(double t, DVect x)
          Defines the function of the equation.
 int dim()
          Get the space dimension of the unknown.
 

Method Detail

dim

public int dim()
Get the space dimension of the unknown.
Returns:
int, the dimension.

derivs

public DVect derivs(double t,
                    DVect x)
Defines the function of the equation.
Parameters:
double - t, time parameter (=derivation parameter).
DVect - x, unknown parameters.
Returns:
DVect, the value of the function at the point (t,x).