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

Last change on this file since 21759 was 21759, checked in by Eric.Larour, 8 years ago

CHG: merged branch back to trunk-jpl 21754.

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