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.
|
-
Property svn:executable
set to
*
|
File size:
975 bytes
|
Line | |
---|
1 | import numpy
|
---|
2 | from SetIceSheetBC import SetIceSheetBC
|
---|
3 |
|
---|
4 | #Ok, start defining model parameters here
|
---|
5 |
|
---|
6 | print " creating thickness"
|
---|
7 | md.geometry.surface=2000.-md.mesh.x*numpy.tan(0.1*numpy.pi/180.) #to have z>0
|
---|
8 | md.geometry.base=md.geometry.surface-1000.
|
---|
9 | md.geometry.thickness=md.geometry.surface-md.geometry.base
|
---|
10 |
|
---|
11 | print " creating drag"
|
---|
12 | md.friction.coefficient=numpy.sqrt(md.constants.yts*(1000.+1000.*numpy.sin(md.mesh.x*2.*numpy.pi/numpy.max(md.mesh.x))))
|
---|
13 | md.friction.coefficient[numpy.nonzero(md.mask.groundedice_levelset<0.)[0]]=0.
|
---|
14 | md.friction.p=numpy.ones((md.mesh.numberofelements))
|
---|
15 | md.friction.q=numpy.zeros((md.mesh.numberofelements))
|
---|
16 |
|
---|
17 | print " creating flow law parameter"
|
---|
18 | md.materials.rheology_B=6.8067*10**7*numpy.ones((md.mesh.numberofvertices))
|
---|
19 | md.materials.rheology_n=3.*numpy.ones((md.mesh.numberofelements))
|
---|
20 |
|
---|
21 | print " boundary conditions for stressbalance model:"
|
---|
22 | #Create node on boundary first (because we can not use mesh)
|
---|
23 | md=SetIceSheetBC(md)
|
---|
Note:
See
TracBrowser
for help on using the repository browser.