|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.ObjecthydroScalingAPI.util.ordDiffEqSolver.RKF
public class RKF
An implementation of the Runge-Kutta-Felberg algorithm for solving non-linear ordinary differential equations. It uses a time step control algorithm to avoid numerical errors while solving the equations
| Field Summary | |
|---|---|
double[] |
finalCond
An array containing the value of the function that was last calculated by the RKF algoritm |
| Constructor Summary | |
|---|---|
RKF(BasicFunction fu,
double eps,
double basTs)
Creates new RKF |
|
| Method Summary | |
|---|---|
double[] |
getMaximumAchieved()
Returns an array with the maximum value calculated during the iteration process |
double[][][] |
jumpsRun(double iniTime,
double finalTime,
double incrementalTime,
double[] IC)
Returns the values of the function described by differential equations in the the intermidia steps requested to go from the Initial to the Final time |
void |
jumpsRunCompleteToAsciiFile(double iniTime,
double finalTime,
double incrementalTime,
double[] IC,
java.io.OutputStreamWriter outputStream,
LinksAnalysis linksStructure,
LinksInfo thisNetworkGeom,
java.io.OutputStreamWriter outputStream1)
Writes (in ascii format) to a specified file the values of the function described by differential equations in the the intermidia steps requested to go from the Initial to the Final time. |
void |
jumpsRunToAsciiFile_luciana(double iniTime,
double finalTime,
double incrementalTime,
double[] IC,
java.io.OutputStreamWriter outputStream,
LinksAnalysis linksStructure,
LinksInfo thisNetworkGeom)
|
void |
jumpsRunToAsciiFile(double iniTime,
double finalTime,
double incrementalTime,
double[] IC,
java.io.OutputStreamWriter outputStream,
LinksAnalysis linksStructure,
LinksInfo thisNetworkGeom)
Writes (in ascii format) to a specified file the values of the function described by differential equations in the the intermidia steps requested to go from the Initial to the Final time. |
void |
jumpsRunToAsciiFileTabs(double iniTime,
double finalTime,
double incrementalTime,
double[] IC,
java.io.OutputStreamWriter outputStream,
LinksAnalysis linksStructure,
LinksInfo thisNetworkGeom)
Writes (in ascii format) to a specified file the values of the function described by differential equations in the the intermidia steps requested to go from the Initial to the Final time. |
void |
jumpsRunToFile(double iniTime,
double finalTime,
double incrementalTime,
double[] IC,
java.io.DataOutputStream outputStream)
Writes (in binary format) to a specified file the values of the function described by differential equations in the the intermidia steps requested to go from the Initial to the Final time |
void |
jumpsRunToIncompleteAsciiFile(double iniTime,
double finalTime,
double incrementalTime,
double[] IC,
java.io.OutputStreamWriter outputStream,
LinksAnalysis linksStructure,
LinksInfo thisNetworkGeom)
Writes (in ascii format) to a specified file the values of the function described by differential equations in the the intermidia steps requested to go from the Initial to the Final time. |
void |
jumpsRunToScreen(double iniTime,
double finalTime,
double incrementalTime,
double[] IC)
Writes to standard output the values of the function described by differential equations in the the intermidia steps requested to go from the Initial to the Final time |
static void |
main(java.lang.String[] args)
Tests for the class |
void |
setBasicTimeStep(double newBTS)
Sets the valuo of the algorithm time step |
double[][][] |
simpleRun(double iniTime,
double finalTime,
double[] IC)
Returns the values of the function described by differential equations in the the intermidia steps needed to go from the Initial to the Final time |
void |
simpleRunToFile(double iniTime,
double finalTime,
double[] IC,
java.io.DataOutputStream outputStream)
Writes (in binary format) to a specified file the values of the function described by differential equations in the the intermidia steps needed to go from the Initial to the Final time |
void |
simpleRunToScreen(double iniTime,
double finalTime,
double[] IC)
Writes to standard output the values of the function described by differential equations in the the intermidia steps needed to go from the Initial to the Final time |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public double[] finalCond
| Constructor Detail |
|---|
public RKF(BasicFunction fu,
double eps,
double basTs)
fu - The differential equation to solve described by a BasicFunctioneps - The value error allowed by the step forward algorithmbasTs - The step size| Method Detail |
|---|
public double[][][] simpleRun(double iniTime,
double finalTime,
double[] IC)
iniTime - The initial time of the solutionfinalTime - The final time of the solutionIC - The value of the initial condition
public double[][][] jumpsRun(double iniTime,
double finalTime,
double incrementalTime,
double[] IC)
iniTime - The initial time of the solutionfinalTime - The final time of the solutionincrementalTime - How often the values are desiredIC - The value of the initial condition
public void simpleRunToFile(double iniTime,
double finalTime,
double[] IC,
java.io.DataOutputStream outputStream)
throws java.io.IOException
iniTime - The initial time of the solutionfinalTime - The final time of the solutionIC - The value of the initial conditionoutputStream - The file to which the information will be writen
java.io.IOException - Captures errors while writing to the file
public void jumpsRunToFile(double iniTime,
double finalTime,
double incrementalTime,
double[] IC,
java.io.DataOutputStream outputStream)
throws java.io.IOException
iniTime - The initial time of the solutionfinalTime - The final time of the solutionincrementalTime - How often the values are desiredIC - The value of the initial conditionoutputStream - The file to which the information will be writen
java.io.IOException - Captures errors while writing to the file
public void jumpsRunToAsciiFile(double iniTime,
double finalTime,
double incrementalTime,
double[] IC,
java.io.OutputStreamWriter outputStream,
LinksAnalysis linksStructure,
LinksInfo thisNetworkGeom)
throws java.io.IOException
iniTime - The initial time of the solutionfinalTime - The final time of the solutionincrementalTime - How often the values are desiredIC - The value of the initial conditionoutputStream - The file to which the information will be writenlinksStructure - The structure describing the topology of the river networkthisNetworkGeom - The descripion the the hydraulic and geomorphic parameters
of the links in the network
java.io.IOException - Captures errors while writing to the file
public void jumpsRunToAsciiFileTabs(double iniTime,
double finalTime,
double incrementalTime,
double[] IC,
java.io.OutputStreamWriter outputStream,
LinksAnalysis linksStructure,
LinksInfo thisNetworkGeom)
throws java.io.IOException
iniTime - The initial time of the solutionfinalTime - The final time of the solutionincrementalTime - How often the values are desiredIC - The value of the initial conditionoutputStream - The file to which the information will be writenlinksStructure - The structure describing the topology of the river networkthisNetworkGeom - The descripion the the hydraulic and geomorphic parameters
of the links in the network
java.io.IOException - Captures errors while writing to the file
public void jumpsRunCompleteToAsciiFile(double iniTime,
double finalTime,
double incrementalTime,
double[] IC,
java.io.OutputStreamWriter outputStream,
LinksAnalysis linksStructure,
LinksInfo thisNetworkGeom,
java.io.OutputStreamWriter outputStream1)
throws java.io.IOException
iniTime - The initial time of the solutionfinalTime - The final time of the solutionincrementalTime - How often the values are desiredIC - The value of the initial conditionoutputStream - The file to which the information will be writenlinksStructure - The structure describing the topology of the river networkthisNetworkGeom - The descripion the the hydraulic and geomorphic parameters
of the links in the network
java.io.IOException - Captures errors while writing to the file
public void jumpsRunToIncompleteAsciiFile(double iniTime,
double finalTime,
double incrementalTime,
double[] IC,
java.io.OutputStreamWriter outputStream,
LinksAnalysis linksStructure,
LinksInfo thisNetworkGeom)
throws java.io.IOException
iniTime - The initial time of the solutionfinalTime - The final time of the solutionincrementalTime - How often the values are desiredIC - The value of the initial conditionoutputStream - The file to which the information will be writenlinksStructure - The structure describing the topology of the river networkthisNetworkGeom - The descripion the the hydraulic and geomorphic parameters
of the links in the network
java.io.IOException - Captures errors while writing to the file
public void simpleRunToScreen(double iniTime,
double finalTime,
double[] IC)
iniTime - The initial time of the solutionfinalTime - The final time of the solutionIC - The value of the initial conditionoutputStream - The file to which the information will be writen
java.io.IOException - Captures errors while writing to the file
public void jumpsRunToScreen(double iniTime,
double finalTime,
double incrementalTime,
double[] IC)
iniTime - The initial time of the solutionfinalTime - The final time of the solutionincrementalTime - How often the values are desiredIC - The value of the initial conditionoutputStream - The file to which the information will be writen
java.io.IOException - Captures errors while writing to the file
public void jumpsRunToAsciiFile_luciana(double iniTime,
double finalTime,
double incrementalTime,
double[] IC,
java.io.OutputStreamWriter outputStream,
LinksAnalysis linksStructure,
LinksInfo thisNetworkGeom)
throws java.io.IOException
java.io.IOExceptionpublic void setBasicTimeStep(double newBTS)
newBTS - The time step to assignpublic double[] getMaximumAchieved()
newBTS - The time step to assignpublic static void main(java.lang.String[] args)
args - the command line arguments
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
CUENCAS was initially developed by Ricardo Mantilla at the University of Colorado under the supervision of Dr. Vijay K. Gupta. We wish to recognize the support from the National Science Fundation.