source: issm/trunk-jpl/test/NightlyRun/test285.py

Last change on this file was 23793, checked in by bdef, 6 years ago

pep8 compliance of NTs

File size: 1.2 KB
Line 
1#Test Name: SquareShelfStressHOHigherOrder
2from model import *
3from socket import gethostname
4from triangle import *
5from setmask import *
6from parameterize import *
7from setflowequation import *
8from solve import *
9
10from ContourToMesh import *
11
12md = triangle(model(), '../Exp/Square.exp', 150000.)
13md = setmask(md, 'all', '')
14md = parameterize(md, '../Par/SquareShelf.py')
15md.extrude(3, 2.)
16md = setflowequation(md, 'HO', 'all')
17md.cluster = generic('name', gethostname(), 'np', 3)
18
19field_names = []
20field_tolerances = []
21field_values = []
22for i in ['P1bubble', 'P1bubblecondensed', 'P1xP2', 'P2xP1', 'P2', 'P1xP3', 'P2xP4']:
23 md.flowequation.fe_HO = i
24 md = solve(md, 'Stressbalance')
25 field_names = field_names + ['Vx' + i, 'Vy' + i, 'Vz' + i, 'Vel' + i, 'Pressure' + i]
26 field_tolerances = field_tolerances + [6.7e-08, 5e-08, 2e-08, 5e-08, 1e-13]
27 field_values = field_values + [md.results.StressbalanceSolution.Vx,
28 md.results.StressbalanceSolution.Vy,
29 md.results.StressbalanceSolution.Vz,
30 md.results.StressbalanceSolution.Vel,
31 md.results.StressbalanceSolution.Pressure]
Note: See TracBrowser for help on using the repository browser.