ACRUSalinity.Processes.ReservoirSaltBudget
Class PSaltStacking

java.lang.Object
  extended byACRU.Components.CNode
      extended byACRU.Processes.PProcess
          extended byACRUSalinity.Processes.ReservoirSaltBudget.PSaltStacking

public class PSaltStacking
extends ACRU.Processes.PProcess

This class determines current reservoir storage salinity and outflow salinity based on the two cell plug-flow (salt stacking) model as used by Herold (1980)

Author:
Aynom Teweldebrhan

Field Summary
(package private)  double inflow
           
(package private)  double inflowSalinity
           
(package private)  double outflow
           
(package private)  double outflowSalinity
           
protected  ACRU.Components.CDam reservoir
           
(package private)  double resSalinity
           
 
Fields inherited from class ACRU.Processes.PProcess
CURRENT_DATE, END_SIMULATION_DATE, initialised, START_SIMULATION_DATE
 
Fields inherited from class ACRU.Components.CNode
 
Constructor Summary
PSaltStacking()
           
PSaltStacking(ACRU.Components.CComponent component)
           
PSaltStacking(ACRU.Components.CDam dam)
           
 
Method Summary
 double calcResSalinity(double inflowWater, double salinity, double outflowWater)
           
 void flowSalt()
           
 double getOutflowSalinity()
           
 void runProcess()
          This is a general method used to "run" every process.
private  void setRequiredData()
           
 
Methods inherited from class ACRU.Processes.PProcess
initialise, isInitialised, setCurrentDate, setEndDate, setStartDate, toString
 
Methods inherited from class ACRU.Components.CNode
getNext, getNext, getNext, getNext, getNextCount, getNextCount, getNexts, getNexts, getTypeOfNexts, getTypeOfNexts, setNext, setNext, setNext, setNext, setNext, setNexts, setNexts, setNexts
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

reservoir

protected ACRU.Components.CDam reservoir

inflow

double inflow

outflow

double outflow

inflowSalinity

double inflowSalinity

resSalinity

double resSalinity

outflowSalinity

double outflowSalinity
Constructor Detail

PSaltStacking

public PSaltStacking()

PSaltStacking

public PSaltStacking(ACRU.Components.CDam dam)
              throws ACRU.Exceptions.EException

PSaltStacking

public PSaltStacking(ACRU.Components.CComponent component)
              throws ACRU.Exceptions.EIllegalComponentTypeException,
                     ACRU.Exceptions.EException
Method Detail

setRequiredData

private void setRequiredData()

runProcess

public void runProcess()
                throws java.lang.Exception,
                       ACRU.Exceptions.EException
Description copied from class: ACRU.Processes.PProcess
This is a general method used to "run" every process.

This method acts as an adaptor and usually calls other methods.

This abstract method must be implemented by all non-abstract subclasses of PProcess.

Throws:
ACRU.Exceptions.EException - EExceptions not dealt with internally.
java.lang.Exception - Exceptions not dealt with internally.

flowSalt

public void flowSalt()
              throws java.lang.Exception,
                     ACRU.Exceptions.EException
Throws:
java.lang.Exception
ACRU.Exceptions.EException

calcResSalinity

public double calcResSalinity(double inflowWater,
                              double salinity,
                              double outflowWater)
                       throws java.lang.Exception
Throws:
java.lang.Exception

getOutflowSalinity

public double getOutflowSalinity()


Hosted by www.Geocities.ws

1