Changeset 18272


Ignore:
Timestamp:
07/21/14 14:56:29 (11 years ago)
Author:
schlegel
Message:

CHG: update cheatsheet

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  
    44        md = model;
    55        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
    612        md = setmask(md,'','');
     13
    714        md = parameterize(md,'Square.par');
    815        md = setflowequation(md,'SSA','all');
    916        md.cluster = generic('np',2);
    1017
    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
    1422        md.friction.coefficient(:)=50;
    1523        md.friction.coefficient(find(md.mesh.x<600000 & md.mesh.x>400000))=10;
    16         %END
    1724
    1825        md = solve(md,StressbalanceSolutionEnum);
     
    2330        loadmodel('model1.mat');
    2431
     32        %Hands on: STEP 1
    2533        md.friction.coefficient(:)=50;
    2634
     
    3240
    3341        md = solve(md,StressbalanceSolutionEnum);
     42
    3443        save model2 md
    3544end
     
    4150        maxsteps = 20;
    4251        md.inversion.iscontrol = 1;
     52
     53        %Hands on: STEP 1
    4354        md.inversion.control_parameters = {'FrictionCoefficient'};
    4455        md.inversion.maxsteps = maxsteps;
     56
     57        %Hands on: STEP 2
    4558        md.inversion.cost_functions = 101;
    4659        md.inversion.cost_functions_coefficients = ones(md.mesh.numberofvertices,1);
     60
     61        %Hands on: STEP 3
    4762        md.inversion.min_parameters    = 1*ones(md.mesh.numberofvertices,1);
    4863        md.inversion.max_parameters    = 100*ones(md.mesh.numberofvertices,1);
     
    5166        md.verbose=verbose(0);
    5267        md=solve(md,StressbalanceSolutionEnum);
     68
    5369        plotmodel(md,'data',md.results.StressbalanceSolution.FrictionCoefficient,'figure',1);
    5470        plotmodel(md,'data',md.results.StressbalanceSolution.Vel,'figure',2); 
  • TabularUnified issm/trunk-jpl/examples/Inversion/runme.m

    r18271 r18272  
    99        md.cluster = generic('np',2);
    1010        md = solve(md,StressbalanceSolutionEnum);
     11
    1112        plotmodel(md,'data',md.materials.rheology_B,'caxis',[ 1.3 1.9]*10^8,'figure',1);
    1213        plotmodel(md,'data',md.results.StressbalanceSolution.Vel,'figure',2); 
     
    2526
    2627        md = solve(md,StressbalanceSolutionEnum);
     28
    2729        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
    2932        save model2 md
    3033end
     
    4649        md.verbose=verbose(0);
    4750        md=solve(md,StressbalanceSolutionEnum);
     51
    4852        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); 
    5054end
    5155if step==4
     
    6771        md.verbose=verbose(0);
    6872        md=solve(md,StressbalanceSolutionEnum);
     73
    6974        plotmodel(md,'data',md.results.StressbalanceSolution.MaterialsRheologyBbar,'caxis',[ 1.3 1.9]*10^8,'figure',1);
    7075        plotmodel(md,'data',md.results.StressbalanceSolution.Vel,'figure',2); 
Note: See TracChangeset for help on using the changeset viewer.