[15686] | 1 | from model import *
|
---|
| 2 | from triangle import *
|
---|
| 3 | from setmask import *
|
---|
| 4 | from parameterize import *
|
---|
| 5 | from setflowequation import *
|
---|
| 6 | from EnumDefinitions import *
|
---|
| 7 | from solve import *
|
---|
| 8 | from MatlabFuncs import *
|
---|
| 9 | from ContourToMesh import *
|
---|
| 10 |
|
---|
| 11 | md=triangle(model(),'../Exp/Square.exp',150000.);
|
---|
| 12 | md=setmask(md,'all','');
|
---|
| 13 | md=parameterize(md,'../Par/SquareShelf.py');
|
---|
| 14 | md.extrude(3,2.)
|
---|
| 15 | md=setflowequation(md,'HO','all');
|
---|
| 16 | md.flowequation.fe_HO=1;
|
---|
| 17 | md.cluster=generic('name',oshostname(),'np',3);
|
---|
[15771] | 18 | md=solve(md,StressbalanceSolutionEnum());
|
---|
[15686] | 19 |
|
---|
| 20 | #Fields and tolerances to track changes
|
---|
| 21 | field_names =['Vx', 'Vy', 'Vz', 'Vel','Pressure'];
|
---|
[15735] | 22 | field_tolerances=[1e-08,1e-08,1e-08,1e-08,1e-13];
|
---|
[15686] | 23 | field_values=[\
|
---|
[15771] | 24 | md.results.StressbalanceSolution.Vx,\
|
---|
| 25 | md.results.StressbalanceSolution.Vy,\
|
---|
| 26 | md.results.StressbalanceSolution.Vz,\
|
---|
| 27 | md.results.StressbalanceSolution.Vel,\
|
---|
| 28 | md.results.StressbalanceSolution.Pressure,\
|
---|
[15686] | 29 | ];
|
---|