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
RevLine 
[7075]1radius=1e6;
2shelfextent=2e5;
[10302]3
4md=roundmesh(model,radius,50000);
[8304]5%fix center node to 0,0
[10282]6rad=sqrt(md.mesh.x.^2+md.mesh.y.^2);
[7075]7pos=find(rad==min(rad));
[9734]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;
[10282]11rad=sqrt(xelem.^2+yelem.^2);
[9725]12flags=zeros(md.mesh.numberofelements,1);
[7075]13pos=find(rad>=(radius-shelfextent));
14flags(pos)=1;
[10282]15md=setmask(md,flags,'');
[7075]16md=parameterize(md,'../Par/RoundSheetShelf.par');
[9664]17md=setflowequation(md,'macayeal','all');
[8589]18md.cluster=generic('name',oshostname(),'np',3);
[7075]19
[10282]20md.transient.isthermal=0;
21md.transient.isprognostic=0;
22md.transient.isdiagnostic=0;
23md.transient.isgroundingline=1;
[10304]24
25%test different grounding line dynamics.
[9629]26md.groundingline.migration='AgressiveMigration';
[10282]27md=solve(md,TransientSolutionEnum);
[10976]28element_on_iceshelf_agressive=(md.results.TransientSolution.MaskElementonfloatingice);
[7359]29
[9629]30md.groundingline.migration='SoftMigration';
[10282]31md=solve(md,TransientSolutionEnum);
[10976]32element_on_iceshelf_soft=(md.results.TransientSolution.MaskElementonfloatingice);
[7359]33
[7075]34%Fields and tolerances to track changes
[7359]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.