1 | %Ok, start defining model parameters here
|
---|
2 |
|
---|
3 | %parallelization
|
---|
4 | md.cluster='none';
|
---|
5 | md.np=3;
|
---|
6 | md.dt=0;
|
---|
7 |
|
---|
8 | disp(' creating thickness');
|
---|
9 | h=1000;
|
---|
10 | md.thickness=h*ones(md.numberofgrids,1);
|
---|
11 | md.firn_layer=10*ones(md.numberofgrids,1);
|
---|
12 | md.bed=-1000*ones(md.numberofgrids,1);
|
---|
13 | md.surface=md.bed+md.thickness;
|
---|
14 |
|
---|
15 | disp(' creating velocities');
|
---|
16 | md.vx_obs=zeros(md.numberofgrids,1);
|
---|
17 | md.vy_obs=zeros(md.numberofgrids,1);
|
---|
18 | md.vel_obs=sqrt(md.vx_obs.^2+md.vy_obs.^2);
|
---|
19 |
|
---|
20 | disp(' creating drag');
|
---|
21 | md.drag_type=2; %0 none 1 plastic 2 viscous
|
---|
22 | md.drag_coefficient=200*ones(md.numberofgrids,1); %q=1.
|
---|
23 | %Take care of iceshelves: no basal drag
|
---|
24 | pos=find(md.elementoniceshelf);
|
---|
25 | md.drag_coefficient(md.elements(pos,:))=0;
|
---|
26 | md.drag_p=ones(md.numberofelements,1);
|
---|
27 | md.drag_q=ones(md.numberofelements,1);
|
---|
28 |
|
---|
29 | disp(' creating temperatures');
|
---|
30 | md.observed_temperature=273.15*ones(md.numberofgrids,1);
|
---|
31 |
|
---|
32 | disp(' creating flow law paramter');
|
---|
33 | md.rheology_B=paterson(md.observed_temperature);
|
---|
34 | md.rheology_n=3*ones(md.numberofelements,1);
|
---|
35 |
|
---|
36 | disp(' creating accumulation rates');
|
---|
37 | md.accumulation_rate=ones(md.numberofgrids,1)/md.yts; %1m/a
|
---|
38 | md.melting_rate=0*ones(md.numberofgrids,1)/md.yts; %1m/a
|
---|
39 |
|
---|
40 | %Deal with boundary conditions:
|
---|
41 |
|
---|
42 | disp(' boundary conditions for diagnostic model');
|
---|
43 | md=SetMarineIceSheetBC(md,'Front.exp');
|
---|
44 |
|
---|
45 | disp(' boundary conditions for thermal model');
|
---|
46 | md.temperature=md.observed_temperature;
|
---|
47 | md.spctemperature(:,1)=ones(md.numberofgrids,1); %surface temperature
|
---|
48 | md.spctemperature(:,2)=md.observed_temperature;
|
---|
49 | md.geothermalflux=zeros(md.numberofgrids,1);
|
---|
50 | pos=find(md.elementonicesheet);md.geothermalflux(md.elements(pos,:))=1*10^-3; %1 mW/m^2
|
---|