source: issm/branches/trunk-larour-NatGeoScience2016/test/NightlyRun/test270.py@ 21243

Last change on this file since 21243 was 21056, checked in by Mathieu Morlighem, 9 years ago

CHG: do not request solution in solution string

File size: 1.0 KB
Line 
1#Test Name: SquareShelfStressSSA2dDamage
2import numpy
3from model import model
4from triangle import triangle
5from setmask import setmask
6from parameterize import parameterize
7from setflowequation import setflowequation
8from solve import solve
9from matdamageice import matdamageice
10from generic import generic
11from socket import gethostname as oshostname
12
13md=triangle(model(),'../Exp/Square.exp',150000.)
14md=setmask(md,'all','')
15md.materials=matdamageice()
16md=parameterize(md,'../Par/SquareShelf.py')
17md.damage.isdamage=1
18md.damage.D=0.5*numpy.ones(md.mesh.numberofvertices)
19md.damage.spcdamage=numpy.nan*numpy.ones(md.mesh.numberofvertices)
20md=setflowequation(md,'SSA','all')
21md.cluster=generic('name',oshostname(),'np',3)
22md=solve(md,'Stressbalance')
23
24#Fields and tolerances to track changes
25field_names =['Vx','Vy','Vel','Pressure']
26field_tolerances=[1e-13,1e-13,1e-13,1e-13]
27field_values=[\
28 md.results.StressbalanceSolution.Vx,\
29 md.results.StressbalanceSolution.Vy,\
30 md.results.StressbalanceSolution.Vel,\
31 md.results.StressbalanceSolution.Pressure,\
32 ]
Note: See TracBrowser for help on using the repository browser.