修复管道清洗算法流量单位取值bug

This commit is contained in:
2026-02-06 17:46:56 +08:00
parent e4f864a28c
commit 63b31b46b9
2 changed files with 4 additions and 3 deletions

View File

@@ -345,7 +345,8 @@ def flushing_analysis(
# status['setting'] = 0.1036 * pow(valve_k, -3.105)
# cs.append(status)
# set_status(new_name,cs)
units = get_option(new_name)
options = get_option(new_name)
units = options["UNITS"]
# step 2. set the emitter coefficient of drainage node or add flush flow to the drainage node
emitter_demand = get_demand(new_name, drainage_node_ID)
cs = ChangeSet()