ACRUSalinity.Processes.ReservoirSaltBudget
Class PSaltStacking
java.lang.Object
ACRU.Components.CNode
ACRU.Processes.PProcess
ACRUSalinity.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
| Fields inherited from class ACRU.Processes.PProcess |
CURRENT_DATE, END_SIMULATION_DATE, initialised, START_SIMULATION_DATE |
| Fields inherited from class ACRU.Components.CNode |
|
| 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 |
reservoir
protected ACRU.Components.CDam reservoir
inflow
double inflow
outflow
double outflow
inflowSalinity
double inflowSalinity
resSalinity
double resSalinity
outflowSalinity
double outflowSalinity
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
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()