Notes
for Homework Problem 8
See DevsBook Presentation
#10 for background on this problem.
The files in Reservoir.zip
consist of the following:
1. DEVS large step model:
reservoirSimple: the basic DEVS large step model
reservoirChgInp: reservoirSimple with ability to handle change of input
reservoirHeight: reservoirSimple with ability to handle change of
height
reservSys: pipeline of any one of the above
2. Numerical integration
approach to Reservoir
EulerInt: Euler integrator
overFlowFn: instantaneous functions for reservoir input and output
reservEuler: reservoir composed of EulerInt and OverFlowFn
reservSysEuler: pipeline with reservEuler components
3. Quantized Integration approach:
oneDintResid: quantized integrator (using residual approach)
overFlowFnSav: overFlowFn with reduced message output generation
reservQuant: reservoir composed of oneDintResid and OverFlowFn(Sav)
reservSysQuant: pipeline with reservQuant components
To make these work:
a) you need to have class
realDevs
b) you need to change the
inheritance of the atomic models to extend realDevs
c) you need to change the
package line in oneDintResid to be the same as the one you place your other
files in.
d)
you need to comment out the line that imports the package quantization