| 1 | % This file can be run to update the velocity archives of the test4.
|
|---|
| 2 | % This test deals with an icesheet without icefront for a 3d model. The geometry
|
|---|
| 3 | % is square. Just run this file in Matlab, with a properly setup Ice code.
|
|---|
| 4 |
|
|---|
| 5 | % The archive files will be saved in this directory but will not commited to ice1.
|
|---|
| 6 | % Just commit the result if you want to.
|
|---|
| 7 |
|
|---|
| 8 | md=model;
|
|---|
| 9 | md=mesh(md,'DomainOutline.exp',100000);
|
|---|
| 10 | md=geography(md,'','');
|
|---|
| 11 | md=parameterize(md,'Square.par');
|
|---|
| 12 | md=extrude(md,10,3);
|
|---|
| 13 | md=setelementstype(md,'pattyn','all');
|
|---|
| 14 |
|
|---|
| 15 | %Compute solution with Ice model
|
|---|
| 16 | md=solve(md,'diagnostic','ice');
|
|---|
| 17 | archive_pattyn=md.vel;
|
|---|
| 18 |
|
|---|
| 19 | %Save the solution in the directory
|
|---|
| 20 | save archive_pattyn archive_pattyn
|
|---|
| 21 |
|
|---|
| 22 | %Compute temperature with Ice model
|
|---|
| 23 | md=solve(md,'thermalsteady','ice');
|
|---|
| 24 | archive_temperature=md.temperature;
|
|---|
| 25 | archive_melting=md.melting;
|
|---|
| 26 |
|
|---|
| 27 | %Save the solution in the directory
|
|---|
| 28 | save archive_temperature archive_temperature
|
|---|
| 29 | save archive_melting archive_melting
|
|---|
| 30 |
|
|---|
| 31 | %Compute solution with Ice model
|
|---|
| 32 | md=setelementstype(md,'hutter','all');
|
|---|
| 33 | md=solve(md,'diagnostic','ice');
|
|---|
| 34 | archive_hutter=md.vel;
|
|---|
| 35 |
|
|---|
| 36 | %Save the solution in the directory
|
|---|
| 37 | save archive_hutter archive_hutter
|
|---|
| 38 |
|
|---|