# RiverWare_Model 7.0.2 Patch
# Created 15:39 January 30, 2017
# CADSWES, University of Colorado at Boulder, http://cadswes.colorado.edu/
#
# The catalog command is parsed by the RiverSMART
# RiverWare model plugin:
# - It must appear in the first 100 lines of the file.
# - Lines up to and including it must not exceed 4K bytes.
# - Its name must not change.
Catalog {\
\
\
\
\
\
\
\
\
\
\
\
\
} # End Catalog
ModelSimObjCount 1
ModelAccountCount 0
ModelSupplyCount 0
ModelExchangeCount 0
DST 0
$ws.Model.FileInfo saveInfo 1 {philw} {01-30-2017 15:39:44} {RiverWare 7.0.2}
$ws.Model.FileInfo comment {}
SaveOutputs 1
SaveExtPrecision 0
FlagEncoding 3
BaselineModel 0
ModelLockSet 0
ObjectListWidth 256
WsObjListOrderMode SORT_BY_NAME
LockedIcons 0
SelWindowIcon {RwIconStandard}
WorkspaceSize 6450 6450
AccountingSize 6450 6450
GeospatialSize 13636 26778
DisplayProperties 0
EpochBeginYear 1800
OverrideDefaultPlotAxesForVertDist 0
CurrCanvasType SIMULATION
InitCanvasSpec SIMULATION {\
\
\
\
}
InitCanvasSpec ACCOUNTING {\
\
\
\
}
InitCanvasSpec GEOSPATIAL {\
\
\
\
}
WaterYearStartMonthIndex 9 YearNamedFromEnd
SlotGroupsEnabled 1
SlotDlgPrefs {\
\
\
\
\
}
$ws.runInfo pauseAtDate {01-02-2017 00:00:00}
$ws.runInfo pauseAtPriority 2
$ws.runInfo setDescription {Model Run}
$ws.runInfo runParam {01-01-2017 00:00:00} {01-23-2017 00:00:00} 1 DAY
$ws.runInfo setType 5
$ws.runInfo setResumedRun 0 {01-02-2017 00:00:00}
$ws.runInfo typeOfMostRecentRun 5
$ws.runInfo setActiveCategories 1 0
$ws.runInfo setInlineCategories 1 0
$ws.runInfo setMaxSimIterations 20
$ws.runInfo setMaxAcctIterations 20
$ws.runInfo setSeriesExtensionIncrement 1
$ws.runInfo setWarnOutOfBounds 0
$ws.multiRunInfo setDescription {Model Run}
$ws.multiRunInfo runParam {05-15-1996 00:00:00} {05-17-1996 00:00:00} 1 DAY
$ws.multiRunInfo setType 3
$ws.multiRunInfo setResumedRun 0 {05-16-1996 00:00:00}
$ws.multiRunInfo setActiveCategories 1 0
$ws.multiRunInfo setInlineCategories 1 0
$ws.multiRunInfo setMaxSimIterations 20
$ws.multiRunInfo setMaxAcctIterations 20
$ws.multiRunInfo setSeriesExtensionIncrement 1
$ws.multiRunInfo setWarnOutOfBounds 0
# Section: Unit Manager
Section {Unit Manager}
set unitMgr "$ws.UnitMgr"
$unitMgr initScaledUnits 61
$unitMgr scaledUnit 0 {NONE} 1 {NONE}
$unitMgr scaledUnit 1 {Length} 1 {m}
$unitMgr scaledUnit 2 {Length} 1 {ft}
$unitMgr scaledUnit 3 {SqrtLength} 1 {m1/2}
$unitMgr scaledUnit 4 {Area} 1 {m2}
$unitMgr scaledUnit 5 {Area} 1 {acre}
$unitMgr scaledUnit 6 {Volume} 1 {m3}
$unitMgr scaledUnit 7 {Volume} 1 {acre-ft}
$unitMgr scaledUnit 8 {Volume} 1 {acre-feet}
$unitMgr scaledUnit 9 {Flow} 1 {cms}
$unitMgr scaledUnit 10 {Flow} 1 {cfs}
$unitMgr scaledUnit 11 {Flow} 1 {acre-ft/day}
$unitMgr scaledUnit 12 {FlowSquared} 1 {cms2}
$unitMgr scaledUnit 13 {FlowPerSqrtLength} 1 {cms/m1/2}
$unitMgr scaledUnit 14 {PerFlow} 1 {1/cms}
$unitMgr scaledUnit 15 {Power} 1 {MW}
$unitMgr scaledUnit 16 {PowerPerFlow} 1 {MW/cms}
$unitMgr scaledUnit 17 {Energy} 1 {MWH}
$unitMgr scaledUnit 18 {Time} 1 {hr}
$unitMgr scaledUnit 19 {Time} 1 {day}
$unitMgr scaledUnit 20 {TimeSquared} 1 {hour2}
$unitMgr scaledUnit 21 {Mass} 1 {g}
$unitMgr scaledUnit 22 {Mass} 1 {tons}
$unitMgr scaledUnit 23 {Heat} 1 {J}
$unitMgr scaledUnit 24 {EnergyFlux} 1 {J/m2sec}
$unitMgr scaledUnit 25 {MassFlux} 1 {g/m2sec}
$unitMgr scaledUnit 26 {VolFlux} 1 {g/m3sec}
$unitMgr scaledUnit 27 {Concentration} 1 {g/m3}
$unitMgr scaledUnit 28 {Concentration} 1 {lb/ft3}
$unitMgr scaledUnit 29 {AreaPerTime} 1 {m2/s}
$unitMgr scaledUnit 30 {PerTime} 1 {1/sec}
$unitMgr scaledUnit 31 {Temperature} 1 {C}
$unitMgr scaledUnit 32 {LengthPerTemperature_F} 1 {m/F}
$unitMgr scaledUnit 33 {TemperatureInFahren} 1 {F}
$unitMgr scaledUnit 34 {SpecificHeat} 1 {J/gC}
$unitMgr scaledUnit 35 {Velocity} 1 {m/s}
$unitMgr scaledUnit 36 {VelocityPerTemperature_F} 1 {m/s-F}
$unitMgr scaledUnit 37 {Density} 1 {kg/m3_dens}
$unitMgr scaledUnit 38 {PowerCost} 1 {$/MWh}
$unitMgr scaledUnit 39 {Value} 1 {$}
$unitMgr scaledUnit 40 {ValuePerFlow} 1 {$/cms}
$unitMgr scaledUnit 41 {ValuePerVolume} 1 {$/m3}
$unitMgr scaledUnit 42 {LengthPerVolume} 1 {m/m3}
$unitMgr scaledUnit 43 {LengthPerFlow} 1 {m/cms}
$unitMgr scaledUnit 44 {PerLength} 1 {1/m}
$unitMgr scaledUnit 45 {PerLengthTime} 1 {1/m-s}
$unitMgr scaledUnit 46 {FlowPerLength} 1 {cms/m}
$unitMgr scaledUnit 47 {VolumePerFlow} 1 {m3/cms}
$unitMgr scaledUnit 48 {energyPerLength} 1 {MWH/m}
$unitMgr scaledUnit 49 {powerPerLength} 1 {MW/m}
$unitMgr scaledUnit 50 {Fraction} 1 {decimal}
$unitMgr scaledUnit 51 {FractionPerFlow} 1 {decimal/cms}
$unitMgr scaledUnit 52 {FractionPerLength} 1 {decimal/m}
$unitMgr scaledUnit 53 {noDimension} 1 {m/m}
$unitMgr scaledUnit 54 {VolumeSquared} 1 {m6}
$unitMgr scaledUnit 55 {TimePerLength} 1 {s/m}
$unitMgr scaledUnit 56 {FlowVolume} 1 {m6/t}
$unitMgr scaledUnit 57 {FlowTime} 1 {cmshour}
$unitMgr scaledUnit 58 {FlowPerTime} 1 {cmss}
$unitMgr scaledUnit 59 {DateTime} 1 {FullDateTime}
$unitMgr scaledUnit 60 {DateTime} 1 {MonthAndDay}
$unitMgr end
# Section: Unit Schemes
"$ws.unitScheme" addUserScheme {\
\
\
\
\
\
\
\
\
\
\
\
\
\
\
\
\
\
\
\
\
\
\
\
\
\
\
\
\
\
\
\
\
\
\
\
\
\
\
\
\
\
\
\
\
\
\
\
\
\
\
\
\
\
\
\
\
\
\
\
\
\
\
\
\
\
\
\
\
\
\
\
\
\
\
\
\
\
\
\
\
\
\
\
\
\
\
\
\
\
\
\
\
\
\
\
\
\
\
\
\
\
\
\
\
\
\
\
\
\
\
\
\
\
\
\
\
\
\
\
\
\
\
\
\
\
\
\
\
\
\
\
\
\
\
\
\
\
\
\
\
\
\
\
\
\
\
\
\
\
\
\
\
\
\
\
\
\
\
\
\
\
\
\
\
\
\
\
\
\
\
\
\
\
\
\
\
\
\
\
\
\
\
\
\
\
\
\
\
\
\
\
\
\
\
\
\
\
\
\
\
\
}
"$ws.unitScheme" activeUnitScheme {Scheme 1}
"$ws.unitScheme" skipTransitionScheme true
CanvasConfig SIMULATION IconLabelLocation {Below}
CanvasConfig SIMULATION CanvasColor #ffffff
CanvasConfig SIMULATION IconLabelFont {MS Shell Dlg 2,8.25,-1,5,50,0,0,0,0,0}
CanvasConfig SIMULATION IconLabelFontColor #000000
CanvasConfig ACCOUNTING IconLabelLocation {Below}
CanvasConfig ACCOUNTING CanvasColor #ffffff
CanvasConfig ACCOUNTING IconLabelFont {MS Shell Dlg 2,8.25,-1,5,50,0,0,0,0,0}
CanvasConfig ACCOUNTING IconLabelFontColor #000000
# Section: DMI (part one)
set mgr "$ws.dmiMgr"
"$mgr" numInvRec 0
# Section: New Time Series Text Annotation Notes
set annoMgr "$ws.AnnoMgr"
# Section: Objects
Section {Objects}
set obj {RelinquishedCreditsEmergencyDroughtWater}
set o "$ws.RelinquishedCreditsEmergencyDroughtWater"
$ws SimObj $obj {DataObj} 125 61 {} 16 31 3128 1139
"$o" geospatialCoords 0 0 232977.143714 3489023.14824
"$o" objAttributes { \
}
"$o" objOrd wsList 5692
"$o" objOrd coordMgr 180
"$o" objSlotOrderType ListOrder_DEFAULT 0 Ascend
"$o" {TableSlot} {MaxESARelease}
set s "$o.MaxESARelease"
"$s" order 9
"$s" resize 1 1
"$s" setRowLabels {}
"$s" setColumnLabels {}
"$s" setMaximums NaN
"$s" setMinimums NaN
"$s" setUnits 10
"$s" setUsrFormat {%f}
"$s" setUsrPrecision {2}
"$s" row -1 283.140149073
"$o" {TableSlot} {ESAReleaseDates}
set s "$o.ESAReleaseDates"
"$s" order 8
"$s" resize 1 2
"$s" setRowLabels {EmergencyDroughtWaterUsePeriod}
"$s" setColumnLabels {StartDay} {EndDay}
"$s" setMaximums NaN NaN
"$s" setMinimums NaN NaN
"$s" setUnits 60 60
"$s" setUsrFormat {%f} {%f}
"$s" setUsrPrecision {2} {2}
"$s" row 0 126230400.609375 157766400.609375
"$o" {SeriesSlot} {MunicipalitiesAllocation}
set s "$o.MunicipalitiesAllocation"
"$s" order 7
"$s" cvg 2 0.0001
"$s" unit 8 {%f} 2
"$s" minMax NaN NaN
"$s" setCSeries {01-01-2017 00:00:00} 1 1 DAY -1 NaN 2
"$o" {SeriesSlot} {SupplementalESAAllocation}
set s "$o.SupplementalESAAllocation"
"$s" order 6
"$s" cvg 2 0.0001
"$s" unit 8 {%f} 2
"$s" minMax NaN NaN
"$s" setCSeries {01-01-2017 00:00:00} 1 1 DAY -1 NaN 2
"$o" {SeriesSlot} {MRGCDDroughtAllocation}
set s "$o.MRGCDDroughtAllocation"
"$s" order 5
"$s" cvg 2 0.0001
"$s" unit 8 {%f} 2
"$s" minMax NaN NaN
"$s" setCSeries {01-01-2017 00:00:00} 1 1 DAY -1 NaN 2
"$o" {SeriesSlot} {RelinquishedNMCredits}
set s "$o.RelinquishedNMCredits"
"$s" order 4
"$s" cvg 2 0.0001
"$s" unit 8 {%f} 0
"$s" minMax NaN NaN
"$s" setCSeries {01-01-2017 00:00:00} 1 1 DAY -1 NaN 2
"$o" {TableSlot} {ProportionsForNewEmergencyDroughtAllocationsByUser}
set s "$o.ProportionsForNewEmergencyDroughtAllocationsByUser"
"$s" order 7
"$s" resize 3 1
"$s" setRowLabels {MRGCDDrought} {SupplementalESA} {Municipalities}
"$s" setColumnLabels {Proportion}
"$s" setMaximums NaN
"$s" setMinimums NaN
"$s" setUnits 0
"$s" setUsrFormat {%f}
"$s" setUsrPrecision {0}
"$s" row -1 0.33
"$o" {TableSlot} {RelinquishedCreditsTriggers}
set s "$o.RelinquishedCreditsTriggers"
"$s" order 3
"$s" resize 1 3
"$s" setRowLabels {Trigger}
"$s" setColumnLabels {ThresholdForRelinquishment} {CreditAfterRelinquishment} {DateOfRelinquishment}
"$s" setMaximums NaN NaN NaN
"$s" setMinimums NaN NaN NaN
"$s" setUnits 7 7 60
"$s" setUsrFormat {%f} {%f} {%f}
"$s" setUsrPrecision {2} {2} {2}
"$s" row 0 123348183.75475208 86343728.628326461 126230400.609375
"$o" {ScalarSlot} {TriggerModelRelinquishedCredits}
set s "$o.TriggerModelRelinquishedCredits"
"$s" order 0
"$s" units 0 {%f} 2
"$s" value 0 {NONE}
"$o" {TableSlot} {PeriodToFillEmergencyDroughtWaterAllocations}
set s "$o.PeriodToFillEmergencyDroughtWaterAllocations"
"$s" order 10
"$s" resize 1 2
"$s" setRowLabels {Period}
"$s" setColumnLabels {StartDay} {EndDay}
"$s" setMaximums NaN NaN
"$s" setMinimums NaN NaN
"$s" setUnits 60 60
"$s" setUsrFormat {%f} {%f}
"$s" setUsrPrecision {2} {2}
"$s" row 0 131414400.609375 144547200.609375
"$o" {TableSlot} {MaxAnnualRelease}
set s "$o.MaxAnnualRelease"
"$s" order 11
"$s" resize 1 2
"$s" setRowLabels {Volume}
"$s" setColumnLabels {MRGCDDrought} {SupplementalESA}
"$s" setMaximums NaN NaN
"$s" setMinimums NaN NaN
"$s" setUnits 6 6
"$s" setUsrFormat {%f} {%f}
"$s" setUsrPrecision {2} {2}
"$s" row -1 123346950.273
"$o" {TableSlot} {RelinquishedNMCreditAllocations}
set s "$o.RelinquishedNMCreditAllocations"
"$s" order 12
"$s" resize 5 2
"$s" setRowLabels {MRGCDDrought} {SupplementalESA} {Municipalities} {MaxMRGCDDroughtAnnualRelease} {MaxSupplementalESAAnnualRelease}
"$s" setColumnLabels {Volume} {Proportion}
"$s" setMaximums NaN NaN
"$s" setMinimums NaN NaN
"$s" setUnits 8 0
"$s" setUsrFormat {%f} {%f}
"$s" setUsrPrecision {0} {4}
"$s" row 0 50572755.3394 0.3333
"$s" row 1 24052895.8322 0.3333
"$s" row 2 0 0.3333
"$s" row 3 123346950.273 NaN
"$s" row 4 123346950.273 NaN
"$o" {TableSlot} {RelinquishedCOCreditAllocations}
set s "$o.RelinquishedCOCreditAllocations"
"$s" order 13
"$s" resize 2 2
"$s" setRowLabels {RelinquishedWater} {MaxRelinquishedWaterAnnualRelease}
"$s" setColumnLabels {Volume} {Proportion}
"$s" setMaximums NaN NaN
"$s" setMinimums NaN NaN
"$s" setUnits 8 0
"$s" setUsrFormat {%f} {%f}
"$s" setUsrPrecision {0} {4}
"$s" row 0 1233481.83755 1
"$s" row 1 123346950.273 NaN
"$o" {ScalarSlot} {TriggerCOModelRelinquishedCredits}
set s "$o.TriggerCOModelRelinquishedCredits"
"$s" order 14
"$s" units 0 {%f} 2
"$s" value 1 {NONE}
"$o" {SeriesSlot} {RelinquishedCOCredits}
set s "$o.RelinquishedCOCredits"
"$s" order 15
"$s" cvg 2 0.0001
"$s" unit 8 {%f} 0
"$s" minMax NaN NaN
"$s" setCSeries {01-01-2017 00:00:00} 1 1 DAY -1 NaN 2
"$o" {SeriesSlot} {CORelinquishedWaterAllocation}
set s "$o.CORelinquishedWaterAllocation"
"$s" order 16
"$s" cvg 2 0.0001
"$s" unit 8 {%f} 2
"$s" minMax NaN NaN
"$s" setCSeries {01-01-2017 00:00:00} 1 1 DAY -1 NaN 2
"$o" {TableSlot} {RelinquishedCOCreditsTriggers}
set s "$o.RelinquishedCOCreditsTriggers"
"$s" order 17
"$s" resize 1 3
"$s" setRowLabels {Trigger}
"$s" setColumnLabels {ThresholdForRelinquishment} {CreditAfterRelinquishment} {DateOfRelinquishment}
"$s" setMaximums NaN NaN NaN
"$s" setMinimums NaN NaN NaN
"$s" setUnits 7 7 60
"$s" setUsrFormat {%f} {%f} {%f}
"$s" setUsrPrecision {2} {2} {2}
"$s" row 0 123348.18375475208 61674.091877376042 126230400.609375
"$o" {SeriesSlot} {COCreditStorage}
set s "$o.COCreditStorage"
"$s" order 18
"$s" cvg 2 0.0001
"$s" unit 6 {%f} 2
"$s" minMax NaN NaN
"$s" setCSeries {01-01-2017 00:00:00} 1 1 DAY -1 NaN 2
"$o" hideSlots 0 hideOff hideEmptyOff
# Section: Objects/Snapshots
# Section: Object Relationships
set obj {RelinquishedCreditsEmergencyDroughtWater}
set o "$ws.RelinquishedCreditsEmergencyDroughtWater"
# Section: Workspace Ornaments
Section {Workspace Ornaments}
Section {Links}
# Section: Links
# Section: Link Groups
$ws LinkGroup {Default} {linkDisplayInfo Sty:Solid Vis:1 Wid:0 Color:0 Pri:0 Ena:1}
$ws LinkGroup {Main Channel Links} {linkDisplayInfo Sty:Solid Vis:1 Wid:0 Color:0 Pri:0 Ena:1}
# Section: SimObj Groups
# Section: Multiple Run Management
Section {Multiple Run Management}
$ws.mrm format 2
$ws.mrm iterRplSet {RULESET\
NAME "Iterative MRM Rules Set";\
AGENDA_ORDER ASCENDING;\
DESCRIPTION "";\
PRECISION 8;\
BEGIN\
\
END\
}
# Section: Subbasin
Section {Subbasins}
# Section: Sim Analysis Info
Section {Sim Analysis Info}
$ws.DispatchInfo displayedObjects
$ws.DispatchInfo hiddenObjects
$ws.DispatchInfo axisOption {1}
$ws.DispatchInfo updateOption {1}
$ws.DispatchInfo showObjIcons {1}
$ws.DispatchInfo priorityColors
# Section: Optimization Analysis Info
Section {Optimization Analysis Info}
$ws.OptAnalysisInfo optDisplayedObjects
$ws.OptAnalysisInfo optHiddenObjects
$ws.OptAnalysisInfo optAxisOption {1}
$ws.OptAnalysisInfo optUpdateOption {1}
$ws.OptAnalysisInfo showObjIcons {1}
$ws.OptAnalysisInfo optPriorityColors
# Section: Scenario Manager
Section {Scenario Manager}
$ws.ScenarioBaseline baselineComments {}
# Section: RPL Expression Slot Manager
Section {RPL Expression Slot Manager}
set resm "$ws.RplExprSlotMgr"
$resm collectNotes 0
$resm resmRplSet {RULESET\
NAME "Expression Slot Functions Set";\
AGENDA_ORDER ASCENDING;\
DESCRIPTION "";\
PRECISION 8;\
BEGIN\
\
END\
}
# Section: SnapShot Manager
Section {SnapShot Manager}
# Section: Output Device Manager
Section {Output Device Manager}
$ws collectRBSRunAnalysisInfo 1
$ws collectRPLPerformanceInfo 1
$ws RPLNumericComparisonTolerance 0
$ws RPLWhileExprMaxIterations 10000
# Section: Name Maps
set mgr "$ws.nameMapMgr"
"$mgr" format 2
"$mgr" end
# Section: Datasets
set mgr "$ws.datasetMgr"
"$mgr" format 1
"$mgr" end
# Section: DMI (part two)
set mgr "$ws.dmiMgr"
"$mgr" format 3
"$mgr" locked 0
"$mgr" showStatDlg 0
"$mgr" end
# Section: Diagnostic Object
Section {Diagnostic Settings}
cwDiag diagEnabled 1
cwDiag diagFile 0 {}
cwDiag toWindow 0
cwDiag filterByLevel 1 2
cwDiag filterByRegex 0 {}
Diag optInfo 0
Diag Advanced 0
# Section: Global Functions Set Manager
Section {Gobal Functions Set Manager}
# Section: RuleSet Manager
Section {RuleSet Manager}
set rsm "$ws.RulesetMgr"
# Section: Optimization Set Manager
Section {Optimization Set Manager}
set mgr "$ws.optSetMgr"
# Section: Optimization
Section {Optimization}
$ws.RplBasedOptController setParameter {ADVANCE 2}
$ws.RplBasedOptController setParameter {SIMPLEX PGRADIENT 4}
$ws.RplBasedOptController setParameter {SIMPLEX TOLERANCE FEASIBILITY 1.000000e-009}
$ws.RplBasedOptController setParameter {SIMPLEX TOLERANCE MARKOWITZ 5.000000e-001}
$ws.RplBasedOptController setParameter {PREPROCESSING AGGREGATOR 10}
$ws.RplBasedOptController setParameter {PREPROCESSING DUAL -1}
$ws.RplBasedOptController setParameter {PREPROCESSING REDUCE 1}
$ws.RplBasedOptController setParameter {TIMELIMIT 3.000000e+003}
$ws.RplBasedOptController setParameter {SIMPLEX DISPLAY 0}
# Section: Simulation Controller
Section {Simulation Controller}
$ws.SimControl ShouldExecInitRules 1
# Section: Rule Controller
Section {Rule Controller}
$ws.RuleControl ShouldExecInitRules 1
# Section: Initialization Rules
Section {Initialization Rules}
$ws initRules {RULESET\
NAME "Initialization Rules Set";\
AGENDA_ORDER ASCENDING;\
DESCRIPTION "";\
PRECISION 8;\
BEGIN\
\
PREDEFINED_GROUP "Numeric / Math";\
DESCRIPTION "Predefined functions which perform generic numerical computations.";\
ACTIVE TRUE;\
BEGIN\
\
PREDEFINED_FUNCTION "SumTableColumn" ( SLOT arg1, NUMERIC arg2, NUMERIC arg3, NUMERIC arg4 )\
SCALE_UNITS "acre-feet";\
PRE_EXEC_DIAG FALSE;\
POST_EXEC_DIAG TRUE;\
;\
\
END;\
\
PREDEFINED_GROUP "Date / Time";\
DESCRIPTION "Predefined functions which access and manipulate date/times.";\
ACTIVE TRUE;\
BEGIN\
\
PREDEFINED_FUNCTION "CompletePartialDate" ( DATETIME arg1, DATETIME arg2 )\
SCALE_UNITS "";\
PRE_EXEC_DIAG FALSE;\
POST_EXEC_DIAG TRUE;\
;\
\
PREDEFINED_FUNCTION "OffsetDate" ( DATETIME arg1, NUMERIC arg2, STRING arg3 )\
SCALE_UNITS "";\
PRE_EXEC_DIAG FALSE;\
POST_EXEC_DIAG TRUE;\
;\
\
PREDEFINED_FUNCTION "PreviousDate" ( DATETIME arg1, DATETIME arg2 )\
SCALE_UNITS "";\
PRE_EXEC_DIAG FALSE;\
POST_EXEC_DIAG TRUE;\
;\
\
END;\
\
PREDEFINED_GROUP "Workspace";\
DESCRIPTION "Predefined functions which access information on slots and objects.";\
ACTIVE TRUE;\
BEGIN\
\
PREDEFINED_FUNCTION "HasFlag" ( SLOT arg1, DATETIME arg2, STRING arg3 )\
SCALE_UNITS "";\
PRE_EXEC_DIAG FALSE;\
POST_EXEC_DIAG TRUE;\
;\
\
PREDEFINED_FUNCTION "IsInput" ( SLOT arg1, DATETIME arg2 )\
SCALE_UNITS "";\
PRE_EXEC_DIAG FALSE;\
POST_EXEC_DIAG TRUE;\
;\
\
END;\
\
END\
}
# Section: Script Manager
Section {Script Manager}
# Script: Relinquished Credit Operations
$ws.rwScriptMgr rwScript {\
\
Relinquished Credit Operations\
\
307\
\
SetTableSlot\
\
IdentifierrwScriptActionEnabled\
ValueYes\
TypeBoolean\
DefaultValueTrue\
TrueStringYes\
FalseStringNo\
\
\
IdentifierrwScriptShowInMgr\
ValueYes\
TypeBoolean\
DefaultValueTrue\
TrueStringYes\
FalseStringNo\
\
\
IdentifierrwScriptDisplayText\
ValueSet Date of Relinquishment (default is January 1) \
TypeSingleLineText\
DefaultValue\
\
\
IdentifierSetTableSlotValueSlotSel\
\
Value\
RootSelection Version1 \\
RootSel_Name "Set Table Slot Value Action: Slot Selection" \\
RootSel_UserLabel "" \\
RootSel_UseUserLabel false \\
RootSel_RootType ROOT_SUBCLASS_SLOT \\
RoolSel_AllowSlots_Physical RoolSel_AllowSlots_Account RoolSel_AllowSlots_Supply RoolSel_AllowSlots_Exchange RoolSel_AllowSlots_ExchangeSply RoolSel_AllowSlots_Payback RoolSel_AllowSlots_PaybackSply \\
RootSel_SelMode SELMODE_SLOT_PHYSICAL \\
RootSel_SubBasin_WildAllowed false \\
RootSel_SubBasin_Wildcarded false \\
RootFilter FILTER_SIMOBJ_NAME_WILDCARD ROOT_SUBCLASS_SIMOBJ \\
RootFilter FILTER_SIMOBJ_HAS_ACCOUNT ROOT_SUBCLASS_SIMOBJ \\
RootFilt_Dat "Has Account" "Has Account" "" rf_OFF rf_HIDE rf_POS \\
RootFilter FILTER_SIMOBJ_IN_SUBBASIN ROOT_SUBCLASS_SIMOBJ \\
RootFilt_Dat "In SubBasin" "In SubBasin" "" rf_OFF rf_HIDE rf_POS \\
RootFilter FILTER_SIMOBJ_IN_CLUSTER ROOT_SUBCLASS_SIMOBJ \\
RootFilt_Dat "In Object Cluster" "In Object Cluster" "" rf_OFF rf_HIDE rf_POS \\
RootSel_SimObj_WildAllowed false \\
RootSel_SimObj_Wildcarded false \\
RootSel_SimObj_ExclAggObjElems false \\
RootFilter FILTER_EXCHANGE_NAME_WILDCARD ROOT_SUBCLASS_EXCHANGE \\
RootSel_Exch_WildAllowed false \\
RootSel_Exch_Wildcarded false \\
RootFilter FILTER_ACCOUNT_NAME_WILDCARD ROOT_SUBCLASS_ACCOUNT \\
RootFilter FILTER_ACCOUNT_WATER_TYPE ROOT_SUBCLASS_ACCOUNT \\
RootFilt_Dat "Water Type" "Water Type" "" rf_OFF rf_HIDE rf_POS \\
RootFilter FILTER_ACCOUNT_WATER_OWNER ROOT_SUBCLASS_ACCOUNT \\
RootFilt_Dat "Water Owner" "Water Owner" "" rf_OFF rf_HIDE rf_POS \\
RootFilter FILTER_ACCOUNT_JUNIOR_TO_DATE ROOT_SUBCLASS_ACCOUNT \\
RootFilt_Dat "Junior To" "Junior To" "" rf_OFF rf_HIDE rf_POS \\
RootFilter FILTER_ACCOUNT_SENIOR_TO_DATE ROOT_SUBCLASS_ACCOUNT \\
RootFilt_Dat "Senior To" "Senior To" "" rf_OFF rf_HIDE rf_POS \\
RootSel_Acct_WildAllowed false \\
RootSel_Acct_Wildcarded false \\
RootSel_InclStorageAccts true \\
RootSel_InclDiversionAccts true \\
RootSel_InclInstreamFlowAccts true \\
RootSel_InclPassThroughAccts true \\
RootFilter FILTER_PAYBACK_NAME_WILDCARD ROOT_SUBCLASS_PAYBACK \\
RootSel_Pback_WildAllowed false \\
RootSel_Pback_Wildcarded false \\
RootFilter FILTER_SUPPLY_NAME_WILDCARD ROOT_SUBCLASS_SUPPLY \\
RootFilter FILTER_SUPPLY_RELEASE_TYPE ROOT_SUBCLASS_ACCOUNT \\
RootFilt_Dat "Release Type" "Release Type" "" rf_OFF rf_HIDE rf_POS \\
RootFilter FILTER_SUPPLY_DESTINATION ROOT_SUBCLASS_ACCOUNT \\
RootFilt_Dat "Destination" "Destination" "" rf_OFF rf_HIDE rf_POS \\
RootFilter FILTER_SUPPLY_ROLE ROOT_SUBCLASS_ACCOUNT \\
RootFilt_Dat "Supply Role" "Role" "" rf_OFF rf_HIDE rf_POS \\
RootFilter FILTER_SUPPLY_ALLOWS_FLAG ROOT_SUBCLASS_SLOT \\
RootFilt_Dat "Allows Flag" "Allows Flag" "" rf_OFF rf_HIDE rf_POS \\
RootFilter FILTER_SUPPLY_HAS_DESCRIPT ROOT_SUBCLASS_SLOT \\
RootSel_Supply_WildAllowed false \\
RootSel_Supply_Wildcarded false \\
RootSel_Supply_ShowFromAccts true \\
RootSel_Supply_ShowToAccts false \\
RootSel_ShowSupplies_InOut true \\
RootSel_ShowSupplies_DivRet true \\
RootSel_ShowSupplies_Trans true \\
RootFilter FILTER_SLOT_NAME_WILDCARD ROOT_SUBCLASS_SLOT \\
RootFilter FILTER_SLOT_COL_LABEL_WILDCARD ROOT_SUBCLASS_SLOT \\
RootFilter FILTER_SLOT_UNIT_TYPE ROOT_SUBCLASS_SLOT \\
RootFilt_Dat "Slot Unit Type" "Unit Type" "" rf_OFF rf_HIDE rf_POS \\
RootFilter FILTER_SLOT_TYPE ROOT_SUBCLASS_SLOT \\
RootFilt_Dat "Slot Type" "Type" "" rf_OFF rf_HIDE rf_POS \\
RootFilter FILTER_SLOT_HAS_RPL_EXPR ROOT_SUBCLASS_SLOT \\
RootFilter FILTER_SLOT_TIMESTEP ROOT_SUBCLASS_SLOT \\
RootFilt_Dat "Timestep Size" "Timestep" "" rf_OFF rf_HIDE rf_POS \\
RootFilter FILTER_SLOT_ALLOWS_FLAG ROOT_SUBCLASS_SLOT \\
RootFilt_Dat "Allows Flag" "Allows Flag" "" rf_OFF rf_HIDE rf_POS \\
RootFilter FILTER_SLOT_ATTRIB ROOT_SUBCLASS_SLOT \\
RootFilt_Dat "Slot Attrib" "Attrib" "" rf_OFF rf_HIDE rf_POS \\
RootFilter FILTER_SLOT_HAS_DESCRIPT ROOT_SUBCLASS_SLOT \\
RootFilter FILTER_SLOT_USES_OPT_LIMITS ROOT_SUBCLASS_SLOT \\
RootSel_Slot_WildAllowed false \\
RootSel_Slot_Wildcarded false \\
RootSel_SlotTypeBits_InclMask 0 \\
RootSel_SlotTypeBits_ExclMask 0 \\
RootSel_AllowAggSeriesCols false \\
RootSel_AllowTableSeriesCols false \\
RootSel_AllowAggTableCols false \\
RootSel_ShowAggSeriesCols false \\
RootSel_ShowTableSeriesCols false \\
RootSel_ShowAggTableCols false \\
RootSel_RequiresSlotColRefs false \\
RootSel_SimObjClass "DataObj" \\
RootSel_SimObj "RelinquishedCreditsEmergencyDroughtWater" \\
RootSel_Slot "RelinquishedCreditsEmergencyDroughtWater.RelinquishedCreditsTriggers" \\
RootSel_End \\
\
\
TypeSelection\
\
\
IdentifierSetTableSlotValueRow\
ValueTrigger\
TypeSingleLineText\
DefaultValue\
\
\
IdentifierSetTableSlotValueColumn\
ValueDateOfRelinquishment\
TypeSingleLineText\
DefaultValue\
\
\
IdentifierSetTableSlotValueSlotValue\
ValueJanuary 1\
TypeSlotValue\
DefaultValueNaN\
SlotNameSettingIdSetTableSlotValueSlotSel\
SlotColSettingIdSetTableSlotValueColumn\
UnitTypeSettingId\
\
\
IdentifierSetTableSlotValueEditOption\
ValueYes: Editor\
TypeEnumeration\
DefaultValueNo\
OptionNo\
OptionYes: Editor\
OptionYes: Radio Buttons\
OptionYes: Slider\
\
\
IdentifierSetTableSlotValueMinEditValue\
Value0.000000000000\
TypeSlotValue\
DefaultValueNaN\
SlotNameSettingIdSetTableSlotValueSlotSel\
SlotColSettingId\
UnitTypeSettingId\
\
\
IdentifierSetTableSlotValueMaxEditValue\
Value0.000000000000\
TypeSlotValue\
DefaultValueNaN\
SlotNameSettingIdSetTableSlotValueSlotSel\
SlotColSettingId\
UnitTypeSettingId\
\
\
IdentifierSetTableSlotValueEncodeSlotName\
Value\
TypeSlotName\
DefaultValue\
\
\
\
SetTableSlot\
\
IdentifierrwScriptActionEnabled\
ValueYes\
TypeBoolean\
DefaultValueTrue\
TrueStringYes\
FalseStringNo\
\
\
IdentifierrwScriptShowInMgr\
ValueYes\
TypeBoolean\
DefaultValueTrue\
TrueStringYes\
FalseStringNo\
\
\
IdentifierrwScriptDisplayText\
\
Value\
Set CreditAfterRelinquishment value (default is 70,000 ac-ft)\
\
TypeSingleLineText\
DefaultValue\
\
\
IdentifierSetTableSlotValueSlotSel\
\
Value\
RootSelection Version1 \\
RootSel_Name "Set Table Slot Value Action: Slot Selection" \\
RootSel_UserLabel "" \\
RootSel_UseUserLabel false \\
RootSel_RootType ROOT_SUBCLASS_SLOT \\
RoolSel_AllowSlots_Physical RoolSel_AllowSlots_Account RoolSel_AllowSlots_Supply RoolSel_AllowSlots_Exchange RoolSel_AllowSlots_ExchangeSply RoolSel_AllowSlots_Payback RoolSel_AllowSlots_PaybackSply \\
RootSel_SelMode SELMODE_SLOT_PHYSICAL \\
RootSel_SubBasin_WildAllowed false \\
RootSel_SubBasin_Wildcarded false \\
RootFilter FILTER_SIMOBJ_NAME_WILDCARD ROOT_SUBCLASS_SIMOBJ \\
RootFilter FILTER_SIMOBJ_HAS_ACCOUNT ROOT_SUBCLASS_SIMOBJ \\
RootFilt_Dat "Has Account" "Has Account" "" rf_OFF rf_HIDE rf_POS \\
RootFilter FILTER_SIMOBJ_IN_SUBBASIN ROOT_SUBCLASS_SIMOBJ \\
RootFilt_Dat "In SubBasin" "In SubBasin" "" rf_OFF rf_HIDE rf_POS \\
RootFilter FILTER_SIMOBJ_IN_CLUSTER ROOT_SUBCLASS_SIMOBJ \\
RootFilt_Dat "In Object Cluster" "In Object Cluster" "" rf_OFF rf_HIDE rf_POS \\
RootSel_SimObj_WildAllowed false \\
RootSel_SimObj_Wildcarded false \\
RootSel_SimObj_ExclAggObjElems false \\
RootFilter FILTER_EXCHANGE_NAME_WILDCARD ROOT_SUBCLASS_EXCHANGE \\
RootSel_Exch_WildAllowed false \\
RootSel_Exch_Wildcarded false \\
RootFilter FILTER_ACCOUNT_NAME_WILDCARD ROOT_SUBCLASS_ACCOUNT \\
RootFilter FILTER_ACCOUNT_WATER_TYPE ROOT_SUBCLASS_ACCOUNT \\
RootFilt_Dat "Water Type" "Water Type" "" rf_OFF rf_HIDE rf_POS \\
RootFilter FILTER_ACCOUNT_WATER_OWNER ROOT_SUBCLASS_ACCOUNT \\
RootFilt_Dat "Water Owner" "Water Owner" "" rf_OFF rf_HIDE rf_POS \\
RootFilter FILTER_ACCOUNT_JUNIOR_TO_DATE ROOT_SUBCLASS_ACCOUNT \\
RootFilt_Dat "Junior To" "Junior To" "" rf_OFF rf_HIDE rf_POS \\
RootFilter FILTER_ACCOUNT_SENIOR_TO_DATE ROOT_SUBCLASS_ACCOUNT \\
RootFilt_Dat "Senior To" "Senior To" "" rf_OFF rf_HIDE rf_POS \\
RootSel_Acct_WildAllowed false \\
RootSel_Acct_Wildcarded false \\
RootSel_InclStorageAccts true \\
RootSel_InclDiversionAccts true \\
RootSel_InclInstreamFlowAccts true \\
RootSel_InclPassThroughAccts true \\
RootFilter FILTER_PAYBACK_NAME_WILDCARD ROOT_SUBCLASS_PAYBACK \\
RootSel_Pback_WildAllowed false \\
RootSel_Pback_Wildcarded false \\
RootFilter FILTER_SUPPLY_NAME_WILDCARD ROOT_SUBCLASS_SUPPLY \\
RootFilter FILTER_SUPPLY_RELEASE_TYPE ROOT_SUBCLASS_ACCOUNT \\
RootFilt_Dat "Release Type" "Release Type" "" rf_OFF rf_HIDE rf_POS \\
RootFilter FILTER_SUPPLY_DESTINATION ROOT_SUBCLASS_ACCOUNT \\
RootFilt_Dat "Destination" "Destination" "" rf_OFF rf_HIDE rf_POS \\
RootFilter FILTER_SUPPLY_ROLE ROOT_SUBCLASS_ACCOUNT \\
RootFilt_Dat "Supply Role" "Role" "" rf_OFF rf_HIDE rf_POS \\
RootFilter FILTER_SUPPLY_ALLOWS_FLAG ROOT_SUBCLASS_SLOT \\
RootFilt_Dat "Allows Flag" "Allows Flag" "" rf_OFF rf_HIDE rf_POS \\
RootFilter FILTER_SUPPLY_HAS_DESCRIPT ROOT_SUBCLASS_SLOT \\
RootSel_Supply_WildAllowed false \\
RootSel_Supply_Wildcarded false \\
RootSel_Supply_ShowFromAccts true \\
RootSel_Supply_ShowToAccts false \\
RootSel_ShowSupplies_InOut true \\
RootSel_ShowSupplies_DivRet true \\
RootSel_ShowSupplies_Trans true \\
RootFilter FILTER_SLOT_NAME_WILDCARD ROOT_SUBCLASS_SLOT \\
RootFilter FILTER_SLOT_COL_LABEL_WILDCARD ROOT_SUBCLASS_SLOT \\
RootFilter FILTER_SLOT_UNIT_TYPE ROOT_SUBCLASS_SLOT \\
RootFilt_Dat "Slot Unit Type" "Unit Type" "" rf_OFF rf_HIDE rf_POS \\
RootFilter FILTER_SLOT_TYPE ROOT_SUBCLASS_SLOT \\
RootFilt_Dat "Slot Type" "Type" "" rf_OFF rf_HIDE rf_POS \\
RootFilter FILTER_SLOT_HAS_RPL_EXPR ROOT_SUBCLASS_SLOT \\
RootFilter FILTER_SLOT_TIMESTEP ROOT_SUBCLASS_SLOT \\
RootFilt_Dat "Timestep Size" "Timestep" "" rf_OFF rf_HIDE rf_POS \\
RootFilter FILTER_SLOT_ALLOWS_FLAG ROOT_SUBCLASS_SLOT \\
RootFilt_Dat "Allows Flag" "Allows Flag" "" rf_OFF rf_HIDE rf_POS \\
RootFilter FILTER_SLOT_ATTRIB ROOT_SUBCLASS_SLOT \\
RootFilt_Dat "Slot Attrib" "Attrib" "" rf_OFF rf_HIDE rf_POS \\
RootFilter FILTER_SLOT_HAS_DESCRIPT ROOT_SUBCLASS_SLOT \\
RootFilter FILTER_SLOT_USES_OPT_LIMITS ROOT_SUBCLASS_SLOT \\
RootSel_Slot_WildAllowed false \\
RootSel_Slot_Wildcarded false \\
RootSel_SlotTypeBits_InclMask 0 \\
RootSel_SlotTypeBits_ExclMask 0 \\
RootSel_AllowAggSeriesCols false \\
RootSel_AllowTableSeriesCols false \\
RootSel_AllowAggTableCols false \\
RootSel_ShowAggSeriesCols false \\
RootSel_ShowTableSeriesCols false \\
RootSel_ShowAggTableCols false \\
RootSel_RequiresSlotColRefs false \\
RootSel_SimObjClass "DataObj" \\
RootSel_SimObj "RelinquishedCreditsEmergencyDroughtWater" \\
RootSel_Slot "RelinquishedCreditsEmergencyDroughtWater.RelinquishedCreditsTriggers" \\
RootSel_End \\
\
\
TypeSelection\
\
\
IdentifierSetTableSlotValueRow\
ValueTrigger\
TypeSingleLineText\
DefaultValue\
\
\
IdentifierSetTableSlotValueColumn\
ValueCreditAfterRelinquishment\
TypeSingleLineText\
DefaultValue\
\
\
IdentifierSetTableSlotValueSlotValue\
Value86343728.628326460719\
TypeSlotValue\
DefaultValueNaN\
SlotNameSettingIdSetTableSlotValueSlotSel\
SlotColSettingIdSetTableSlotValueColumn\
UnitTypeSettingId\
\
\
IdentifierSetTableSlotValueEditOption\
ValueYes: Editor\
TypeEnumeration\
DefaultValueNo\
OptionNo\
OptionYes: Editor\
OptionYes: Radio Buttons\
OptionYes: Slider\
\
\
IdentifierSetTableSlotValueMinEditValue\
Value0.000000000000\
TypeSlotValue\
DefaultValueNaN\
SlotNameSettingIdSetTableSlotValueSlotSel\
SlotColSettingId\
UnitTypeSettingId\
\
\
IdentifierSetTableSlotValueMaxEditValue\
Value0.000000000000\
TypeSlotValue\
DefaultValueNaN\
SlotNameSettingIdSetTableSlotValueSlotSel\
SlotColSettingId\
UnitTypeSettingId\
\
\
IdentifierSetTableSlotValueEncodeSlotName\
Value\
TypeSlotName\
DefaultValue\
\
\
\
}
# Section: Object Attribute Manager
Section {Object Attribute Manager}
# Section: Object Attribute Set
"$ws.objectAttribMgr" objectAttribSet { \
}
# Section: END (successful completion)
Section {Done}