Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
ErosMatlabInterface
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Dr. rer. nat. Jürgen Mey
ErosMatlabInterface
Commits
b796ef37
Commit
b796ef37
authored
3 years ago
by
Dr. rer. nat. Jürgen Mey
Browse files
Options
Downloads
Patches
Plain Diff
add to delete
parent
998eac57
Branches
baseline
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
eros_hochrhein.m
+137
-0
137 additions, 0 deletions
eros_hochrhein.m
with
137 additions
and
0 deletions
eros_hochrhein.m
0 → 100644
+
137
−
0
View file @
b796ef37
%__________________________________________________________________________
% PREPARE GRIDS
%--------------------------------------------------------------------------
%
%+++++++++++++++++ Example data (1% inclined, flat surface) +++++++++++++++
addpath
(
'.\mfiles'
);
% ALT (elevation model)
dem
=
GRIDobj
(
'./Topo/channel_dx8_S0.01.tif'
);
% RAIN (sources (>0) and sinks (-1))
rain
=
dem
*
0
;
rain
.
Z
(
95
:
117
)
=-
1
;
rain
.
Z
([
35712
;
35713
;
35714
;
35715
;
35716
;
35717
;
35718
;
35719
;
35720
;
35721
;
35722
;
35723
;
35724
])
=
0.441
;
rain
.
Z
([
15476
;
15622
;
15768
;
15914
;
16060
;
16206
;
16352
;
16498
;
16644
;
16790
;
16936
;
17082
;
17228
])
=
0.559
;
GRIDobj2grd
(
rain
,[
'./Topo/'
,
dem
.
name
,
'.rain'
]);
%SED (sediment thickness in meters)
sed
=
dem
*
0
;
sed
=
sed
+
10
;
GRIDobj2grd
(
sed
,[
'./Topo/'
,
dem
.
name
,
'.sed'
]);
LEM
.
dem
=
dem
;
LEM
.
rain
=
rain
;
LEM
.
sed
=
sed
;
GRIDobj2grd
(
dem
,[
'./Topo/'
,
dem
.
name
,
'.alt'
]);
GRIDobj2grd
(
rain
,[
'./Topo/'
,
dem
.
name
,
'.rain'
]);
GRIDobj2grd
(
sed
,[
'./Topo/'
,
dem
.
name
,
'.sed'
]);
%+++++++++++++++++++++++++++ Real topography ++++++++++++++++++++++++++++++
% % ALT (elevation model)
% dem = GRIDobj(['./Topo/','SantaMariaBasin_outlet_utm20s.tif']);
% GRIDobj2grd(dem,['./Topo/',dem.name,'.alt']);
%
% % RAIN (sources and sinks)
% rain = dem*0;
% rain.Z(38:43,1)=1;
% rain.Z(1,44:60)=-1;
% GRIDobj2grd(rain,['./Topo/',dem.name,'.rain']);
%
% % SED (sediment thickness)
% sed = dem*0;
% sed = sed+10;
% GRIDobj2grd(sed,['./Topo/',dem.name,'.sed']);
%
% LEM.dem = dem;
% LEM.rain = rain;
% LEM.sed = sed;
%__________________________________________________________________________
%% DEFINE INPUT PARAMETERS
%--------------------------------------------------------------------------
LEM
.
experiment
=
'single_thread'
;
% Project name
LEM
.
ErosPath
=
'C:\\Users\\mey\\SynologyDrive\\erosmatlabinterface'
;
% Path to Eros.exe
LEM
.
outfolder
=
'playingaround'
;
% folder to store results in
LEM
.
ErosPath
=
'C:\\Projects\\EROS\\Hochrhein'
;
% Path to bin-folder, where .exe resides
LEM
.
outfolder
=
'Results'
;
% folder to store results in
LEM
.
start
=
0
;
% start time (negative time)
LEM
.
stop
=
2000
;
% [s] length of model run
LEM
.
draw
=
10
;
% output interval
LEM
.
init
=
2000
;
LEM
.
step
=
5
;
LEM
.
stepmin
=
0.3
;
LEM
.
stepmax
=
0.3
;
LEM
.
TU
=
100
;
% unknown parameter
LEM
.
floodos
=
'stationary:pow'
;
%--------------------------------------------------------------------------
% EROSION/DEPOSITION
%--------------------------------------------------------------------------
LEM
.
erosion_model
=
'shear_stress'
;
% (stream_power, shear_stress, shear_mpm)
LEM
.
deposition_model
=
'constant'
;
% need to know whether there are other options!
% ALLUVIAL
LEM
.
fluvial_stress_exponent
=
1.5
;
% exponent in sediment flux eq. (MPM): qs = E(tau-tau_c)^a
LEM
.
fluvial_erodability
=
0.4
;
% [kg-1.5 m-3.5 s-2] E in MPM equation
LEM
.
fluvial_sediment_threshold
=
4.0
;
% [Pa] critical shear stress (tau_c) in MPM equation
LEM
.
deposition_length
=
2
;
% [m] xi in vertical erosion term: edot = qs/xi
% Lateral erosion/deposition
LEM
.
fluvial_lateral_erosion_coefficient
=
0.05
;
% dimensionless coefficient (Eq. 17 in Davy, Croissant, Lague (2017))
LEM
.
fluvial_lateral_deposition_coefficient
=
0.5
;
LEM
.
outbend_erosion_coefficient
=
1.0
;
LEM
.
inbend_erosion_coefficient
=
1.0
;
% BEDROCK
LEM
.
fluvial_basement_erodability
=
0.2
;
LEM
.
fluvial_basement_threshold
=
4
;
% Lateral erosion/deposition
LEM
.
lateral_erosion
=
0.05
;
% dimensionless coefficient (Eq. 17 in Davy, Croissant, Lague (2017))
LEM
.
lateral_deposition
=
0.5
;
LEM
.
outbend_erosion_coefficient
=
1.000000
;
LEM
.
inbend_erosion_coefficient
=
1.00000
;
%--------------------------------------------------------------------------
% FLOW MODEL
%--------------------------------------------------------------------------
LEM
.
diffusion_coefficient
=
0.5
;
LEM
.
poisson_coefficient
=
4
;
LEM
.
flood_model
=
1
;
LEM
.
flow_model
=
'manning'
;
LEM
.
minimum_flow_coefficient
=
0.0
;
LEM
.
friction_coefficient
=
0.025
;
%
LEM
.
water_depth_limit
=
-
1
;
LEM
.
flow_depth_constant
=
1.0
;
LEM
.
flow_only
=
0
;
LEM
.
fictious_area
=
1
;
%--------------------------------------------------------------------------
% OUTPUTS TO WRITE
%--------------------------------------------------------------------------
LEM
.
stress
=
1
;
LEM
.
water
=
1
;
LEM
.
discharge
=
1
;
LEM
.
downward
=
1
;
LEM
.
slope
=
1
;
LEM
.
qs
=
1
;
LEM
.
capacity
=
1
;
LEM
.
sediment
=
1
;
LEM
.
rainfall
=
0
;
LEM
.
str_write
=
''
;
LEM
.
str_nowrite
=
''
;
writeErosInputs
(
LEM
);
%% run model
system
([
LEM
.
experiment
,
'.bat'
])
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment