source: issm/trunk-jpl/test/NightlyRun/test121.py@ 21408

Last change on this file since 21408 was 21408, checked in by bdef, 8 years ago

CHG: uniformization fix

File size: 1.5 KB
RevLine 
[19049]1#Test Name: SquareShelfConstrainedEnthalpyTran
[13335]2from model import *
[21408]3from socket import gethostname
[13335]4from triangle import *
5from setmask import *
6from parameterize import *
7from setflowequation import *
8from solve import *
9
[21408]10
[13335]11md=triangle(model(),'../Exp/Square.exp',180000)
12md=setmask(md,'all','')
13md=parameterize(md,'../Par/SquareShelfConstrained.py')
[13672]14md.extrude(3,1.)
[15565]15md=setflowequation(md,'SSA','all')
[21408]16md.cluster=generic('name',gethostname(),'np',3)
17md.initialization.waterfraction=np.zeros((md.mesh.numberofvertices))
18md.initialization.watercolumn=np.zeros((md.mesh.numberofvertices))
[15771]19md.transient.isstressbalance=False
[15767]20md.transient.ismasstransport=False
[19528]21md.transient.issmb=True
[14021]22md.transient.isthermal=True
23md.transient.isgroundingline=False
[13335]24md.thermal.isenthalpy=1
[16322]25md.thermal.isdynamicbasalspc=1
[21056]26md=solve(md,'Transient')
[13335]27
28#Fields and tolerances to track changes
29field_names =['Enthalpy1','Waterfraction1','Temperature1',\
30 'Enthalpy2','Waterfraction2','Temperature2',\
31 'Enthalpy3','Waterfraction3','Temperature3']
[15460]32field_tolerances=[1e-13,1e-13,1e-13,1e-13,1e-13,1e-13,1e-13,1e-9,1e-13]
[13335]33field_values=[\
[13967]34 md.results.TransientSolution[0].Enthalpy,\
35 md.results.TransientSolution[0].Waterfraction,\
36 md.results.TransientSolution[0].Temperature,\
37 md.results.TransientSolution[1].Enthalpy,\
38 md.results.TransientSolution[1].Waterfraction,\
39 md.results.TransientSolution[1].Temperature,\
40 md.results.TransientSolution[2].Enthalpy,\
41 md.results.TransientSolution[2].Waterfraction,\
42 md.results.TransientSolution[2].Temperature,\
[13335]43 ]
Note: See TracBrowser for help on using the repository browser.