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
734492ef
Commit
734492ef
authored
Jun 11, 2020
by
刘乐
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1, 水力模型修复
parent
2c6877e8
Hide whitespace changes
Inline
Side-by-side
Showing
10 changed files
with
33 additions
and
23 deletions
+33
-23
EPNAET2.vcxproj
EPNAET2/EPNAET2.vcxproj
+8
-2
main.cpp
pandaAnalysis/main.cpp
+3
-1
pandaAnalysis.vcxproj.filters
pandaAnalysis/pandaAnalysis.vcxproj.filters
+3
-3
CivHydrCalcMiddle.cpp
pandaHydrCalcMiddle/CivHydrCalcMiddle.cpp
+0
-1
CivHydrCalcMiddle.h
pandaHydrCalcMiddle/CivHydrCalcMiddle.h
+3
-2
pandaHydrCalcMiddle.vcxproj.filters
pandaHydrCalcMiddle/pandaHydrCalcMiddle.vcxproj.filters
+6
-5
App.config
pandaHydrDemo/App.config
+3
-4
Program.cs
pandaHydrDemo/Program.cs
+4
-3
pandaHydrDemo.csproj
pandaHydrDemo/pandaHydrDemo.csproj
+3
-2
水力模型产品规划V1.0.xmind
建模文档/水力模型产品规划V1.0.xmind
+0
-0
No files found.
EPNAET2/EPNAET2.vcxproj
View file @
734492ef
...
...
@@ -33,7 +33,7 @@
<CharacterSet>
Unicode
</CharacterSet>
</PropertyGroup>
<PropertyGroup
Condition=
"'$(Configuration)|$(Platform)'=='Release|Win32'"
Label=
"Configuration"
>
<ConfigurationType>
Application
</ConfigurationType>
<ConfigurationType>
DynamicLibrary
</ConfigurationType>
<UseDebugLibraries>
false
</UseDebugLibraries>
<PlatformToolset>
v142
</PlatformToolset>
<WholeProgramOptimization>
true
</WholeProgramOptimization>
...
...
@@ -75,6 +75,7 @@
</PropertyGroup>
<PropertyGroup
Condition=
"'$(Configuration)|$(Platform)'=='Release|Win32'"
>
<LinkIncremental>
false
</LinkIncremental>
<OutDir>
..\..\hModelProgram\Program\
</OutDir>
</PropertyGroup>
<PropertyGroup
Condition=
"'$(Configuration)|$(Platform)'=='Debug|x64'"
>
<LinkIncremental>
true
</LinkIncremental>
...
...
@@ -102,7 +103,7 @@
<FunctionLevelLinking>
true
</FunctionLevelLinking>
<IntrinsicFunctions>
true
</IntrinsicFunctions>
<SDLCheck>
true
</SDLCheck>
<PreprocessorDefinitions>
WIN32;NDEBUG;_CONSOLE;%(PreprocessorDefinitions)
</PreprocessorDefinitions>
<PreprocessorDefinitions>
WIN32;NDEBUG;_CONSOLE;
_CRT_SECURE_NO_WARNINGS;
%(PreprocessorDefinitions)
</PreprocessorDefinitions>
<ConformanceMode>
true
</ConformanceMode>
</ClCompile>
<Link>
...
...
@@ -110,7 +111,12 @@
<EnableCOMDATFolding>
true
</EnableCOMDATFolding>
<OptimizeReferences>
true
</OptimizeReferences>
<GenerateDebugInformation>
true
</GenerateDebugInformation>
<ImportLibrary>
$(OutDir)..\lib\$(TargetName).lib
</ImportLibrary>
</Link>
<PostBuildEvent>
<Command>
copy Epanet2Out.h $(OutDir)..\include /y
copy epanet2.h $(OutDir)..\include /y
</Command>
</PostBuildEvent>
</ItemDefinitionGroup>
<ItemDefinitionGroup
Condition=
"'$(Configuration)|$(Platform)'=='Debug|x64'"
>
<ClCompile>
...
...
pandaAnalysis/main.cpp
View file @
734492ef
...
...
@@ -17,7 +17,8 @@ int main(int argc, char* argv[])
strcpy_s
(
outBinFile
,
"test.bin"
);
// calc->exportInp(fileName);
// calc->s
imulation(fileName, rptR, outBinFile);
calc
->
hydrS
imulation
(
fileName
,
rptR
,
outBinFile
);
delete
calc
;
return
0
;
}
\ No newline at end of file
pandaAnalysis/pandaAnalysis.vcxproj.filters
View file @
734492ef
...
...
@@ -15,9 +15,6 @@
</Filter>
</ItemGroup>
<ItemGroup>
<ClCompile
Include=
"main.cpp"
>
<Filter>
源文件
</Filter>
</ClCompile>
<ClCompile
Include=
"CivHydrCalc.cpp"
>
<Filter>
源文件
</Filter>
</ClCompile>
...
...
@@ -30,6 +27,9 @@
<ClCompile
Include=
"CivComponent.cpp"
>
<Filter>
源文件
</Filter>
</ClCompile>
<ClCompile
Include=
"main.cpp"
>
<Filter>
源文件
</Filter>
</ClCompile>
</ItemGroup>
<ItemGroup>
<ClInclude
Include=
"CivHydrCalc.h"
>
...
...
pandaHydrCalcMiddle/CivHydrCalcMiddle.cpp
View file @
734492ef
...
...
@@ -21,7 +21,6 @@ namespace CivHydr {
return
hyDrCompute
();
else
if
(
flag
==
"QUALITY"
)
return
qualityCompute
();
return
false
;
}
...
...
pandaHydrCalcMiddle/CivHydrCalcMiddle.h
View file @
734492ef
...
...
@@ -31,10 +31,11 @@ namespace CivHydr {
Boolean
simulation
(
String
^
flag
);
Boolean
getInpFile
(
String
^
inpFile
);
/**
*@brief 设置相关文件名
*/
void
setInpFile
(
String
^
inpFileName
);
void
setReportFile
(
String
^
rptFile
);
void
setOutBinFile
(
String
^
outBinFile
);
private
:
...
...
pandaHydrCalcMiddle/pandaHydrCalcMiddle.vcxproj.filters
View file @
734492ef
...
...
@@ -14,14 +14,14 @@
<Extensions>
rc;ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe;resx;tiff;tif;png;wav;mfcribbon-ms
</Extensions>
</Filter>
</ItemGroup>
<ItemGroup>
<ClInclude
Include=
"CivHydrCalcMiddle.h"
>
<Filter>
头文件
</Filter>
</ClInclude>
</ItemGroup>
<ItemGroup>
<ClCompile
Include=
"CivHydrCalcMiddle.cpp"
>
<Filter>
源文件
</Filter>
</ClCompile>
</ItemGroup>
<ItemGroup>
<ClInclude
Include=
"CivHydrCalcMiddle.h"
>
<Filter>
头文件
</Filter>
</ClInclude>
</ItemGroup>
</Project>
\ No newline at end of file
pandaHydrDemo/App.config
View file @
734492ef
<?
xml
version
=
"1.0"
encoding
=
"utf-8"
?>
<?
xml
version
=
"1.0"
encoding
=
"utf-8"
?>
<
configuration
>
<
startup
>
<
supportedRuntime
version
=
"v4.0"
sku
=
".NETFramework,Version=v4.
7.2"
/>
<
supportedRuntime
version
=
"v4.0"
sku
=
".NETFramework,Version=v4.
5.2"
/>
</
startup
>
</
configuration
>
\ No newline at end of file
</
configuration
>
pandaHydrDemo/Program.cs
View file @
734492ef
...
...
@@ -20,9 +20,10 @@ namespace pandaHydrDemo
calc
.
setOutBinFile
(
"test.bin"
);
String
flag
=
"HDY"
;
calc
.
getInpFile
(
"test.inp"
);
// Boolean sucess = calc.simulation(flag);
// Console.WriteLine(sucess);
// calc.getInpFile("test.inp");
Boolean
sucess
=
calc
.
simulation
(
flag
);
Console
.
WriteLine
(
sucess
);
Console
.
ReadKey
();
}
}
}
pandaHydrDemo/pandaHydrDemo.csproj
View file @
734492ef
...
...
@@ -8,10 +8,11 @@
<OutputType>
Exe
</OutputType>
<RootNamespace>
pandaHydrDemo
</RootNamespace>
<AssemblyName>
pandaHydrDemo
</AssemblyName>
<TargetFrameworkVersion>
v4.
7
.2
</TargetFrameworkVersion>
<TargetFrameworkVersion>
v4.
5
.2
</TargetFrameworkVersion>
<FileAlignment>
512
</FileAlignment>
<AutoGenerateBindingRedirects>
true
</AutoGenerateBindingRedirects>
<Deterministic>
true
</Deterministic>
<TargetFrameworkProfile
/>
</PropertyGroup>
<PropertyGroup
Condition=
" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' "
>
<PlatformTarget>
AnyCPU
</PlatformTarget>
...
...
@@ -26,7 +27,7 @@
<PropertyGroup
Condition=
" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' "
>
<PlatformTarget>
x64
</PlatformTarget>
<DebugType>
pdbonly
</DebugType>
<Optimize>
tru
e
</Optimize>
<Optimize>
fals
e
</Optimize>
<OutputPath>
..\..\hModelProgram\Program\
</OutputPath>
<DefineConstants>
TRACE
</DefineConstants>
<ErrorReport>
prompt
</ErrorReport>
...
...
建模文档/水力模型产品规划V1.0.xmind
View file @
734492ef
No preview for this file type
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