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

Last change on this file since 23793 was 23793, checked in by bdef, 6 years ago

pep8 compliance of NTs

File size: 1.3 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 = [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]
Note: See TracBrowser for help on using the repository browser.