source: issm/branches/trunk-jpl-damage/test/NightlyRun/test423.m@ 12878

Last change on this file since 12878 was 12878, checked in by cborstad, 13 years ago

merged trunk-jpl into trunk-jpl-damage through revision 12877

File size: 1.3 KB
Line 
1radius=1e6;
2shelfextent=2e5;
3
4md=roundmesh(model,radius,50000);
5%fix center node to 0,0
6rad=sqrt(md.mesh.x.^2+md.mesh.y.^2);
7pos=find(rad==min(rad));
8md.mesh.x(pos)=0; md.mesh.y(pos)=0; %the closest node to the center is changed to be exactly at the center
9xelem=md.mesh.x(md.mesh.elements)*[1;1;1]/3;
10yelem=md.mesh.y(md.mesh.elements)*[1;1;1]/3;
11rad=sqrt(xelem.^2+yelem.^2);
12flags=zeros(md.mesh.numberofelements,1);
13pos=find(rad>=(radius-shelfextent));
14flags(pos)=1;
15md=setmask(md,flags,'');
16md=parameterize(md,'../Par/RoundSheetShelf.par');
17md=setflowequation(md,'macayeal','all');
18md.cluster=generic('name',oshostname(),'np',3);
19
20md.transient.isthermal=0;
21md.transient.isprognostic=0;
22md.transient.isdiagnostic=0;
23md.transient.isgroundingline=1;
24
25%test different grounding line dynamics.
26md.groundingline.migration='AgressiveMigration';
27md=solve(md,TransientSolutionEnum);
28element_on_iceshelf_agressive=(md.results.TransientSolution.MaskElementonfloatingice);
29
30md.groundingline.migration='SoftMigration';
31md=solve(md,TransientSolutionEnum);
32element_on_iceshelf_soft=(md.results.TransientSolution.MaskElementonfloatingice);
33
34%Fields and tolerances to track changes
35field_names ={'ElementOnIceShelfAgressive','ElementOnIceShelfSoft'};
36field_tolerances={1e-13,1e-13};
37field_values={element_on_iceshelf_agressive,element_on_iceshelf_soft};
Note: See TracBrowser for help on using the repository browser.