| [19049] | 1 | #Test Name: PigStressFS
|
|---|
| [13657] | 2 | from model import *
|
|---|
| [21759] | 3 | from socket import gethostname
|
|---|
| [13657] | 4 | from triangle import *
|
|---|
| 5 | from setmask import *
|
|---|
| 6 | from parameterize import *
|
|---|
| 7 | from setflowequation import *
|
|---|
| 8 | from solve import *
|
|---|
| 9 |
|
|---|
| [21759] | 10 |
|
|---|
| [13663] | 11 | md=triangle(model(),'../Exp/Pig.exp',20000.)
|
|---|
| [13657] | 12 | md=setmask(md,'../Exp/PigShelves.exp','../Exp/PigIslands.exp')
|
|---|
| 13 | md=parameterize(md,'../Par/Pig.py')
|
|---|
| [13683] | 14 | md.extrude(3,0.9)
|
|---|
| [15565] | 15 | md=setflowequation(md,'FS','all')
|
|---|
| [21759] | 16 | md.cluster=generic('name',gethostname(),'np',3)
|
|---|
| [21056] | 17 | md=solve(md,'Stressbalance')
|
|---|
| [13657] | 18 |
|
|---|
| 19 | # Fields and tolerances to track changes
|
|---|
| 20 | field_names =['Vx','Vy','Vz','Vel','Pressure']
|
|---|
| 21 | field_tolerances=[1e-09,1e-09,1e-09,1e-09,1e-09]
|
|---|
| 22 | field_values=[\
|
|---|
| [15771] | 23 | md.results.StressbalanceSolution.Vx,\
|
|---|
| 24 | md.results.StressbalanceSolution.Vy,\
|
|---|
| 25 | md.results.StressbalanceSolution.Vz,\
|
|---|
| 26 | md.results.StressbalanceSolution.Vel,\
|
|---|
| 27 | md.results.StressbalanceSolution.Pressure,\
|
|---|
| [13657] | 28 | ]
|
|---|