Update server information
This commit is contained in:
109
inp/_temp.inp
Normal file
109
inp/_temp.inp
Normal file
@@ -0,0 +1,109 @@
|
|||||||
|
[TITLE]
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
[JUNCTIONS]
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
[RESERVOIRS]
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
[TANKS]
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
[PIPES]
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
[PUMPS]
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
[VALVES]
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
[DEMANDS]
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
[EMITTERS]
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
[STATUS]
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
[PATTERNS]
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
[CURVES]
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
[CONTROLS]
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
[ENERGY]
|
||||||
|
|
||||||
|
|
||||||
|
GLOBAL EFFICIENCY 0.7500
|
||||||
|
|
||||||
|
|
||||||
|
GLOBAL PRICE 0.0000
|
||||||
|
|
||||||
|
|
||||||
|
DEMAND CHARGE 0.0000
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
[QUALITY]
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
[SOURCES]
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
[MIXING]
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
40183
inp/beibei1130_temp.inp
Normal file
40183
inp/beibei1130_temp.inp
Normal file
File diff suppressed because it is too large
Load Diff
9
main.py
9
main.py
@@ -14,6 +14,7 @@ from tjnetwork import *
|
|||||||
import asyncio
|
import asyncio
|
||||||
import threading
|
import threading
|
||||||
from multiprocessing import Value
|
from multiprocessing import Value
|
||||||
|
from fastapi.middleware.cors import CORSMiddleware
|
||||||
|
|
||||||
JUNCTION = 0
|
JUNCTION = 0
|
||||||
RESERVOIR = 1
|
RESERVOIR = 1
|
||||||
@@ -36,6 +37,14 @@ if not os.path.exists(tmpDir):
|
|||||||
|
|
||||||
app = FastAPI()
|
app = FastAPI()
|
||||||
|
|
||||||
|
# 配置 CORS 中间件
|
||||||
|
app.add_middleware(
|
||||||
|
CORSMiddleware,
|
||||||
|
allow_origins=["*"], # 允许所有来源
|
||||||
|
allow_credentials=True, # 允许传递凭证(Cookie、HTTP 头等)
|
||||||
|
allow_methods=["*"], # 允许所有 HTTP 方法
|
||||||
|
allow_headers=["*"], # 允许所有 HTTP 头
|
||||||
|
)
|
||||||
# 定义一个共享变量
|
# 定义一个共享变量
|
||||||
lock_simulation = Value('i', 0)
|
lock_simulation = Value('i', 0)
|
||||||
|
|
||||||
|
|||||||
@@ -1,3 +1,3 @@
|
|||||||
d:
|
C:
|
||||||
cd "d:\postgresql14\bin"
|
cd "C:\pg-14.7\bin"
|
||||||
pg_ctl -D ../data -l logfile start
|
pg_ctl -D ../data -l logfile start
|
||||||
@@ -1,3 +1,3 @@
|
|||||||
f:
|
REM f:
|
||||||
cd "f:\DEV\GitHub\TJWaterServer"
|
REM cd "f:\DEV\GitHub\TJWaterServer"
|
||||||
uvicorn main:app --host 0.0.0.0 --port 8000 --reload
|
uvicorn main:app --host 0.0.0.0 --port 80 --reload
|
||||||
|
|||||||
BIN
temp/MD-2.db.out
Normal file
BIN
temp/MD-2.db.out
Normal file
Binary file not shown.
BIN
temp/beibei_0419.db.out
Normal file
BIN
temp/beibei_0419.db.out
Normal file
Binary file not shown.
BIN
temp/fengxian_allscale.db.out
Normal file
BIN
temp/fengxian_allscale.db.out
Normal file
Binary file not shown.
BIN
temp/fengxian_cloud.db.out
Normal file
BIN
temp/fengxian_cloud.db.out
Normal file
Binary file not shown.
Reference in New Issue
Block a user