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