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

Last change on this file since 16322 was 16322, checked in by jbondzio, 11 years ago

CHG: enthalpy basal decision chart updated; thermal.isdynamicbasalspc now part of checkconsistency; tests & archives updated

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