[4996] | 1 | md=mesh(model,'../Exp/Square.exp',180000);
|
---|
| 2 | md=geography(md,'../Exp/SquareShelf.exp','');
|
---|
| 3 | md=parameterize(md,'../Par/SquareSheetShelf.par');
|
---|
| 4 | md=extrude(md,3,1);
|
---|
[5432] | 5 | md=setelementstype(md,'pattyn','all');
|
---|
| 6 | md.cluster=oshostname;
|
---|
[4996] | 7 | md=solve(md,'analysis_type',DiagnosticSolutionEnum);
|
---|
[5432] | 8 | vx=PatchToVec(md.results.DiagnosticSolution.Vx);
|
---|
| 9 | vy=PatchToVec(md.results.DiagnosticSolution.Vy);
|
---|
| 10 | vz=PatchToVec(md.results.DiagnosticSolution.Vz);
|
---|
| 11 | pos=find(md.spcvelocity(:,1));
|
---|
| 12 | md.spcvelocity(pos,3)=1;
|
---|
| 13 | md=setelementstype(md,'stokes','all');
|
---|
| 14 | md.vx=vx;
|
---|
| 15 | md.vy=vy;
|
---|
| 16 | md.vz=vz;
|
---|
| 17 | md.spcvelocity(:,4)=vx;
|
---|
| 18 | md.spcvelocity(:,5)=vy;
|
---|
| 19 | md.spcvelocity(:,6)=vz;
|
---|
| 20 | pos=find(md.borderstokes);
|
---|
| 21 | md.spcvelocity(pos,1)=1;
|
---|
| 22 | md.spcvelocity(pos,2)=1;
|
---|
| 23 | md.spcvelocity(pos,3)=1;
|
---|
| 24 | md=solve(md,'analysis_type',DiagnosticSolutionEnum);
|
---|
[5098] | 25 |
|
---|
| 26 | %Fields and tolerances to track changes
|
---|
| 27 | field_names ={'Vx','Vy','Vz','Vel','Pressure'};
|
---|
[5101] | 28 | field_tolerances={1e-08,1e-08,1e-07,1e-08,1e-08};
|
---|
[5098] | 29 | field_values={...
|
---|
| 30 | PatchToVec(md.results.DiagnosticSolution.Vx),...
|
---|
| 31 | PatchToVec(md.results.DiagnosticSolution.Vy),...
|
---|
| 32 | PatchToVec(md.results.DiagnosticSolution.Vz),...
|
---|
| 33 | PatchToVec(md.results.DiagnosticSolution.Vel),...
|
---|
| 34 | PatchToVec(md.results.DiagnosticSolution.Pressure),...
|
---|
| 35 | };
|
---|