Changeset 20629
- Timestamp:
- 05/20/16 11:20:16 (9 years ago)
- Location:
- issm/trunk-jpl/test
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
issm/trunk-jpl/test/NightlyRun/test436.m
r19049 r20629 1 %Test Name: SquareSheetShelfSteaEnthalpy LliboutryDuvalHO1 %Test Name: SquareSheetShelfSteaEnthalpyRheologiesHO 2 2 md=triangle(model(),'../Exp/Square.exp',150000.); 3 3 md=setmask(md,'../Exp/SquareShelf.exp',''); … … 8 8 md.timestepping.time_step=0.; 9 9 md.thermal.isenthalpy=1; 10 md.materials.rheology_law='LliboutryDuval';11 10 md.initialization.waterfraction=zeros(md.mesh.numberofvertices,1); 12 11 md.initialization.watercolumn=zeros(md.mesh.numberofvertices,1); 13 md=solve(md,SteadystateSolutionEnum());14 12 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 14 field_names={}; 15 field_tolerances={}; 16 field_values={}; 17 for 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 }; 36 end
Note:
See TracChangeset
for help on using the changeset viewer.