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

Last change on this file since 23180 was 23180, checked in by Mathieu Morlighem, 7 years ago

CHG: relaxed tolerances

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