From 1e300ae258f1e9da406fae18a556e7a0f2261226 Mon Sep 17 00:00:00 2001 From: "WQY\\qiong" Date: Thu, 2 Mar 2023 22:33:09 +0800 Subject: [PATCH] Add EPANET3 option table --- script/sql/create/23.options.sql | 39 ++++++++++++++++++++++++++++++++ script/sql/drop/23.options.sql | 2 ++ 2 files changed, 41 insertions(+) diff --git a/script/sql/create/23.options.sql b/script/sql/create/23.options.sql index 732cb40..1c86d66 100644 --- a/script/sql/create/23.options.sql +++ b/script/sql/create/23.options.sql @@ -36,3 +36,42 @@ insert into options (key, value) values , ('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') +; diff --git a/script/sql/drop/23.options.sql b/script/sql/drop/23.options.sql index 50ffe05..32311bb 100644 --- a/script/sql/drop/23.options.sql +++ b/script/sql/drop/23.options.sql @@ -1,3 +1,5 @@ -- [OPTIONS] +drop table if exists options_3; + drop table if exists options;