source: issm/trunk/examples/AMR/mismip.par@ 23189

Last change on this file since 23189 was 23096, checked in by tsantos, 7 years ago

NEW: AMR example using MISMIP3d setup

File size: 2.1 KB
Line 
1% creating thickness
2md.geometry.bed=-100-abs(md.mesh.x)/1000;
3md.geometry.base=-90*ones(md.mesh.numberofvertices,1);
4md.geometry.surface=10*ones(md.mesh.numberofvertices,1);
5md.geometry.thickness=md.geometry.surface-md.geometry.base;
6md.mask.groundedice_levelset=-1*ones(md.mesh.numberofvertices,1);
7
8% creating basal drag
9md.friction.coefficient=sqrt(10^7)*ones(md.mesh.numberofvertices,1); %q=1.
10md.friction.p=3*ones(md.mesh.numberofelements,1);
11md.friction.q=zeros(md.mesh.numberofelements,1);
12
13% creating flow law paramter
14md.materials.rheology_B=1/((10^-25)^(1/3))*ones(md.mesh.numberofvertices,1);
15md.materials.rheology_n=3*ones(md.mesh.numberofelements,1);
16md.materials.rheology_law='None';
17
18% creating boundary conditions
19md=SetIceShelfBC(md,'./front.exp');
20md.stressbalance.spcvx=NaN*ones(md.mesh.numberofvertices,1);
21md.stressbalance.spcvy=NaN*ones(md.mesh.numberofvertices,1);
22md.stressbalance.spcvz=NaN*ones(md.mesh.numberofvertices,1);
23pos=find((md.mesh.y<50000.1 & md.mesh.y>49999.9) | (md.mesh.y<0.1 & md.mesh.y>-0.1));
24md.stressbalance.spcvy(pos)=0;
25pos2=find(md.mesh.x<0.1 & md.mesh.x>-0.1);
26md.stressbalance.spcvx(pos2)=0;
27md.stressbalance.spcvz(pos)=NaN;
28md.stressbalance.spcvz(pos2)=NaN;
29
30% creating forcing conditions
31md.smb.mass_balance=0.5*ones(md.mesh.numberofvertices,1);
32md.basalforcings.geothermalflux=0.5*ones(md.mesh.numberofvertices,1);
33md.thermal.spctemperature=NaN*ones(md.mesh.numberofvertices,1);
34md.groundingline.migration='SubelementMigration';
35
36% setting parameters
37md.materials.rho_ice=900;
38md.materials.rho_water=1000;
39md.constants.g=9.8;
40md.constants.yts=3600*24*365;
41md.transient.isthermal=0;
42md.transient.isgroundingline=1;
43md.stressbalance.isnewton=0;
44
45% setting inital condition
46md.initialization.vx=ones(md.mesh.numberofvertices,1);
47md.initialization.vy=ones(md.mesh.numberofvertices,1);
48md.initialization.vz=ones(md.mesh.numberofvertices,1);
49md.initialization.vel=sqrt(2)*ones(md.mesh.numberofvertices,1);
50md.initialization.pressure=md.constants.g*md.materials.rho_ice*md.geometry.thickness;
51md.initialization.temperature=273*ones(md.mesh.numberofvertices,1);
Note: See TracBrowser for help on using the repository browser.