| [19049] | 1 | #Test Name: SquareShelfConstrainedStressSSA3dAdolc
|
|---|
| [13455] | 2 | from model import *
|
|---|
| 3 | from triangle import *
|
|---|
| 4 | from setmask import *
|
|---|
| 5 | from parameterize import *
|
|---|
| 6 | from setflowequation import *
|
|---|
| [13900] | 7 | from EnumDefinitions import *
|
|---|
| [13455] | 8 | from solve import *
|
|---|
| [13900] | 9 | from MatlabFuncs import *
|
|---|
| [13455] | 10 |
|
|---|
| [13900] | 11 | md=triangle(model(),'../Exp/Square.exp',180000.)
|
|---|
| [13455] | 12 | md=setmask(md,'all','')
|
|---|
| 13 | md=parameterize(md,'../Par/SquareShelfConstrained.py')
|
|---|
| [13672] | 14 | md.extrude(3,2.)
|
|---|
| [15565] | 15 | md=setflowequation(md,'SSA','all')
|
|---|
| [14879] | 16 | md.cluster=generic('name',oshostname(),'np',1)
|
|---|
| [13900] | 17 | md.autodiff.isautodiff=True
|
|---|
| [21056] | 18 | md=solve(md,'Stressbalance')
|
|---|
| [13455] | 19 |
|
|---|
| [13900] | 20 | #Fields and tolerances to track changes
|
|---|
| [13455] | 21 | field_names =['Vx','Vy','Vz','Vel','Pressure']
|
|---|
| 22 | field_tolerances=[1e-13,1e-13,1e-13,1e-13,1e-13]
|
|---|
| 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,\
|
|---|
| [13455] | 29 | ]
|
|---|