-- [OPTIONS]

-- TODO: constraint

create table options
(
  key   text primary key
, value text not null
);

insert into options (key, value) values
  ('UNITS', 'GPM')
, ('PRESSURE', 'PSI')
, ('HEADLOSS', 'H-W')
, ('QUALITY', 'NONE')
, ('UNBALANCED', 'STOP')
, ('PATTERN', '1')
, ('DEMAND MODEL', 'DDA')
, ('DEMAND MULTIPLIER', '1.0')
, ('EMITTER EXPONENT', '0.5')
, ('VISCOSITY', '1.0')
, ('DIFFUSIVITY', '1.0')
, ('SPECIFIC GRAVITY', '1.0')
, ('TRIALS', '40')
, ('ACCURACY', '0.001')
, ('HEADERROR', '0')
, ('FLOWCHANGE', '0')
, ('MINIMUM PRESSURE', '0')
, ('REQUIRED PRESSURE', '0.1')
, ('PRESSURE EXPONENT', '0.5')
, ('TOLERANCE', '0.01')
, ('HTOL', '0.0005')
, ('QTOL', '0.0001')
, ('RQTOL', '0.0000001')
, ('CHECKFREQ', '2')
, ('MAXCHECK', '10')
, ('DAMPLIMIT', '0')
;


create table options_3
(
  key   text primary key
, value text not null
);

insert into options_3 (key, value) values
  ('FLOW_UNITS', 'GPM')
, ('PRESSURE_UNITS', 'PSI')
, ('HEADLOSS_MODEL', 'H-W')
, ('SPECIFIC_GRAVITY', '1.0')
, ('SPECIFIC_VISCOSITY', '1.0')
, ('MAXIMUM_TRIALS', '100')
, ('HEAD_TOLERANCE', '0.0')
, ('FLOW_TOLERANCE', '0.0')
, ('FLOW_CHANGE_LIMIT', '0.0')
, ('RELATIVE_ACCURACY', '0.0')
, ('TIME_WEIGHT', '0.0')
, ('STEP_SIZING', 'FULL')
, ('IF_UNBALANCED', 'STOP')
, ('DEMAND_MODEL', 'FIXED')
, ('DEMAND_PATTERN', ' ')
, ('DEMAND_MULTIPLIER', '1.0')
, ('MINIMUM_PRESSURE', '0.0')
, ('SERVICE_PRESSURE', '0.0')
, ('PRESSURE_EXPONENT', '0.5')
, ('LEAKAGE_MODEL', 'NONE')
, ('LEAKAGE_COEFF1', '0.0')
, ('LEAKAGE_COEFF2', '0.0')
, ('EMITTER_EXPONENT', '0.5')
, ('QUALITY_MODEL', 'NONE')
, ('QUALITY_NAME', 'Chemical')
, ('QUALITY_UNITS', 'MG/L')
, ('TRACE_NODE', ' ')
, ('SPECIFIC_DIFFUSIVITY', '1.0')
, ('QUALITY_TOLERANCE', '0.01')
;
