source: issm/trunk-jpl/test/NightlyRun/test432.py@ 13681

Last change on this file since 13681 was 13681, checked in by Mathieu Morlighem, 12 years ago

NEW: Added more python test4

File size: 1.2 KB
RevLine 
[13681]1import numpy
2from model import *
3from EnumDefinitions 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,'pattyn','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=solve(md,SteadystateSolutionEnum())
21
22#Fields and tolerances to track changes
23field_names =['Vx','Vy','Vz','Vel','Pressure','Temperature','Water fraction','Enthalpy']
24field_tolerances=[1e-09,1e-09,1e-09,1e-09,1e-13,1e-10,1e-10,1e-10]
25field_values=[\
26 md.results['SteadystateSolution'][1]['Vx'],\
27 md.results['SteadystateSolution'][1]['Vy'],\
28 md.results['SteadystateSolution'][1]['Vz'],\
29 md.results['SteadystateSolution'][1]['Vel'],\
30 md.results['SteadystateSolution'][1]['Pressure'],\
31 md.results['SteadystateSolution'][1]['Temperature'],\
32 md.results['SteadystateSolution'][1]['Waterfraction'],\
33 md.results['SteadystateSolution'][1]['Enthalpy'],\
34 ]
Note: See TracBrowser for help on using the repository browser.