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