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

Last change on this file since 13672 was 13672, checked in by Mathieu Morlighem, 12 years ago

CHG: added point at the end of extrude command, extrude exponent is a float and not an integer

File size: 1.4 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.)
[13335]14md=setflowequation(md,'macayeal','all')
15md.cluster=generic('name',oshostname(),'np',3);
[13463]16md.initialization.waterfraction=numpy.zeros((md.mesh.numberofvertices,1))
[13335]17md.transient.isdiagnostic=0
18md.transient.isprognostic=0
19md.transient.isthermal=1
20md.transient.isgroundingline=0
21md.thermal.isenthalpy=1
22md=solve(md,TransientSolutionEnum())
23
24#Fields and tolerances to track changes
25field_names =['Enthalpy1','Waterfraction1','Temperature1',\
26 'Enthalpy2','Waterfraction2','Temperature2',\
27 'Enthalpy3','Waterfraction3','Temperature3']
28field_tolerances=[1e-13,1e-13,1e-13,1e-13,1e-13,1e-13,1e-13,1e-10,1e-13]
29field_values=[\
30 md.results['TransientSolution'][1]['Enthalpy'],\
31 md.results['TransientSolution'][1]['Waterfraction'],\
32 md.results['TransientSolution'][1]['Temperature'],\
33 md.results['TransientSolution'][2]['Enthalpy'],\
34 md.results['TransientSolution'][2]['Waterfraction'],\
35 md.results['TransientSolution'][2]['Temperature'],\
36 md.results['TransientSolution'][3]['Enthalpy'],\
37 md.results['TransientSolution'][3]['Waterfraction'],\
38 md.results['TransientSolution'][3]['Temperature'],\
39 ]
Note: See TracBrowser for help on using the repository browser.