1 | md=mesh(model,'../Exp/Square.exp',180000);
|
---|
2 | md=setmask(md,'','');
|
---|
3 | md=parameterize(md,'../Par/SquareSheetConstrained.par');
|
---|
4 | md=extrude(md,4,2);
|
---|
5 | md=setelementstype(md,'hutter','../Exp/SquareHalfRight.exp','fill','macayeal');
|
---|
6 | md.cluster=generic('name',oshostname(),'np',1);
|
---|
7 | md.debug.valgrind=1;
|
---|
8 | md.verbose=verbose('convergence',true,'solution',true,'module',true);
|
---|
9 | md=solve(md,DiagnosticSolutionEnum);
|
---|
10 |
|
---|
11 | %Fields and tolerances to track changes
|
---|
12 | field_names ={'Vx','Vy','Vz','Vel','Pressure'};
|
---|
13 | field_tolerances={1e-13,1e-13,1e-13,1e-13,1e-13};
|
---|
14 | field_values={...
|
---|
15 | PatchToVec(md.results.DiagnosticSolution.Vx),...
|
---|
16 | PatchToVec(md.results.DiagnosticSolution.Vy),...
|
---|
17 | PatchToVec(md.results.DiagnosticSolution.Vz),...
|
---|
18 | PatchToVec(md.results.DiagnosticSolution.Vel),...
|
---|
19 | PatchToVec(md.results.DiagnosticSolution.Pressure),...
|
---|
20 | };
|
---|