All Packages Class Hierarchy This Package Previous Next Index
Class CH.epfl.lcvm.mccc.CollocationDiscretization
java.lang.Object
|
+----CH.epfl.lcvm.mccc.OneDDiscretization
|
+----CH.epfl.lcvm.mccc.CollocationDiscretization
- public class CollocationDiscretization
- extends OneDDiscretization
A collocation 1D discretization.
Based on the paper Numerical Analysis and Control of
Bifurcation Problems (II) Bifurcation in Infinite Dimensions
by E. Doedel.
-
domain_
- Domain of this class as a Function.
-
legendreRoots_
- An array which contains the roots of the legendre polynomials.
-
range_
- Range of this class as a Function.
-
CollocationDiscretization(ODEFunctionWithBC, OneDMesh, int)
-
A discretization creation function which takes
a mesh and a function creates a Collocation discretization
discretization.
-
call(Matrix)
-
Returns the value of the discretized function over the given
mesh
-
generateGuess(Matrix, Matrix)
-
A convience function for generating a solution to the
problem given intial conditions.
-
getDomain()
- Returns the dimension of the domain of the discretized function
-
getRange()
- Returns the dimension of the range of the discretized function
-
main(String[])
-
Exercise the class by trying the various functions.
legendreRoots_
protected static double legendreRoots_[][]
- An array which contains the roots of the legendre polynomials.
Used as the values at which to evaluate the polynomial
approximation.
- See Also:
- call
domain_
protected int domain_
- Domain of this class as a Function. Equals ((ncol_*ntst_)+1)*ndim+npar
where ndim is the dimension of the input system and npar is the
number of parameters in the input system.
- See Also:
- Function
range_
protected int range_
- Range of this class as a Function. Equals ((ncol_*ntst_))*ndim+nbc
where ndim is the dimension of the input system and nbc is the
number boundary conditions.
- See Also:
- Function
CollocationDiscretization
public CollocationDiscretization(ODEFunctionWithBC func,
OneDMesh mesh,
int ncol)
- A discretization creation function which takes
a mesh and a function creates a Collocation discretization
discretization. The assumes that the problem
is of the form x' = func(x) and that the system is
square.
- Parameters:
- func - The function to discretize
- mesh - The 1D mesh over which to discretize it
- ncol - The number of collocation points in each interval.
call
public Matrix call(Matrix input)
- Returns the value of the discretized function over the given
mesh
- Parameters:
- value - the point at which to call the function.
It assumes that
the input has rows in the following order par1,...,parM,
x0(mesh[0]),
x1(mesh[0]),
...xn(mesh[0]),x0(mesh[1])...
- Returns:
- the return value of the function.
- Overrides:
- call in class OneDDiscretization
getRange
public int getRange()
- Returns the dimension of the range of the discretized function
- Returns:
- the dimension of the range of the function.
- Overrides:
- getRange in class OneDDiscretization
getDomain
public int getDomain()
- Returns the dimension of the domain of the discretized function
- Returns:
- the dimension of the domain of the function.
- Overrides:
- getDomain in class OneDDiscretization
generateGuess
public Matrix generateGuess(Matrix initialValues,
Matrix parameterValues) throws MCCCException
- A convience function for generating a solution to the
problem given intial conditions.
- Parameters:
- initialValues - Initial values for the IVP solver
- parameterValues - Parameter values for the IVP solver
- Returns:
- A solution to the problem
- Throws: MCCCException
- In case the method doesn't
converge it throws this exception
main
public static void main(String argv[]) throws MCCCException
- Exercise the class by trying the various functions.
- Throws: MCCCException
- In case something fails in the
test harness it throws this exception.
All Packages Class Hierarchy This Package Previous Next Index