source: issm/trunk-jpl/test/NightlyRun/test432.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.2 KB
Line 
1#Test Name: SquareSheetShelfSteaEnthalpyHO
2import numpy
3from model import *
4from MatlabFuncs import *
5from triangle import *
6from setmask import *
7from parameterize import *
8from setflowequation import *
9from solve import *
10
11md=triangle(model(),'../Exp/Square.exp',150000.)
12md=setmask(md,'../Exp/SquareShelf.exp','')
13md=parameterize(md,'../Par/SquareSheetShelf.py')
14md.extrude(3,2.)
15md=setflowequation(md,'HO','all')
16md.cluster=generic('name',oshostname(),'np',3)
17md.timestepping.time_step=0.
18md.thermal.isenthalpy=1
19md.initialization.waterfraction=numpy.zeros((md.mesh.numberofvertices,1))
20md.initialization.watercolumn=numpy.zeros((md.mesh.numberofvertices,1))
21md=solve(md,'Steadystate')
22
23#Fields and tolerances to track changes
24field_names =['Vx','Vy','Vz','Vel','Pressure','Temperature','Waterfraction','Enthalpy']
25field_tolerances=[3e-09,1e-09,1e-09,1e-09,1e-13,1e-10,3.2e-10,3e-9]
26field_values=[\
27 md.results.SteadystateSolution.Vx,\
28 md.results.SteadystateSolution.Vy,\
29 md.results.SteadystateSolution.Vz,\
30 md.results.SteadystateSolution.Vel,\
31 md.results.SteadystateSolution.Pressure,\
32 md.results.SteadystateSolution.Temperature,\
33 md.results.SteadystateSolution.Waterfraction,\
34 md.results.SteadystateSolution.Enthalpy,\
35 ]
Note: See TracBrowser for help on using the repository browser.