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
Line 
1%Start defining model parameters here
2
3%Geometry and observation
4load('../Data/Pig.data','-mat');
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);
9md.geometry.bed=md.geometry.surface-md.geometry.thickness;
10clear surface thickness vx_obs vy_obs x y index;
11md.initialization.vx=md.inversion.vx_obs;
12md.initialization.vy=md.inversion.vy_obs;
13md.initialization.vz=zeros(md.mesh.numberofvertices,1);
14md.initialization.pressure=zeros(md.mesh.numberofvertices,1);
15
16%Materials
17md.initialization.temperature=(273-20)*ones(md.mesh.numberofvertices,1);
18md.materials.rheology_B=paterson(md.initialization.temperature);
19md.materials.rheology_Z=ones(md.mesh.numberofvertices,1);
20md.materials.rheology_n=3*ones(md.mesh.numberofelements,1);
21md.initialization.temperature=md.initialization.temperature;
22
23%Friction
24pos=find(md.mask.elementonfloatingice);
25md.friction.coefficient=50*ones(md.mesh.numberofvertices,1);
26md.friction.coefficient(md.mesh.elements(pos,:))=0;
27md.friction.p=ones(md.mesh.numberofelements,1);
28md.friction.q=ones(md.mesh.numberofelements,1);
29
30%Numerical parameters
31md.diagnostic.viscosity_overshoot=0.3;
32md.prognostic.stabilization=1;
33md.verbose=verbose(0);
34md.settings.waitonlock=30;
35md.timestepping.time_step=1;
36md.timestepping.final_time=2;
37md.diagnostic.restol=0.05;
38md.diagnostic.reltol=1;
39md.steadystate.reltol=1;
40md.diagnostic.abstol=NaN;
41
42%Boundary conditions:
43md=SetMarineIceSheetBC(md);
44
45%Change name so that no test have the same name
46A=dbstack;
47if (length(A)>2), md.miscellaneous.name=A(3).file(1:end-2); end
Note: See TracBrowser for help on using the repository browser.