source: issm/branches/trunk-jpl-damage/test/NightlyRun/test351.m@ 11427

Last change on this file since 11427 was 11281, checked in by seroussi, 13 years ago

added NR for enthalpy solution

File size: 1.0 KB
Line 
1md=triangle(model,'../Exp/Square.exp',180000);
2md=setmask(md,'','');
3md=parameterize(md,'../Par/SquareSheetConstrained.par');
4md=extrude(md,3,1);
5md=setflowequation(md,'macayeal','all');
6md.initialization.waterfraction=zeros(md.mesh.numberofvertices,1);
7md.cluster=none;
8md=solve(md,EnthalpySolutionEnum);
9
10%Fields and tolerances to track changes
11field_names ={'Enthalpy1','Waterfraction1','Temperature1',...
12 'Enthalpy2','Waterfraction2','Temperature2',...
13 'Enthalpy3','Waterfraction3','Temperature3'};
14field_tolerances={1e-13,1e-13,1e-13,1e-13,1e-13,1e-13,1e-13,1e-13,1e-13};
15field_values={...
16 (md.results.EnthalpySolution(1).Enthalpy),...
17 (md.results.EnthalpySolution(1).Waterfraction),...
18 (md.results.EnthalpySolution(1).Temperature),...
19 (md.results.EnthalpySolution(2).Enthalpy),...
20 (md.results.EnthalpySolution(2).Waterfraction),...
21 (md.results.EnthalpySolution(2).Temperature),...
22 (md.results.EnthalpySolution(3).Enthalpy),...
23 (md.results.EnthalpySolution(3).Waterfraction),...
24 (md.results.EnthalpySolution(3).Temperature),...
25 };
Note: See TracBrowser for help on using the repository browser.