Changeset 3760
- Timestamp:
- 05/17/10 08:14:17 (15 years ago)
- Location:
- issm/trunk/src/m/classes/public
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
issm/trunk/src/m/classes/public/collapse.m
r3099 r3760 19 19 20 20 %drag is limited to grids that are on the bedrock. 21 md.drag =project2d(md,md.drag,1);21 md.drag_coefficient=project2d(md,md.drag_coefficient,1); 22 22 23 23 %p and q (same deal, except for element that are on the bedrock: ) 24 md. p=project2d(md,md.p,1);25 md. q=project2d(md,md.q,1);24 md.drag_p=project2d(md,md.drag_p,1); 25 md.drag_q=project2d(md,md.drag_q,1); 26 26 27 27 %observations … … 29 29 md.vy_obs=project2d(md,md.vy_obs,md.numlayers); 30 30 md.vel_obs=project2d(md,md.vel_obs,md.numlayers); 31 md.accumulation =project2d(md,md.accumulation,md.numlayers);31 md.accumulation_rate=project2d(md,md.accumulation_rate,md.numlayers); 32 32 md.firn_layer=project2d(md,md.firn_layer,md.numlayers); 33 33 … … 70 70 71 71 %materials 72 md. B=DepthAverage(md,md.B);73 md. n=project2d(md,md.n,1);72 md.rheology_B=DepthAverage(md,md.rheology_B); 73 md.rheology_n=project2d(md,md.rheology_n,1); 74 74 75 75 %special for thermal modeling: 76 md.melting =project2d(md,md.melting,1);76 md.melting_rate=project2d(md,md.melting_rate,1); 77 77 md.observed_temperature=DepthAverage(md,md.observed_temperature); 78 78 md.geothermalflux=project2d(md,md.geothermalflux,1); %bedrock only gets geothermal flux -
issm/trunk/src/m/classes/public/extrude.m
r3210 r3760 126 126 %Ok, now deal with the other fields from the 2d mesh: 127 127 128 %drag is limited to grids that are on the bedrock.129 md.drag =project3d(md,md.drag,'node',1);128 %drag_coefficient is limited to grids that are on the bedrock. 129 md.drag_coefficient=project3d(md,md.drag_coefficient,'node',1); 130 130 131 131 %p and q (same deal, except for element that are on the bedrock: ) 132 md. p=project3d(md,md.p,'element');133 md. q=project3d(md,md.q,'element');132 md.drag_p=project3d(md,md.drag_p,'element'); 133 md.drag_q=project3d(md,md.drag_q,'element'); 134 134 135 135 %observations … … 141 141 md.vel_bal=project3d(md,md.vel_bal,'node'); 142 142 md.vel_obs_raw=project3d(md,md.vel_obs_raw,'node'); 143 md.accumulation =project3d(md,md.accumulation,'node');143 md.accumulation_rate=project3d(md,md.accumulation_rate,'node'); 144 144 md.firn_layer=project3d(md,md.firn_layer,'node',md.numlayers); 145 145 … … 195 195 196 196 %materials 197 md. B=project3d(md,md.B,'node');198 md. n=project3d(md,md.n,'element');197 md.rheology_B=project3d(md,md.rheology_B,'node'); 198 md.rheology_n=project3d(md,md.rheology_n,'element'); 199 199 200 200 %parameters … … 217 217 218 218 %special for thermal modeling: 219 md.melting =project3d(md,md.melting,'node',1);219 md.melting_rate=project3d(md,md.melting_rate,'node',1); 220 220 md.observed_temperature=project3d(md,md.observed_temperature,'node'); 221 221 md.geothermalflux=project3d(md,md.geothermalflux,'node',1); %bedrock only gets geothermal flux -
issm/trunk/src/m/classes/public/modeldefault/defaultparams.m
r2296 r3760 49 49 %drag md.drag or stress 50 50 md.drag_type=2; %0 none 1 plastic 2 viscous 51 md.drag =300*ones(md.numberofgrids,1); %q=1.51 md.drag_coefficient=300*ones(md.numberofgrids,1); %q=1. 52 52 53 53 %zones of high md.drag 54 %[rhighmd.drag ]=ArgusContourToMesh(md.elements,md.x,md.y,expread('HighDrag.exp',1),'node');55 %pos=find(highmd.drag);md.drag (pos)=10^3;54 %[rhighmd.drag_coefficient]=ArgusContourToMesh(md.elements,md.x,md.y,expread('HighDrag.exp',1),'node'); 55 %pos=find(highmd.drag);md.drag_coefficient(pos)=10^3; 56 56 57 %Take care of iceshelves: no drag md.drag 57 %Take care of iceshelves: no drag md.drag_coefficient 58 58 pos=find(md.elementoniceshelf); 59 md.drag (md.elements(pos,:))=0;60 md. p=ones(md.numberofelements,1);61 md. q=ones(md.numberofelements,1);59 md.drag_coefficient(md.elements(pos,:))=0; 60 md.drag_p=ones(md.numberofelements,1); 61 md.drag_q=ones(md.numberofelements,1); 62 62 63 63 %Load md.temperature from Giovinetto: … … 75 75 %flow law 76 76 disp(' creating flow law paramters'); 77 md. n=3*ones(md.numberofelements,1);78 md. B=paterson(md.temperature);77 md.rheology_n=3*ones(md.numberofelements,1); 78 md.rheology_B=paterson(md.temperature); 79 79 80 80 %zones of shear margin softening 81 81 %[rweakb]=ArgusContourToMesh(md.elements,md.x,md.y,expread('Weakmd.BPIG.exp',1),'node'); 82 %pos=find(weakb);md. B(pos)=.3*md.B(pos);82 %pos=find(weakb);md.rheology_B(pos)=.3*md.rheology_B(pos); 83 83 84 84 %rifts: none for now. … … 91 91 92 92 disp(' creating accumulation rates'); 93 md.accumulation =ones(md.numberofgrids,1); %1m/a93 md.accumulation_rate=ones(md.numberofgrids,1); %1m/a 94 94 95 95 %Deal with boundary conditions: 96 96 97 97 disp(' thermal model'); 98 md.melting =zeros(md.numberofgrids,1);98 md.melting_rate=zeros(md.numberofgrids,1); 99 99 md.observed_temperature=md.temperature; 100 100
Note:
See TracChangeset
for help on using the changeset viewer.