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

Last change on this file since 21049 was 21049, checked in by agscott1, 9 years ago

CHG: Replaced Enums with Strings in matlab and python. Updated corresponding cpp code.

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 EnumDefinitions import *
8from solve import *
9from MatlabFuncs import *
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',oshostname(),'np',3);
18
[15927]19field_names=[]
20field_tolerances=[]
21field_values=[]
[17136]22for i in ['P1bubble','P1bubblecondensed','P1xP2','P2xP1','P2','P1xP3','P2xP4']:
[15927]23 md.flowequation.fe_HO=i
[21049]24 md=solve(md,'StressbalanceSolution')
[15927]25 field_names =field_names+['Vx'+i,'Vy'+i,'Vz'+i,'Vel'+i,'Pressure'+i]
[20816]26 field_tolerances=field_tolerances+[6.5e-08,5e-08,2e-08,5e-08,1e-13]
[15927]27 field_values=field_values+[\
28 md.results.StressbalanceSolution.Vx,\
29 md.results.StressbalanceSolution.Vy,\
30 md.results.StressbalanceSolution.Vz,\
31 md.results.StressbalanceSolution.Vel,\
32 md.results.StressbalanceSolution.Pressure,\
33 ]
Note: See TracBrowser for help on using the repository browser.