Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
H
hydraulicModel
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
刘乐
hydraulicModel
Commits
c391c435
Commit
c391c435
authored
Jun 03, 2020
by
刘乐
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1, 修改
parent
16d3bd67
Show whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
18 additions
and
22 deletions
+18
-22
EPNAET2.vcxproj
EPNAET2/EPNAET2.vcxproj
+1
-1
CivHydrCalc.cpp
pandaAnalysis/CivHydrCalc.cpp
+4
-8
CivHydrCalc.h
pandaAnalysis/CivHydrCalc.h
+7
-9
main.cpp
pandaAnalysis/main.cpp
+4
-2
pandaAnalysis.vcxproj
pandaAnalysis/pandaAnalysis.vcxproj
+1
-1
pandaDbManager.vcxproj
pandaDbManager/pandaDbManager.vcxproj
+1
-1
水力模型.docx
建模文档/水力模型.docx
+0
-0
No files found.
EPNAET2/EPNAET2.vcxproj
View file @
c391c435
...
...
@@ -82,7 +82,7 @@
</PropertyGroup>
<PropertyGroup
Condition=
"'$(Configuration)|$(Platform)'=='Release|x64'"
>
<LinkIncremental>
false
</LinkIncremental>
<OutDir>
..\..\h
ydraulicModel
\Program\
</OutDir>
<OutDir>
..\..\h
ModelProgram
\Program\
</OutDir>
</PropertyGroup>
<ItemDefinitionGroup
Condition=
"'$(Configuration)|$(Platform)'=='Debug|Win32'"
>
<ClCompile>
...
...
pandaAnalysis/CivHydrCalc.cpp
View file @
c391c435
...
...
@@ -2,6 +2,7 @@
#include "CivDbConnection.h"
#include "CivTypes.h"
#include "CivCommonUtils.h"
#include "Epanet2.h"
#include <iostream>
...
...
@@ -16,13 +17,13 @@ CivHydrCalc::~CivHydrCalc()
delete
mDbConn
;
}
bool
CivHydrCalc
::
simulation
(
c
onst
char
*
fileName
)
bool
CivHydrCalc
::
simulation
(
c
har
*
fileName
,
char
*
rptFile
,
char
*
binOutFile
,
void
(
*
pviewprog
)
(
char
*
)
)
{
int
result
=
ENepanet
(
fileName
,
rptFile
,
binOutFile
,
pviewprog
);
return
false
;
}
bool
CivHydrCalc
::
exportInp
(
c
onst
c
har
*
fileName
)
bool
CivHydrCalc
::
exportInp
(
char
*
fileName
)
{
//1 ,获取管网组件
if
(
!
mDbConn
)
...
...
@@ -90,11 +91,6 @@ QUALITY AGE
return
true
;
}
bool
CivHydrCalc
::
importInp
(
const
char
*
fileName
)
{
}
void
CivHydrCalc
::
assemble
(
const
std
::
string
&
table
,
CivInp
&
inp
)
{
std
::
string
utf8Table
=
CivCommonUtils
::
string_To_UTF8
(
table
);
...
...
pandaAnalysis/CivHydrCalc.h
View file @
c391c435
...
...
@@ -14,19 +14,17 @@ public:
/**
*@brief 水力模拟计算
*@inpFile:inp文件
*@rptFile: 输出文件
*@binOutFile: 二进制输出文件
*@pviewprog: 回调函数
*/
bool
simulation
(
const
char
*
fileName
);
/**
*@brief 导出inp文件
*/
bool
exportInp
(
const
char
*
fileName
);
bool
simulation
(
char
*
inpFile
,
char
*
rptFile
,
char
*
binOutFile
,
void
(
*
pviewprog
)
(
char
*
));
/**
*@brief inp文件导入
*@fileName 文件名
*@brief 导出inp文件
*/
bool
importInp
(
const
char
*
fileName
);
bool
exportInp
(
char
*
fileName
);
private
:
/**
*@brief 解析表字段名,按顺序写入
...
...
pandaAnalysis/main.cpp
View file @
c391c435
...
...
@@ -5,10 +5,12 @@
int
main
(
int
argc
,
char
*
argv
[])
{
const
char
*
uri
=
"host=192.168.12.
50 port=5432 dbname=JinXianNew user=postgres password=lcf7704241
"
;
const
char
*
uri
=
"host=192.168.12.
7 port=5432 dbname=liuletext user=postgres password=admin
"
;
char
*
findUri
=
const_cast
<
char
*>
(
uri
);
CivHydrCalc
*
calc
=
new
CivHydrCalc
(
findUri
,
std
::
string
(
"ˮģ"
));
const
char
*
fileName
=
"test.inp"
;
char
fileName
[
10
];
const
char
*
file
=
"test.inp"
;
strcpy
(
fileName
,
file
);
calc
->
exportInp
(
fileName
);
calc
->
simulation
(
fileName
);
...
...
pandaAnalysis/pandaAnalysis.vcxproj
View file @
c391c435
...
...
@@ -82,7 +82,7 @@
</PropertyGroup>
<PropertyGroup
Condition=
"'$(Configuration)|$(Platform)'=='Release|x64'"
>
<LinkIncremental>
false
</LinkIncremental>
<OutDir>
..\..\h
ydraulicModel
\Program\
</OutDir>
<OutDir>
..\..\h
ModelProgram
\Program\
</OutDir>
<IncludePath>
$(OUTDIR)..\include;$(IncludePath)
</IncludePath>
</PropertyGroup>
<ItemDefinitionGroup
Condition=
"'$(Configuration)|$(Platform)'=='Debug|Win32'"
>
...
...
pandaDbManager/pandaDbManager.vcxproj
View file @
c391c435
...
...
@@ -81,7 +81,7 @@
</PropertyGroup>
<PropertyGroup
Condition=
"'$(Configuration)|$(Platform)'=='Release|x64'"
>
<LinkIncremental>
false
</LinkIncremental>
<OutDir>
..\..\h
ydraulicModel
\Program\
</OutDir>
<OutDir>
..\..\h
ModelProgram
\Program\
</OutDir>
<IncludePath>
$(IncludePath)
</IncludePath>
<LibraryPath>
$(LibraryPath)
</LibraryPath>
</PropertyGroup>
...
...
建模文档/水力模型.docx
0 → 100644
View file @
c391c435
File added
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment