Changeset 16137 for issm/trunk/test/Par/ISMIPC.py
- Timestamp:
- 09/16/13 09:43:55 (12 years ago)
- Location:
- issm/trunk
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
issm/trunk
- Property svn:ignore
-
old new 1 nightlylog 2 configure.sh 1 3 par 2 4 ad
-
- Property svn:mergeinfo changed
/issm/trunk-jpl merged: 15397-15401,15403-15487,15489-15701,15704-15735,15737-16076,16082-16133
- Property svn:ignore
-
issm/trunk/test
- Property svn:mergeinfo changed
-
issm/trunk/test/Par/ISMIPC.py
r14310 r16137 12 12 #md.friction.coefficient=sqrt(md.constants.yts.*(1000.+1000.*sin(md.mesh.x*2.*pi/max(md.mesh.x/2.)).*sin(md.mesh.y*2.*pi/max(md.mesh.x/2.)))./(md.constants.g*(md.materials.rho_ice*md.geometry.thickness+md.materials.rho_water*md.geometry.bed))); 13 13 md.friction.coefficient=numpy.sqrt(md.constants.yts*(1000.+1000.*numpy.sin(md.mesh.x.reshape(-1,1)*2.*numpy.pi/numpy.max(md.mesh.x))*numpy.sin(md.mesh.y.reshape(-1,1)*2.*numpy.pi/numpy.max(md.mesh.x)))) 14 #Take care of iceshelves: no basal drag 15 pos=numpy.nonzero(md.mask.elementonfloatingice)[0] 16 md.friction.coefficient[md.mesh.elements[pos,:]-1]=0. 14 md.friction.coefficient[numpy.nonzero(md.mask.groundedice_levelset<0.)[0]]=0. 17 15 md.friction.p=numpy.ones((md.mesh.numberofelements,1)) 18 16 md.friction.q=numpy.zeros((md.mesh.numberofelements,1)) … … 22 20 md.materials.rheology_n=3.*numpy.ones((md.mesh.numberofelements,1)) 23 21 24 print " boundary conditions for diagnosticmodel:"22 print " boundary conditions for stressbalance model:" 25 23 #Create node on boundary first (because we can not use mesh) 26 24 md=SetIceSheetBC(md)
Note:
See TracChangeset
for help on using the changeset viewer.