Changeset 18272
- Timestamp:
- 07/21/14 14:56:29 (11 years ago)
- Location:
- issm/trunk-jpl/examples/Inversion
- Files:
-
- 1 edited
- 1 moved
Legend:
- Unmodified
- Added
- Removed
-
TabularUnified issm/trunk-jpl/examples/Inversion/CheatSheet.m ¶
r18271 r18272 4 4 md = model; 5 5 md = triangle(md,'DomainOutline.exp',100000); 6 7 %Hands on: STEP 1 8 md.geometry.base = md.geometry.base+100; 9 md.geometry.surface = md.geometry.surface+100; 10 11 %Hands on: STEP 2 6 12 md = setmask(md,'',''); 13 7 14 md = parameterize(md,'Square.par'); 8 15 md = setflowequation(md,'SSA','all'); 9 16 md.cluster = generic('np',2); 10 17 11 %START 12 md.geometry.base = md.geometry.base+100; 13 md.geometry.surface = md.geometry.surface+100; 18 %Hands on: STEP 3 19 md.materials.rheology_B(:) = 1.8*10^8; 20 21 %Hands on: STEP 4 14 22 md.friction.coefficient(:)=50; 15 23 md.friction.coefficient(find(md.mesh.x<600000 & md.mesh.x>400000))=10; 16 %END17 24 18 25 md = solve(md,StressbalanceSolutionEnum); … … 23 30 loadmodel('model1.mat'); 24 31 32 %Hands on: STEP 1 25 33 md.friction.coefficient(:)=50; 26 34 … … 32 40 33 41 md = solve(md,StressbalanceSolutionEnum); 42 34 43 save model2 md 35 44 end … … 41 50 maxsteps = 20; 42 51 md.inversion.iscontrol = 1; 52 53 %Hands on: STEP 1 43 54 md.inversion.control_parameters = {'FrictionCoefficient'}; 44 55 md.inversion.maxsteps = maxsteps; 56 57 %Hands on: STEP 2 45 58 md.inversion.cost_functions = 101; 46 59 md.inversion.cost_functions_coefficients = ones(md.mesh.numberofvertices,1); 60 61 %Hands on: STEP 3 47 62 md.inversion.min_parameters = 1*ones(md.mesh.numberofvertices,1); 48 63 md.inversion.max_parameters = 100*ones(md.mesh.numberofvertices,1); … … 51 66 md.verbose=verbose(0); 52 67 md=solve(md,StressbalanceSolutionEnum); 68 53 69 plotmodel(md,'data',md.results.StressbalanceSolution.FrictionCoefficient,'figure',1); 54 70 plotmodel(md,'data',md.results.StressbalanceSolution.Vel,'figure',2); -
TabularUnified issm/trunk-jpl/examples/Inversion/runme.m ¶
r18271 r18272 9 9 md.cluster = generic('np',2); 10 10 md = solve(md,StressbalanceSolutionEnum); 11 11 12 plotmodel(md,'data',md.materials.rheology_B,'caxis',[ 1.3 1.9]*10^8,'figure',1); 12 13 plotmodel(md,'data',md.results.StressbalanceSolution.Vel,'figure',2); … … 25 26 26 27 md = solve(md,StressbalanceSolutionEnum); 28 27 29 plotmodel(md,'data',md.materials.rheology_B,'caxis',[ 1.3 1.9]*10^8,'figure',1); 28 plotmodel(md,'data',md.results.StressbalanceSolution.Vel,'figure',2); 30 plotmodel(md,'data',md.results.StressbalanceSolution.Vel,'figure',2, 'gridded#all',1); 31 29 32 save model2 md 30 33 end … … 46 49 md.verbose=verbose(0); 47 50 md=solve(md,StressbalanceSolutionEnum); 51 48 52 plotmodel(md,'data',md.results.StressbalanceSolution.MaterialsRheologyBbar,'caxis',[ 1.3 1.9]*10^8,'figure',1); 49 plotmodel(md,'data',md.results.StressbalanceSolution.Vel,'figure',2 );53 plotmodel(md,'data',md.results.StressbalanceSolution.Vel,'figure',2,'gridded#all',1); 50 54 end 51 55 if step==4 … … 67 71 md.verbose=verbose(0); 68 72 md=solve(md,StressbalanceSolutionEnum); 73 69 74 plotmodel(md,'data',md.results.StressbalanceSolution.MaterialsRheologyBbar,'caxis',[ 1.3 1.9]*10^8,'figure',1); 70 75 plotmodel(md,'data',md.results.StressbalanceSolution.Vel,'figure',2);
Note:
See TracChangeset
for help on using the changeset viewer.