Last change
on this file since 15771 was 15771, checked in by Mathieu Morlighem, 12 years ago |
CHG: Diagnostic is now Stressbalance
|
-
Property svn:executable
set to
*
|
File size:
1.2 KB
|
Rev | Line | |
---|
[5049] | 1 | %Ok, start defining model parameters here
|
---|
| 2 |
|
---|
| 3 | disp(' creating thickness');
|
---|
[14134] | 4 | md.geometry.surface=2000.-md.mesh.x*tan(0.1*pi/180.); %to have z>0
|
---|
| 5 | md.geometry.bed=md.geometry.surface-1000.;
|
---|
[9691] | 6 | md.geometry.thickness=md.geometry.surface-md.geometry.bed;
|
---|
[5049] | 7 |
|
---|
| 8 | disp(' creating drag');
|
---|
[14134] | 9 | %md.friction.coefficient=sqrt(md.constants.yts.*(1000.+1000.*sin(md.mesh.x*2.*pi/max(md.mesh.x/2.)).*sin(md.mesh.y*2.*pi/max(md.mesh.x/2.)))./(md.constants.g*(md.materials.rho_ice*md.geometry.thickness+md.materials.rho_water*md.geometry.bed)));
|
---|
| 10 | md.friction.coefficient=sqrt(md.constants.yts.*(1000.+1000.*sin(md.mesh.x*2.*pi/max(md.mesh.x)).*sin(md.mesh.y*2.*pi/max(md.mesh.x))));
|
---|
[5049] | 11 | %Take care of iceshelves: no basal drag
|
---|
[9641] | 12 | pos=find(md.mask.elementonfloatingice);
|
---|
[14134] | 13 | md.friction.coefficient(md.mesh.elements(pos,:))=0.;
|
---|
[9725] | 14 | md.friction.p=ones(md.mesh.numberofelements,1);
|
---|
| 15 | md.friction.q=zeros(md.mesh.numberofelements,1);
|
---|
[5049] | 16 |
|
---|
[14134] | 17 | disp(' creating flow law parameter');
|
---|
[9725] | 18 | md.materials.rheology_B=6.8067*10^7*ones(md.mesh.numberofvertices,1);
|
---|
[14134] | 19 | md.materials.rheology_n=3.*ones(md.mesh.numberofelements,1);
|
---|
[5049] | 20 |
|
---|
[15771] | 21 | disp(' boundary conditions for stressbalance model:');
|
---|
[14134] | 22 | %Create node on boundary first (because we can not use mesh)
|
---|
[5049] | 23 | md=SetIceSheetBC(md);
|
---|
Note:
See
TracBrowser
for help on using the repository browser.