Changeset 20629


Ignore:
Timestamp:
05/20/16 11:20:16 (9 years ago)
Author:
jbondzio
Message:

ADD: NR for CuffeyTemperate rheology

Location:
issm/trunk-jpl/test
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • issm/trunk-jpl/test/NightlyRun/test436.m

    r19049 r20629  
    1 %Test Name: SquareSheetShelfSteaEnthalpyLliboutryDuvalHO
     1%Test Name: SquareSheetShelfSteaEnthalpyRheologiesHO
    22md=triangle(model(),'../Exp/Square.exp',150000.);
    33md=setmask(md,'../Exp/SquareShelf.exp','');
     
    88md.timestepping.time_step=0.;
    99md.thermal.isenthalpy=1;
    10 md.materials.rheology_law='LliboutryDuval';
    1110md.initialization.waterfraction=zeros(md.mesh.numberofvertices,1);
    1211md.initialization.watercolumn=zeros(md.mesh.numberofvertices,1);
    13 md=solve(md,SteadystateSolutionEnum());
    1412
    15 %Fields and tolerances to track changes
    16 field_names     ={'Vx','Vy','Vz','Vel','Pressure','Temperature','Waterfraction','Enthalpy'};
    17 field_tolerances={2e-09,1e-09,1e-09,1e-09,1e-13,1e-10,5e-10,5e-10};
    18 field_values={...
    19         (md.results.SteadystateSolution.Vx),...
    20         (md.results.SteadystateSolution.Vy),...
    21         (md.results.SteadystateSolution.Vz),...
    22         (md.results.SteadystateSolution.Vel),...
    23         (md.results.SteadystateSolution.Pressure),...
    24         (md.results.SteadystateSolution.Temperature),...
    25         (md.results.SteadystateSolution.Waterfraction),...
    26         (md.results.SteadystateSolution.Enthalpy),...
    27         };
     13%Go solve
     14field_names={};
     15field_tolerances={};
     16field_values={};
     17for i={'LliboutryDuval', 'CuffeyTemperate'}
     18        disp(' ');
     19        disp(['====== Testing rheology law: ' i{1} ' =====']);
     20
     21        md.materials.rheology_law=i{1};
     22        md=solve(md,SteadystateSolutionEnum());
     23        field_names     ={field_names{:},['Vx' i{1}],['Vy' i{1}],['Vz' i{1}],['Vel' i{1}],['Pressure' i{1}],...
     24                ['Temperature' i{1}],['Waterfraction' i{1}],['Enthalpy' i{1}]};
     25        field_tolerances={field_tolerances{:},2e-09,1e-09,1e-09,1e-09,1e-13,1e-10,5e-10,5e-10};
     26        field_values={field_values{:},...
     27                (md.results.SteadystateSolution.Vx),...
     28                (md.results.SteadystateSolution.Vy),...
     29                (md.results.SteadystateSolution.Vz),...
     30                (md.results.SteadystateSolution.Vel),...
     31                (md.results.SteadystateSolution.Pressure),...
     32                (md.results.SteadystateSolution.Temperature),...
     33                (md.results.SteadystateSolution.Waterfraction),...
     34                (md.results.SteadystateSolution.Enthalpy),...
     35                };
     36end
Note: See TracChangeset for help on using the changeset viewer.