source: issm/trunk-jpl/test/NightlyRun/test342.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
RevLine 
[22267]1#Test Name: SquareSheetTherSteaPlume
2import numpy as np
3from model import *
4from socket import gethostname
5from triangle import *
6from setmask import *
7from parameterize import *
8from setflowequation import *
9from solve import *
10from plumebasalforcings import *
11
[23793]12md = triangle(model(), '../Exp/Square.exp', 180000.)
13md = setmask(md, '', '')
14md = parameterize(md, '../Par/SquareSheetConstrained.py')
[22267]15md.basalforcings = plumebasalforcings()
16md.basalforcings = md.basalforcings.setdefaultparameters()
17md.basalforcings.floatingice_melting_rate = np.zeros((md.mesh.numberofvertices,))
18md.basalforcings.groundedice_melting_rate = np.zeros((md.mesh.numberofvertices,))
19md.basalforcings.plumex = 500000
20md.basalforcings.plumey = 500000
[23793]21md.extrude(3, 1.)
22md = setflowequation(md, 'SSA', 'all')
[22267]23md.timestepping.time_step = 0.
[23793]24md.thermal.requested_outputs = ['default', 'BasalforcingsGeothermalflux']
25md.cluster = generic('name', gethostname(), 'np', 3)
26md = solve(md, 'Thermal')
[22267]27
28#Fields and tolerances to track changes
[23793]29field_names = ['Temperature', 'BasalforcingsGroundediceMeltingRate', 'BasalforcingsGeothermalflux']
30field_tolerances = [1e-13, 1e-8, 1e-13]
31field_values = [md.results.ThermalSolution.Temperature,
32 md.results.ThermalSolution.BasalforcingsGroundediceMeltingRate,
33 md.results.ThermalSolution.BasalforcingsGeothermalflux]
Note: See TracBrowser for help on using the repository browser.