source: issm/trunk-jpl/test/Par/Pig.par@ 13119

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

NEW: damage inversion capability merged from branches/trunk-jpl-damage into trunk-jpl. This affects EVERYONE. You will need to initialize a new rheology parameter md.materials.rheology_Z in all your model runs. Check the updated .par files in test/Par for syntax.

  • Property svn:executable set to *
File size: 1.8 KB
RevLine 
[4949]1%Start defining model parameters here
2
[4953]3%Geometry and observation
[8824]4load('../Data/Pig.data','-mat');
[9734]5md.inversion.vx_obs =InterpFromMeshToMesh2d(index,x,y,vx_obs,md.mesh.x,md.mesh.y);
6md.inversion.vy_obs =InterpFromMeshToMesh2d(index,x,y,vy_obs,md.mesh.x,md.mesh.y);
7md.geometry.surface =InterpFromMeshToMesh2d(index,x,y,surface,md.mesh.x,md.mesh.y);
8md.geometry.thickness=InterpFromMeshToMesh2d(index,x,y,thickness,md.mesh.x,md.mesh.y);
[9691]9md.geometry.bed=md.geometry.surface-md.geometry.thickness;
[4953]10clear surface thickness vx_obs vy_obs x y index;
[9684]11md.initialization.vx=md.inversion.vx_obs;
12md.initialization.vy=md.inversion.vy_obs;
[9725]13md.initialization.vz=zeros(md.mesh.numberofvertices,1);
14md.initialization.pressure=zeros(md.mesh.numberofvertices,1);
[4949]15
[4953]16%Materials
[9725]17md.initialization.temperature=(273-20)*ones(md.mesh.numberofvertices,1);
[9684]18md.materials.rheology_B=paterson(md.initialization.temperature);
[13119]19md.materials.rheology_Z=ones(md.mesh.numberofvertices,1);
[9725]20md.materials.rheology_n=3*ones(md.mesh.numberofelements,1);
[9684]21md.initialization.temperature=md.initialization.temperature;
[4953]22
23%Friction
[9641]24pos=find(md.mask.elementonfloatingice);
[9725]25md.friction.coefficient=50*ones(md.mesh.numberofvertices,1);
[9733]26md.friction.coefficient(md.mesh.elements(pos,:))=0;
[9725]27md.friction.p=ones(md.mesh.numberofelements,1);
28md.friction.q=ones(md.mesh.numberofelements,1);
[4953]29
30%Numerical parameters
[9679]31md.diagnostic.viscosity_overshoot=0.3;
[9642]32md.prognostic.stabilization=1;
[6307]33md.verbose=verbose(0);
[9702]34md.settings.waitonlock=30;
[9628]35md.timestepping.time_step=1;
36md.timestepping.final_time=2;
[9679]37md.diagnostic.restol=0.05;
38md.diagnostic.reltol=1;
[9677]39md.steadystate.reltol=1;
[9679]40md.diagnostic.abstol=NaN;
[4949]41
[4953]42%Boundary conditions:
[4949]43md=SetMarineIceSheetBC(md);
[4999]44
45%Change name so that no test have the same name
46A=dbstack;
[9625]47if (length(A)>2), md.miscellaneous.name=A(3).file(1:end-2); end
Note: See TracBrowser for help on using the repository browser.