[19049] | 1 | #Test Name: SquareShelfConstrainedEnthalpyTran
|
---|
[13335] | 2 | from model import *
|
---|
| 3 | from triangle import *
|
---|
| 4 | from setmask import *
|
---|
| 5 | from parameterize import *
|
---|
| 6 | from setflowequation import *
|
---|
| 7 | from EnumDefinitions import *
|
---|
| 8 | from solve import *
|
---|
| 9 | from MatlabFuncs import *
|
---|
| 10 |
|
---|
| 11 | md=triangle(model(),'../Exp/Square.exp',180000)
|
---|
| 12 | md=setmask(md,'all','')
|
---|
| 13 | md=parameterize(md,'../Par/SquareShelfConstrained.py')
|
---|
[13672] | 14 | md.extrude(3,1.)
|
---|
[15565] | 15 | md=setflowequation(md,'SSA','all')
|
---|
[13335] | 16 | md.cluster=generic('name',oshostname(),'np',3);
|
---|
[13463] | 17 | md.initialization.waterfraction=numpy.zeros((md.mesh.numberofvertices,1))
|
---|
[16041] | 18 | md.initialization.watercolumn=numpy.zeros((md.mesh.numberofvertices,1))
|
---|
[15771] | 19 | md.transient.isstressbalance=False
|
---|
[15767] | 20 | md.transient.ismasstransport=False
|
---|
[19528] | 21 | md.transient.issmb=True
|
---|
[14021] | 22 | md.transient.isthermal=True
|
---|
| 23 | md.transient.isgroundingline=False
|
---|
[13335] | 24 | md.thermal.isenthalpy=1
|
---|
[16322] | 25 | md.thermal.isdynamicbasalspc=1
|
---|
[21056] | 26 | md=solve(md,'Transient')
|
---|
[13335] | 27 |
|
---|
| 28 | #Fields and tolerances to track changes
|
---|
| 29 | field_names =['Enthalpy1','Waterfraction1','Temperature1',\
|
---|
| 30 | 'Enthalpy2','Waterfraction2','Temperature2',\
|
---|
| 31 | 'Enthalpy3','Waterfraction3','Temperature3']
|
---|
[15460] | 32 | field_tolerances=[1e-13,1e-13,1e-13,1e-13,1e-13,1e-13,1e-13,1e-9,1e-13]
|
---|
[13335] | 33 | field_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 | ]
|
---|