[16] | 1 | %Ok, start defining model parameters here
|
---|
| 2 |
|
---|
[900] | 3 | %parallelization
|
---|
| 4 | md.cluster='none';
|
---|
[4876] | 5 | md.np=3;
|
---|
| 6 | md.dt=0;
|
---|
[16] | 7 |
|
---|
[900] | 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;
|
---|
[16] | 14 |
|
---|
[900] | 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);
|
---|
[16] | 19 |
|
---|
[900] | 20 | disp(' creating drag');
|
---|
| 21 | md.drag_type=2; %0 none 1 plastic 2 viscous
|
---|
[3768] | 22 | md.drag_coefficient=200*ones(md.numberofgrids,1); %q=1.
|
---|
[900] | 23 | %Take care of iceshelves: no basal drag
|
---|
| 24 | pos=find(md.elementoniceshelf);
|
---|
[3768] | 25 | md.drag_coefficient(md.elements(pos,:))=0;
|
---|
| 26 | md.drag_p=ones(md.numberofelements,1);
|
---|
| 27 | md.drag_q=ones(md.numberofelements,1);
|
---|
[16] | 28 |
|
---|
[900] | 29 | disp(' creating temperatures');
|
---|
| 30 | md.observed_temperature=273.15*ones(md.numberofgrids,1);
|
---|
[16] | 31 |
|
---|
[900] | 32 | disp(' creating flow law paramter');
|
---|
[3768] | 33 | md.rheology_B=paterson(md.observed_temperature);
|
---|
| 34 | md.rheology_n=3*ones(md.numberofelements,1);
|
---|
[900] | 35 |
|
---|
| 36 | disp(' creating accumulation rates');
|
---|
[3768] | 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
|
---|
[900] | 39 |
|
---|
| 40 | %Deal with boundary conditions:
|
---|
| 41 |
|
---|
| 42 | disp(' boundary conditions for diagnostic model');
|
---|
[4876] | 43 | md=SetMarineIceSheetBC(md,'Front.exp');
|
---|
[900] | 44 |
|
---|
| 45 | disp(' boundary conditions for thermal model');
|
---|
[4876] | 46 | md.temperature=md.observed_temperature;
|
---|
| 47 | md.spctemperature(:,1)=ones(md.numberofgrids,1); %surface temperature
|
---|
| 48 | md.spctemperature(:,2)=md.observed_temperature;
|
---|
[900] | 49 | md.geothermalflux=zeros(md.numberofgrids,1);
|
---|
| 50 | pos=find(md.elementonicesheet);md.geothermalflux(md.elements(pos,:))=1*10^-3; %1 mW/m^2
|
---|