1 | md=triangle(model,'../Exp/Square.exp',50000);
|
---|
2 | md=setmask(md,'all','');
|
---|
3 | md=parameterize(md,'../Par/SquareShelfConstrained.par');
|
---|
4 | md=setflowequation(md,'macayeal','all');
|
---|
5 | md.cluster=generic('name',oshostname(),'np',3);
|
---|
6 | md.diagnostic.requested_outputs=StressTensorEnum;
|
---|
7 | md=solve(md,DiagnosticSolutionEnum);
|
---|
8 |
|
---|
9 | %Fields and tolerances to track changes
|
---|
10 | field_names ={'Vx','Vy','Vel','Pressure',...
|
---|
11 | 'StressTensorxx','StressTensoryy','StressTensorxy'};
|
---|
12 | field_tolerances={1e-13,1e-13,1e-13,1e-13,...
|
---|
13 | 1e-13,1e-13,1e-13};
|
---|
14 | field_values={...
|
---|
15 | (md.results.DiagnosticSolution.Vx),...
|
---|
16 | (md.results.DiagnosticSolution.Vy),...
|
---|
17 | (md.results.DiagnosticSolution.Vel),...
|
---|
18 | (md.results.DiagnosticSolution.Pressure),...
|
---|
19 | (md.results.DiagnosticSolution.StressTensorxx),...
|
---|
20 | (md.results.DiagnosticSolution.StressTensoryy),...
|
---|
21 | (md.results.DiagnosticSolution.StressTensorxy),...
|
---|
22 | };
|
---|