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

Last change on this file since 21060 was 21060, checked in by Mathieu Morlighem, 9 years ago

CHG: no more enums in python

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