CoastalME (Coastal Modelling Environment)
Simulates the long-term behaviour of complex coastlines
Loading...
Searching...
No Matches
configuration.cpp
Go to the documentation of this file.
1
12
13/* ==============================================================================================================================
14
15 This file is part of CoastalME, the Coastal Modelling Environment.
16
17 CoastalME is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 3 of the License, or (at your option) any later version.
18
19 This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
20
21 You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
22
23==============================================================================================================================*/
24#include "configuration.h"
25
26//===============================================================================================================================
28//===============================================================================================================================
33
34//===============================================================================================================================
36//===============================================================================================================================
40
41//===============================================================================================================================
43//===============================================================================================================================
45{
46 // Run Information
47 m_strRunName = "";
50
51 // Simulation timing
52 m_strStartDateTime = "00-00-00 01/01/2000";
53 m_strDuration = "365 days";
54 m_strTimestep = "1 day";
55 m_vecSaveTimes.clear();
56 m_nRandomSeed = 0;
58
59 // GIS Output
61 m_strSaveDigitsMode = "sequential";
62 m_vecRasterFiles.clear();
63 m_vecRasterFiles.push_back("usual");
65 m_bWorldFile = false;
66 m_bScaleValues = false;
68 m_vecVectorFiles.clear();
69 m_vecVectorFiles.push_back("all");
70 m_strVectorFormat = "ESRI Shapefile";
72 m_vecTimeSeriesFiles.push_back("all");
73
74 // Grid and Coastline
80 m_dMaxLocalSlope = 1.0;
82
83 // Layers and Files
84 m_nNumLayers = 1;
89 m_vecConsFineFiles.clear();
90 m_vecConsSandFiles.clear();
96
97 // Hydrology
98 m_nWavePropagationModel = 1; // CShore
99 m_dSeawaterDensity = 1029.0;
101 m_dFinalWaterLevel = 0.0;
102 m_bHasFinalWaterLevel = false;
106 m_dWavePeriod = 10.0;
109
110 // Sediment and Erosion
114 m_nBeachTransportAtEdges = 1; // open
115 m_nBeachErosionEquation = 0; // CERC
116 m_dFineMedianSize = 0.0;
117 m_dSandMedianSize = 0.0;
119 m_dSedimentDensity = 2650.0;
121 m_dFineErosivity = 1.0;
122 m_dSandErosivity = 0.7;
123 m_dCoarseErosivity = 0.3;
124 m_dTransportKLS = 0.4;
125 m_dKamphuis = 5.0;
126 m_dBermHeight = 0.25;
127
128 // Cliff parameters
129 m_bCliffCollapse = true;
131 m_dNotchOverhang = 0.5;
132 m_dNotchBase = 0.3;
134 m_dTalusWidth = 15.0;
135 m_dMinTalusLength = 10.0;
136 m_dMinTalusHeight = 0.5;
137
138 // Flood parameters
139 m_bFloodInput = false;
144
145 // Sediment input parameters
146 m_bSedimentInput = false;
150
151 // Physics and Geometry
153 m_dNormalSpacing = 0.0;
154 m_dRandomFactor = 0.25;
155 m_dNormalLength = 130.0;
156 m_dStartDepthRatio = 30.0;
157
158 // Profile and Output Options
159 m_bSaveProfileData = false;
160 m_vecProfileNumbers.clear();
161 m_vecProfileTimesteps.clear();
165
166 // Cliff Edge Processing
170 m_dCliffSlopeLimit = 0.3;
171}
double m_dCoarseMedianSize
string m_strSedimentInputLocation
double m_dMinTalusHeight
double m_dSedimentDensity
double m_dPlatformErosionResistance
bool m_bCoastPlatformErosion
double m_dSeawaterDensity
bool m_bCSVPerTimestepResults
double m_dNormalSpacing
double m_dCliffSlopeLimit
double m_dFinalWaterLevel
double m_dDeepWaterWaveHeight
string m_strVectorFormat
vector< string > m_vecConsCoarseFiles
string m_strSuspendedSedFile
CConfiguration()
Constructor.
string m_strStartDateTime
double m_dInitialWaterLevel
double m_dGravitationalAcceleration
bool m_bSaveParallelProfiles
double m_dSandErosivity
double m_dSandMedianSize
string m_strLandformFile
int m_nCoastlineSmoothingWindow
vector< string > m_vecUnconsSandFiles
int m_nWavePropagationModel
string m_strInterventionClassFile
vector< string > m_vecTimeSeriesFiles
double m_dDeepWaterWaveOrientation
string m_strOmitGridEdges
double m_dNotchOverhang
double m_dMinTalusLength
bool m_bBeachSedimentTransport
vector< string > m_vecRasterFiles
string m_strBasementDEMFile
~CConfiguration()
Destructor.
double m_dBeachSedimentPorosity
vector< string > m_vecConsSandFiles
string m_strSedimentInputType
vector< string > m_vecVectorFiles
string m_strFloodCoastline
int m_nCliffEdgePolynomialOrder
vector< string > m_vecUnconsFineFiles
bool m_bOutputErosionPotential
string m_strFloodInputLocation
vector< double > m_vecSliceElevations
int m_nProfileSmoothingWindow
vector< int > m_vecProfileNumbers
string m_strTideDataFile
vector< string > m_vecSaveTimes
double m_dFineErosivity
int m_nCliffEdgeSmoothingWindow
double m_dCoarseErosivity
double m_dBreakingWaveRatio
string m_strWaveHeightTimeSeries
bool m_bHasFinalWaterLevel
double m_dCliffDepositionA
double m_dFineMedianSize
vector< int > m_vecProfileTimesteps
double m_dStartDepthRatio
void InitializeDefaults()
Initialize all parameters with default values.
string m_strFloodLocations
string m_strSaveDigitsMode
double m_dCliffErosionResistance
double m_dMaxBeachElevation
string m_strRunupEquation
string m_strSedimentInputDetails
vector< string > m_vecConsFineFiles
bool m_bUseSystemTimeForSeed
double m_dMaxLocalSlope
vector< string > m_vecUnconsCoarseFiles
string m_strInterventionHeightFile
string m_strRasterFormat
Unified configuration class for CoastalME simulation parameters.