1 | md=triangle(model,'../Exp/SquareHole.exp','../Exp/Rifts.exp',50000);
|
---|
2 | md=meshprocessrifts(md,'../Exp/Square.exp');
|
---|
3 | md=setmask(md,'all','');
|
---|
4 | md=parameterize(md,'../Par/SquareShelf.par');
|
---|
5 | md=setflowequation(md,'macayeal','all');
|
---|
6 | md.cluster=generic('name',oshostname(),'np',3);
|
---|
7 |
|
---|
8 | %rift settings
|
---|
9 | md.rifts.riftstruct.fill=MelangeEnum();
|
---|
10 | md.rifts.riftstruct.fraction=0;
|
---|
11 | md.diagnostic.rift_penalty_lock=2;
|
---|
12 | md.diagnostic.rift_penalty_threshold=0;
|
---|
13 | md.rifts.riftstruct.fractionincrement=.1;
|
---|
14 | md=solve(md,DiagnosticSolutionEnum);
|
---|
15 |
|
---|
16 | %Fields and tolerances to track changes
|
---|
17 | field_names ={'Vx','Vy','Vel','Pressure'};
|
---|
18 | field_tolerances={1e-11,1e-11,1e-11,1e-11};
|
---|
19 | field_values={...
|
---|
20 | (md.results.DiagnosticSolution.Vx),...
|
---|
21 | (md.results.DiagnosticSolution.Vy),...
|
---|
22 | (md.results.DiagnosticSolution.Vel),...
|
---|
23 | (md.results.DiagnosticSolution.Pressure),...
|
---|
24 | };
|
---|