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