hydroScalingAPI.modules.rainfallRunoffModel.objects
Class NetworkEquations_FlowOnly

java.lang.Object
  extended by hydroScalingAPI.modules.rainfallRunoffModel.objects.NetworkEquations_FlowOnly
All Implemented Interfaces:
BasicFunction

public class NetworkEquations_FlowOnly
extends java.lang.Object
implements BasicFunction

This calss implements the set of non-linear ordinary differential equations used to simulate flows along the river network. The function is writen as a BasicFunction that is used by the RKF

Author:
John Mobley

Constructor Summary
NetworkEquations_FlowOnly(LinksAnalysis links, HillSlopesInfo hillinf, LinksInfo linkIn, int rt)
          Creates new NetworkEquations_FlowOnly
 
Method Summary
 double[] eval(double[] input)
          An empty but required evaluate method
 double[] eval(double[] input, double time)
          The acual evaluate method for this function.
 float[] eval(float[] input)
          An empty but required evaluate method
 float[] eval(float[] input, float time)
          An empty but required evaluate method
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NetworkEquations_FlowOnly

public NetworkEquations_FlowOnly(LinksAnalysis links,
                                 HillSlopesInfo hillinf,
                                 LinksInfo linkIn,
                                 int rt)
Creates new NetworkEquations_FlowOnly

Parameters:
links - The topologic structure of the river network
hillinf - The parameters manager for the system of hillsopes
linkIn - The parameters manager for links in the network
rt - The routing scheme. Available schemes are

0: Spatially variable Chezi coefficient

1: Spatially uniform Chezi coefficient

2: Constant Velocity

Method Detail

eval

public float[] eval(float[] input,
                    float time)
An empty but required evaluate method

Specified by:
eval in interface BasicFunction
Parameters:
input - The values used to evaluate the function
time - The time at which the function is evaluated
Returns:
The value of the function

eval

public float[] eval(float[] input)
An empty but required evaluate method

Specified by:
eval in interface BasicFunction
Parameters:
input - The values used to evaluate the function
Returns:
The value of the function

eval

public double[] eval(double[] input)
An empty but required evaluate method

Specified by:
eval in interface BasicFunction
Parameters:
input - The values used to evaluate the function
Returns:
The value of the function

eval

public double[] eval(double[] input,
                     double time)
The acual evaluate method for this function. The equation implemented here is dq/dt=sum(q_trib)-q Where q_trib is the flow for the incoming link

Specified by:
eval in interface BasicFunction
Parameters:
input - The values used to evaluate the function
time - The time at which the function is evaluated
Returns:
The value of the function


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.