Changeset 9947
- Timestamp:
- 09/27/11 08:29:39 (14 years ago)
- Location:
- issm/trunk/examples/SquareIceShelf
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
issm/trunk/examples/SquareIceShelf/Square.par
r8312 r9947 4 4 hmin=300; 5 5 hmax=1000; 6 ymin=min(md. y);7 ymax=max(md. y);8 md. thickness=hmax+(hmin-hmax)*(md.y-ymin)/(ymax-ymin);9 md. bed=-md.rho_ice/md.rho_water*md.thickness;10 md. surface=md.bed+md.thickness;6 ymin=min(md.mesh.y); 7 ymax=max(md.mesh.y); 8 md.geometry.thickness=hmax+(hmin-hmax)*(md.mesh.y-ymin)/(ymax-ymin); 9 md.geometry.bed=-md.materials.rho_ice/md.materials.rho_water*md.geometry.thickness; 10 md.geometry.surface=md.geometry.bed+md.geometry.thickness; 11 11 12 12 disp(' creating drag'); 13 md.drag_type=2; %0 none 1 plastic 2 viscous 14 pos=find(md.elementoniceshelf); 15 md.drag_coefficient=200*ones(md.numberofnodes,1); %q=1. 16 md.drag_coefficient(md.elements(pos,:))=0; 17 md.drag_p=ones(md.numberofelements,1); 18 md.drag_q=ones(md.numberofelements,1); 19 20 disp(' creating temperature'); 21 md.observed_temperature=(273-20)*ones(md.numberofnodes,1); 13 pos=find(md.mask.elementonfloatingice); 14 md.friction.coefficient=200*ones(md.mesh.numberofvertices,1); %q=1. 15 md.friction.coefficient(md.mesh.elements(pos,:))=0; 16 md.friction.p=ones(md.mesh.numberofelements,1); 17 md.friction.q=ones(md.mesh.numberofelements,1); 22 18 23 19 disp(' initial velocity'); 24 md. vx=zeros(md.numberofnodes,1);25 md. vy=zeros(md.numberofnodes,1);26 md. vz=zeros(md.numberofnodes,1);27 md. vel=zeros(md.numberofnodes,1);20 md.initialization.vx=zeros(md.mesh.numberofvertices,1); 21 md.initialization.vy=zeros(md.mesh.numberofvertices,1); 22 md.initialization.vz=zeros(md.mesh.numberofvertices,1); 23 md.initialization.vel=zeros(md.mesh.numberofvertices,1); 28 24 29 25 disp(' creating flow law paramter'); 30 md. rheology_B=paterson(md.observed_temperature);31 md. rheology_n=3*ones(md.numberofelements,1);26 md.materials.rheology_B=paterson((273-20)*ones(md.mesh.numberofvertices,1)); 27 md.materials.rheology_n=3*ones(md.mesh.numberofelements,1); 32 28 33 29 disp(' creating boundary conditions'); -
issm/trunk/examples/SquareIceShelf/runme.m
r8571 r9947 1 1 md=model; 2 md= mesh(md,'DomainOutline.exp',100000);3 md= geography(md,'all','');2 md=setmesh(md,'DomainOutline.exp',100000); 3 md=setmask(md,'all',''); 4 4 md=parameterize(md,'Square.par'); 5 md=set elementstype(md,'macayeal','all');5 md=setflowequation(md,'macayeal','all'); 6 6 md=solve(md,DiagnosticSolutionEnum);
Note:
See TracChangeset
for help on using the changeset viewer.