| 1 | md=triangle(model,'../Exp/Square.exp',180000);
|
|---|
| 2 | md=setmask(md,'all','');
|
|---|
| 3 | md=parameterize(md,'../Par/SquareShelfConstrained.par');
|
|---|
| 4 | md=extrude(md,3,1);
|
|---|
| 5 | md=setflowequation(md,'macayeal','all');
|
|---|
| 6 | md.cluster=generic('name',oshostname(),'np',3);
|
|---|
| 7 | md.initialization.waterfraction=zeros(md.mesh.numberofvertices,1);
|
|---|
| 8 | md.transient.isdiagnostic=0;
|
|---|
| 9 | md.transient.isprognostic=0;
|
|---|
| 10 | md.transient.isthermal=1;
|
|---|
| 11 | md.transient.isgroundingline=0;
|
|---|
| 12 | md.thermal.isenthalpy=1;
|
|---|
| 13 | md=solve(md,TransientSolutionEnum);
|
|---|
| 14 |
|
|---|
| 15 | %Fields and tolerances to track changes
|
|---|
| 16 | field_names ={'Enthalpy1','Waterfraction1','Temperature1',...
|
|---|
| 17 | 'Enthalpy2','Waterfraction2','Temperature2',...
|
|---|
| 18 | 'Enthalpy3','Waterfraction3','Temperature3'};
|
|---|
| 19 | field_tolerances={1e-13,1e-13,1e-13,1e-13,1e-13,1e-13,1e-13,1e-10,1e-13};
|
|---|
| 20 | field_values={...
|
|---|
| 21 | (md.results.TransientSolution(1).Enthalpy),...
|
|---|
| 22 | (md.results.TransientSolution(1).Waterfraction),...
|
|---|
| 23 | (md.results.TransientSolution(1).Temperature),...
|
|---|
| 24 | (md.results.TransientSolution(2).Enthalpy),...
|
|---|
| 25 | (md.results.TransientSolution(2).Waterfraction),...
|
|---|
| 26 | (md.results.TransientSolution(2).Temperature),...
|
|---|
| 27 | (md.results.TransientSolution(3).Enthalpy),...
|
|---|
| 28 | (md.results.TransientSolution(3).Waterfraction),...
|
|---|
| 29 | (md.results.TransientSolution(3).Temperature),...
|
|---|
| 30 | };
|
|---|