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