Changeset 21409 for issm/trunk-jpl/test/Par/ISMIPF.py
- Timestamp:
- 11/22/16 02:33:00 (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
issm/trunk-jpl/test/Par/ISMIPF.py
r17769 r21409 6 6 7 7 print " creating thickness" 8 md.geometry.surface=-md.mesh.x .reshape(-1,1)*numpy.tan(3.*numpy.pi/180.)8 md.geometry.surface=-md.mesh.x*numpy.tan(3.*numpy.pi/180.) 9 9 #md.geometry.base=md.geometry.surface-1000. 10 md.geometry.base=md.geometry.surface-1000.+100.*numpy.exp(-((md.mesh.x .reshape(-1,1)-numpy.max(md.mesh.x)/2.)**2+(md.mesh.y.reshape(-1,1)-numpy.max(md.mesh.y)/2.)**2)/(10000.**2))10 md.geometry.base=md.geometry.surface-1000.+100.*numpy.exp(-((md.mesh.x-numpy.max(md.mesh.x)/2.)**2+(md.mesh.y-numpy.max(md.mesh.y)/2.)**2)/(10000.**2)) 11 11 md.geometry.thickness=md.geometry.surface-md.geometry.base 12 12 13 13 print " creating drag" 14 md.friction.coefficient=numpy.sqrt(md.constants.yts/(2.140373*10**-7*1000.))*numpy.ones((md.mesh.numberofvertices ,1))15 md.friction.p=numpy.ones((md.mesh.numberofelements ,1))16 md.friction.q=numpy.zeros((md.mesh.numberofelements ,1))14 md.friction.coefficient=numpy.sqrt(md.constants.yts/(2.140373*10**-7*1000.))*numpy.ones((md.mesh.numberofvertices)) 15 md.friction.p=numpy.ones((md.mesh.numberofelements)) 16 md.friction.q=numpy.zeros((md.mesh.numberofelements)) 17 17 18 18 print " creating flow law parameter" 19 md.materials.rheology_B=1.4734*10**14*numpy.ones((md.mesh.numberofvertices ,1))20 md.materials.rheology_n=1.*numpy.ones((md.mesh.numberofelements ,1))19 md.materials.rheology_B=1.4734*10**14*numpy.ones((md.mesh.numberofvertices)) 20 md.materials.rheology_n=1.*numpy.ones((md.mesh.numberofelements)) 21 21 md.materials.rheology_law='None' 22 22 … … 24 24 #Create node on boundary first (because we cannot use mesh) 25 25 md=SetIceSheetBC(md) 26 md.stressbalance.spcvx=100.*numpy.ones((md.mesh.numberofvertices ,1))27 md.initialization.vx=numpy.zeros((md.mesh.numberofvertices ,1))28 md.initialization.vy=numpy.zeros((md.mesh.numberofvertices ,1))29 md.initialization.vz=numpy.zeros((md.mesh.numberofvertices ,1))30 md.initialization.vel=numpy.zeros((md.mesh.numberofvertices ,1))31 md.initialization.pressure=numpy.zeros((md.mesh.numberofvertices ,1))32 md.initialization.temperature=255.*numpy.ones((md.mesh.numberofvertices ,1))26 md.stressbalance.spcvx=100.*numpy.ones((md.mesh.numberofvertices)) 27 md.initialization.vx=numpy.zeros((md.mesh.numberofvertices)) 28 md.initialization.vy=numpy.zeros((md.mesh.numberofvertices)) 29 md.initialization.vz=numpy.zeros((md.mesh.numberofvertices)) 30 md.initialization.vel=numpy.zeros((md.mesh.numberofvertices)) 31 md.initialization.pressure=numpy.zeros((md.mesh.numberofvertices)) 32 md.initialization.temperature=255.*numpy.ones((md.mesh.numberofvertices)) 33 33 pos=numpy.nonzero(numpy.logical_or(numpy.logical_or(md.mesh.x==numpy.min(md.mesh.x),md.mesh.x==numpy.max(md.mesh.x)),numpy.logical_or(md.mesh.y==numpy.min(md.mesh.y),md.mesh.y==numpy.max(md.mesh.y)))) 34 md.balancethickness.spcthickness=float('NaN')*numpy.ones((md.mesh.numberofvertices ,1))34 md.balancethickness.spcthickness=float('NaN')*numpy.ones((md.mesh.numberofvertices)) 35 35 md.balancethickness.spcthickness[pos]=md.geometry.thickness[pos] 36 md.masstransport.spcthickness=float('NaN')*numpy.ones((md.mesh.numberofvertices ,1))36 md.masstransport.spcthickness=float('NaN')*numpy.ones((md.mesh.numberofvertices)) 37 37 md.masstransport.spcthickness[pos]=md.geometry.thickness[pos] 38 md.thermal.spctemperature=255.*numpy.ones((md.mesh.numberofvertices ,1))39 md.basalforcings.geothermalflux=0.4*numpy.ones((md.mesh.numberofvertices ,1))38 md.thermal.spctemperature=255.*numpy.ones((md.mesh.numberofvertices)) 39 md.basalforcings.geothermalflux=0.4*numpy.ones((md.mesh.numberofvertices)) 40 40 41 41 #Parallel options
Note:
See TracChangeset
for help on using the changeset viewer.